class for storing ZCCM output as a binary output
More...
#include <ZCCMOutput.h>
|
|
| ZCCMOutput ()=default |
| | Default constructor.
|
| |
|
virtual | ~ZCCMOutput ()=default |
| | Default destructor.
|
| |
| void | clear (Option_t *option="") |
| | A dummy function.
|
| |
| bool | operator< (const ZCCMOutput &rhs) const |
| | A dummy operator overloading.
|
| |
| int | getChannelID () const |
| | Get channel ID.
|
| |
| uint8_t | getElectronicsID () const |
| | Get electronics ID.
|
| |
| std::vector< int > | getADC () const |
| | Get ADCs of all time samples.
|
| |
| std::vector< int > | getTDC () const |
| | Get TDCs of all time samples.
|
| |
| std::vector< int > | getCID () const |
| | Get Cap IDs of all time samples.
|
| |
| void | setChannelID (const int chanid) |
| | Store the channel ID.
|
| |
| void | setElectronicsID (const int elecid) |
| | Store the electronics ID.
|
| |
| void | setADC (const std::vector< int > adc) |
| | Store adcs of all time samples.
|
| |
| void | setTDC (const std::vector< int > tdc) |
| | Store tdcs of all time samples.
|
| |
| void | setCID (const std::vector< int > cid) |
| | Store cids of all time samples.
|
| |
|
| int | lane_ |
| | detector lane ID (aka fiber)
|
| |
| int | module_ |
| | detector module ID (aka pad)
|
| |
| int | chan_id_ |
| | detector channel ID (bar nb)
|
| |
| int | electronics_id_ |
| | electronics ID
|
| |
| std::vector< int > | adcs_ |
| | Analog to Digital counts.
|
| |
| std::vector< int > | tdcs_ |
| | Time to Digital counts.
|
| |
| std::vector< int > | cids_ |
| | Capacitor IDs.
|
| |
|
|
std::ostream & | operator<< (std::ostream &o, const ZCCMOutput &d) |
| | Print ifo about the class.
|
| |
class for storing ZCCM output as a binary output
Definition at line 15 of file ZCCMOutput.h.
◆ clear()
| void trigscint::ZCCMOutput::clear |
( |
Option_t * | option = "" | ) |
|
A dummy function.
- Note
- required by Event/include/Event/EventDef.h
◆ getADC()
| std::vector< int > trigscint::ZCCMOutput::getADC |
( |
| ) |
const |
|
inline |
Get ADCs of all time samples.
Definition at line 55 of file ZCCMOutput.h.
std::vector< int > adcs_
Analog to Digital counts.
References adcs_.
◆ getChannelID()
| int trigscint::ZCCMOutput::getChannelID |
( |
| ) |
const |
|
inline |
Get channel ID.
Definition at line 45 of file ZCCMOutput.h.
int chan_id_
detector channel ID (bar nb)
References chan_id_.
◆ getCID()
| std::vector< int > trigscint::ZCCMOutput::getCID |
( |
| ) |
const |
|
inline |
Get Cap IDs of all time samples.
Definition at line 65 of file ZCCMOutput.h.
std::vector< int > cids_
Capacitor IDs.
References cids_.
◆ getElectronicsID()
| uint8_t trigscint::ZCCMOutput::getElectronicsID |
( |
| ) |
const |
|
inline |
◆ getTDC()
| std::vector< int > trigscint::ZCCMOutput::getTDC |
( |
| ) |
const |
|
inline |
Get TDCs of all time samples.
Definition at line 60 of file ZCCMOutput.h.
std::vector< int > tdcs_
Time to Digital counts.
References tdcs_.
◆ operator<()
| bool trigscint::ZCCMOutput::operator< |
( |
const ZCCMOutput & | rhs | ) |
const |
|
inline |
A dummy operator overloading.
- Note
- required for declaring std::vector<> in EventDef.h
Definition at line 38 of file ZCCMOutput.h.
38 {
39 return this->
chan_id_ < rhs.chan_id_;
40 }
References chan_id_.
◆ setADC()
| void trigscint::ZCCMOutput::setADC |
( |
const std::vector< int > | adc | ) |
|
|
inline |
Store adcs of all time samples.
- Parameters
-
Definition at line 81 of file ZCCMOutput.h.
References adcs_.
◆ setChannelID()
| void trigscint::ZCCMOutput::setChannelID |
( |
const int | chanid | ) |
|
|
inline |
◆ setCID()
| void trigscint::ZCCMOutput::setCID |
( |
const std::vector< int > | cid | ) |
|
|
inline |
Store cids of all time samples.
- Parameters
-
Definition at line 93 of file ZCCMOutput.h.
References cids_.
◆ setElectronicsID()
| void trigscint::ZCCMOutput::setElectronicsID |
( |
const int | elecid | ) |
|
|
inline |
◆ setTDC()
| void trigscint::ZCCMOutput::setTDC |
( |
const std::vector< int > | tdc | ) |
|
|
inline |
Store tdcs of all time samples.
- Parameters
-
Definition at line 87 of file ZCCMOutput.h.
References tdcs_.
◆ ADC_LEN_BYTES
| const int trigscint::ZCCMOutput::ADC_LEN_BYTES {1 * NUM_CHAN_PER_LANE} |
|
static |
◆ ADC_SAMPLE_WORD_POS
| const int trigscint::ZCCMOutput::ADC_SAMPLE_WORD_POS {0} |
|
static |
◆ adcs_
| std::vector<int> trigscint::ZCCMOutput::adcs_ |
|
private |
◆ BC0_LEN_BITS
| const int trigscint::ZCCMOutput::BC0_LEN_BITS {1} |
|
static |
◆ BC0_POS_IN_FLAG
| const int trigscint::ZCCMOutput::BC0_POS_IN_FLAG {CE_POS_IN_FLAG + CE_LEN_BITS} |
|
static |
Definition at line 140 of file ZCCMOutput.h.
140{CE_POS_IN_FLAG + CE_LEN_BITS};
◆ CAPID_LEN_BITS
| const int trigscint::ZCCMOutput::CAPID_LEN_BITS {2} |
|
static |
◆ CAPID_POS_IN_FLAG
| const int trigscint::ZCCMOutput::CAPID_POS_IN_FLAG {0} |
|
static |
◆ CE_LEN_BITS
| const int trigscint::ZCCMOutput::CE_LEN_BITS {1} |
|
static |
◆ CE_POS_IN_FLAG
| const int trigscint::ZCCMOutput::CE_POS_IN_FLAG {CAPID_POS_IN_FLAG + CAPID_LEN_BITS} |
|
static |
Definition at line 138 of file ZCCMOutput.h.
138{CAPID_POS_IN_FLAG + CAPID_LEN_BITS};
◆ chan_id_
| int trigscint::ZCCMOutput::chan_id_ |
|
private |
◆ cids_
| std::vector<int> trigscint::ZCCMOutput::cids_ |
|
private |
◆ DAQHEADER_LEN_BYTES
| const int trigscint::ZCCMOutput::DAQHEADER_LEN_BYTES {16} |
|
static |
◆ DAQHEADER_POS
| const int trigscint::ZCCMOutput::DAQHEADER_POS {0} |
|
static |
◆ electronics_id_
| int trigscint::ZCCMOutput::electronics_id_ |
|
private |
◆ EMPTY_FLAG_WORD_LEN_BITS
| const int trigscint::ZCCMOutput::EMPTY_FLAG_WORD_LEN_BITS {4} |
|
static |
◆ EMPTY_FLAG_WORD_POS_IN_FLAG
| const int trigscint::ZCCMOutput::EMPTY_FLAG_WORD_POS_IN_FLAG {BC0_POS_IN_FLAG + BC0_LEN_BITS} |
|
static |
Definition at line 142 of file ZCCMOutput.h.
142{BC0_POS_IN_FLAG + BC0_LEN_BITS};
◆ EMPTY_HEADER_WORD_LEN_BYTES
| const int trigscint::ZCCMOutput::EMPTY_HEADER_WORD_LEN_BYTES {8} |
|
static |
◆ EMPTY_HEADER_WORD_POS
| const int trigscint::ZCCMOutput::EMPTY_HEADER_WORD_POS {TIMESTAMP_POS + TIMESTAMP_LEN_BYTES} |
|
static |
Definition at line 110 of file ZCCMOutput.h.
110{TIMESTAMP_POS + TIMESTAMP_LEN_BYTES};
◆ EMPTY_WORD_LEN_BYTES
| const int trigscint::ZCCMOutput::EMPTY_WORD_LEN_BYTES {2} |
|
static |
◆ EMPTY_WORD_SAMPLE_WORD_POS
| const int trigscint::ZCCMOutput::EMPTY_WORD_SAMPLE_WORD_POS |
|
static |
Initial value:{ADC_SAMPLE_WORD_POS +
ADC_LEN_BYTES}
Definition at line 124 of file ZCCMOutput.h.
124 {ADC_SAMPLE_WORD_POS +
125 ADC_LEN_BYTES};
◆ EVENTDATA_POS
| const int trigscint::ZCCMOutput::EVENTDATA_POS |
|
static |
Initial value:{EMPTY_HEADER_WORD_POS +
EMPTY_HEADER_WORD_LEN_BYTES}
Definition at line 113 of file ZCCMOutput.h.
113 {EMPTY_HEADER_WORD_POS +
114 EMPTY_HEADER_WORD_LEN_BYTES};
◆ FLAGS_LEN_BYTES
| const int trigscint::ZCCMOutput::FLAGS_LEN_BYTES {1} |
|
static |
◆ FLAGS_SAMPLE_WORD_POS
| const int trigscint::ZCCMOutput::FLAGS_SAMPLE_WORD_POS {TDC_SAMPLE_WORD_POS + TDC_LEN_BYTES} |
|
static |
Definition at line 130 of file ZCCMOutput.h.
130{TDC_SAMPLE_WORD_POS + TDC_LEN_BYTES};
◆ lane_
| int trigscint::ZCCMOutput::lane_ |
|
private |
◆ LANE_LEN_BYTES
| const int trigscint::ZCCMOutput::LANE_LEN_BYTES {1} |
|
static |
◆ LANE_SAMPLE_WORD_POS
| const int trigscint::ZCCMOutput::LANE_SAMPLE_WORD_POS |
|
static |
Initial value:{FLAGS_SAMPLE_WORD_POS +
FLAGS_LEN_BYTES}
Definition at line 132 of file ZCCMOutput.h.
132 {FLAGS_SAMPLE_WORD_POS +
133 FLAGS_LEN_BYTES};
◆ module_
| int trigscint::ZCCMOutput::module_ |
|
private |
◆ NUM_CHAN_PER_LANE
| const int trigscint::ZCCMOutput::NUM_CHAN_PER_LANE {6} |
|
static |
◆ SAMPLE_WORD_LEN_BYTES
| const int trigscint::ZCCMOutput::SAMPLE_WORD_LEN_BYTES |
|
static |
Initial value:= ADC_LEN_BYTES + TDC_LEN_BYTES +
EMPTY_WORD_LEN_BYTES +
FLAGS_LEN_BYTES + LANE_LEN_BYTES
Definition at line 148 of file ZCCMOutput.h.
◆ TDC_LEN_BYTES
| const int trigscint::ZCCMOutput::TDC_LEN_BYTES {1 * NUM_CHAN_PER_LANE} |
|
static |
◆ TDC_SAMPLE_WORD_POS
| const int trigscint::ZCCMOutput::TDC_SAMPLE_WORD_POS |
|
static |
Initial value:{EMPTY_WORD_SAMPLE_WORD_POS +
EMPTY_WORD_LEN_BYTES}
Definition at line 127 of file ZCCMOutput.h.
127 {EMPTY_WORD_SAMPLE_WORD_POS +
128 EMPTY_WORD_LEN_BYTES};
◆ tdcs_
| std::vector<int> trigscint::ZCCMOutput::tdcs_ |
|
private |
◆ TIMESTAMP_LEN_BYTES
| const int trigscint::ZCCMOutput::TIMESTAMP_LEN_BYTES {8} |
|
static |
◆ TIMESTAMP_POS
| const int trigscint::ZCCMOutput::TIMESTAMP_POS {DAQHEADER_POS + DAQHEADER_LEN_BYTES} |
|
static |
Definition at line 108 of file ZCCMOutput.h.
108{DAQHEADER_POS + DAQHEADER_LEN_BYTES};
The documentation for this class was generated from the following file: