LDMX Software
TrigScintQIEDigis.h
1#ifndef TRIGSCINT_EVENT_TRIGSCINTQIEDIGIS_H
2#define TRIGSCINT_EVENT_TRIGSCINTQIEDIGIS_H
3
4//---< ROOT >---//
5#include "TObject.h"
6
7namespace trigscint {
8
14 public:
16 TrigScintQIEDigis() = default;
17
19 virtual ~TrigScintQIEDigis() = default;
20
25 void Print(Option_t *option = "") const;
26
31 void Clear(Option_t *option = "");
32
37 bool operator<(const TrigScintQIEDigis &rhs) const {
38 return this->chanID_ < rhs.chanID_;
39 }
40
44 int getChanID() const { return chanID_; }
45
49 int getElecID() const { return elecID_; }
50
54 std::vector<int> getADC() const { return adcs_; }
55
59 std::vector<int> getTDC() const { return tdcs_; }
60
64 std::vector<int> getCID() const { return cids_; }
65
69 void setTimeSinceSpill(const uint32_t timeSpill) {
70 timeSinceSpillCounter_ = timeSpill;
71 }
72 // void setTimeSinceSpill(const int timeSpill) { timeSinceSpillCounter_ =
73 // timeSpill; }
74
78 uint32_t getTimeSinceSpill() const { return timeSinceSpillCounter_; }
79
83 void setChanID(const int chanid) { chanID_ = chanid; }
84
88 void setElecID(const int elecid) { elecID_ = elecid; }
89
94 void setADC(const std::vector<int> adc) { adcs_ = adc; }
95
100 void setTDC(const std::vector<int> tdc) { tdcs_ = tdc; }
101
106 void setCID(const std::vector<int> cid) { cids_ = cid; }
107
108 protected:
112 int elecID_{-1};
113
115 std::vector<int> adcs_;
116
118 std::vector<int> tdcs_;
119
122
123 private:
125 std::vector<int> cids_;
126
127 ClassDef(TrigScintQIEDigis, 1);
128};
129} // namespace trigscint
130#endif
class for storing QIE output
uint32_t getTimeSinceSpill() const
Store the event time since spill counter.
std::vector< int > getADC() const
Get ADCs of all time samples.
void Print(Option_t *option="") const
Print ifo about the class.
void setCID(const std::vector< int > cid)
Store cids of all time samples.
std::vector< int > adcs_
analog to digital counts
void setTDC(const std::vector< int > tdc)
Store tdcs of all time samples.
void Clear(Option_t *option="")
A dummy function.
std::vector< int > cids_
capacitor IDs
void setChanID(const int chanid)
Store the channel ID.
virtual ~TrigScintQIEDigis()=default
Default destructor.
TrigScintQIEDigis()=default
Default constructor.
int getElecID() const
Get electronics ID.
void setTimeSinceSpill(const uint32_t timeSpill)
Store the event time since spill counter.
std::vector< int > getCID() const
Get Cap IDs of all time samples.
int getChanID() const
Get channel ID.
bool operator<(const TrigScintQIEDigis &rhs) const
A dummy operator overloading.
uint32_t timeSinceSpillCounter_
Time since spill (a counter, to be divided by 125e6 or so)
std::vector< int > tdcs_
Time to Digital counts.
std::vector< int > getTDC() const
Get tdcs of all time samples.
void setElecID(const int elecid)
Store the electronics ID.
void setADC(const std::vector< int > adc)
Store adcs of all time samples.