class for storing QIE output as a binary stream
More...
#include <QIEStream.h>
|
|
| QIEStream ()=default |
| | Default constructor.
|
| |
|
virtual | ~QIEStream ()=default |
| | Default destructor.
|
| |
| void | clear (Option_t *option="") |
| | A dummy function.
|
| |
| bool | operator< (const QIEStream &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 | 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 QIEStream &d) |
| | Print ifo about the class.
|
| |
class for storing QIE output as a binary stream
Definition at line 25 of file QIEStream.h.
◆ clear()
| void trigscint::QIEStream::clear |
( |
Option_t * | option = "" | ) |
|
A dummy function.
- Note
- required by Event/include/Event/EventDef.h
◆ getADC()
| std::vector< int > trigscint::QIEStream::getADC |
( |
| ) |
const |
|
inline |
Get ADCs of all time samples.
Definition at line 65 of file QIEStream.h.
std::vector< int > adcs_
Analog to Digital counts.
References adcs_.
◆ getChannelID()
| int trigscint::QIEStream::getChannelID |
( |
| ) |
const |
|
inline |
Get channel ID.
Definition at line 55 of file QIEStream.h.
int chan_id_
detector channel ID (bar nb)
References chan_id_.
◆ getCID()
| std::vector< int > trigscint::QIEStream::getCID |
( |
| ) |
const |
|
inline |
Get Cap IDs of all time samples.
Definition at line 75 of file QIEStream.h.
std::vector< int > cids_
Capacitor IDs.
References cids_.
◆ getElectronicsID()
| uint8_t trigscint::QIEStream::getElectronicsID |
( |
| ) |
const |
|
inline |
◆ getTDC()
| std::vector< int > trigscint::QIEStream::getTDC |
( |
| ) |
const |
|
inline |
Get TDCs of all time samples.
Definition at line 70 of file QIEStream.h.
std::vector< int > tdcs_
Time to Digital counts.
References tdcs_.
◆ operator<()
| bool trigscint::QIEStream::operator< |
( |
const QIEStream & | rhs | ) |
const |
|
inline |
A dummy operator overloading.
- Note
- required for declaring std::vector<> in EventDef.h
Definition at line 48 of file QIEStream.h.
48 {
49 return this->
chan_id_ < rhs.chan_id_;
50 }
References chan_id_.
◆ setADC()
| void trigscint::QIEStream::setADC |
( |
const std::vector< int > | adc | ) |
|
|
inline |
◆ setChannelID()
| void trigscint::QIEStream::setChannelID |
( |
const int | chanid | ) |
|
|
inline |
◆ setCID()
| void trigscint::QIEStream::setCID |
( |
const std::vector< int > | cid | ) |
|
|
inline |
◆ setElectronicsID()
| void trigscint::QIEStream::setElectronicsID |
( |
const int | elecid | ) |
|
|
inline |
◆ setTDC()
| void trigscint::QIEStream::setTDC |
( |
const std::vector< int > | tdc | ) |
|
|
inline |
◆ adcs_
| std::vector<int> trigscint::QIEStream::adcs_ |
|
private |
◆ chan_id_
| int trigscint::QIEStream::chan_id_ |
|
private |
◆ CHECKSUM_POS
| const int trigscint::QIEStream::CHECKSUM_POS {CID_SKIP_POS + FLAG_SIZE_BITS} |
|
static |
Definition at line 128 of file QIEStream.h.
128{CID_SKIP_POS + FLAG_SIZE_BITS};
◆ CHECKSUM_SIZE_BITS
| const int trigscint::QIEStream::CHECKSUM_SIZE_BITS {4} |
|
static |
◆ CID_SKIP_POS
| const int trigscint::QIEStream::CID_SKIP_POS {3} |
|
static |
◆ CID_UNSYNC_POS
| const int trigscint::QIEStream::CID_UNSYNC_POS {2} |
|
static |
◆ cids_
| std::vector<int> trigscint::QIEStream::cids_ |
|
private |
◆ CRC0_ERR_POS
| const int trigscint::QIEStream::CRC0_ERR_POS {0} |
|
static |
◆ CRC1_ERR_POS
| const int trigscint::QIEStream::CRC1_ERR_POS {1} |
|
static |
◆ electronics_id_
| int trigscint::QIEStream::electronics_id_ |
|
private |
◆ ERROR_LEN_BYTES
| const int trigscint::QIEStream::ERROR_LEN_BYTES {1} |
|
static |
◆ ERROR_POS
| const int trigscint::QIEStream::ERROR_POS {TRIGID_POS + TRIGID_LEN_BYTES} |
|
static |
Definition at line 120 of file QIEStream.h.
120{TRIGID_POS + TRIGID_LEN_BYTES};
◆ FLAG_SIZE_BITS
| const int trigscint::QIEStream::FLAG_SIZE_BITS {1} |
|
static |
◆ NUM_SAMPLES
| const int trigscint::QIEStream::NUM_SAMPLES {5} |
|
static |
◆ tdcs_
| std::vector<int> trigscint::QIEStream::tdcs_ |
|
private |
◆ TIMESINCESPILL_LEN_BYTES
| const int trigscint::QIEStream::TIMESINCESPILL_LEN_BYTES {4} |
|
static |
◆ TIMESINCESPILL_POS
| const int trigscint::QIEStream::TIMESINCESPILL_POS |
|
static |
Initial value:{TIMESTAMPCLOCK_POS +
TIMESTAMPCLOCK_LEN_BYTES}
Definition at line 115 of file QIEStream.h.
115 {TIMESTAMPCLOCK_POS +
116 TIMESTAMPCLOCK_LEN_BYTES};
◆ TIMESTAMP_LEN_BYTES
| const int trigscint::QIEStream::TIMESTAMP_LEN_BYTES {4} |
|
static |
◆ TIMESTAMP_POS
| const int trigscint::QIEStream::TIMESTAMP_POS {0} |
|
static |
◆ TIMESTAMPCLOCK_LEN_BYTES
| const int trigscint::QIEStream::TIMESTAMPCLOCK_LEN_BYTES {4} |
|
static |
◆ TIMESTAMPCLOCK_POS
| const int trigscint::QIEStream::TIMESTAMPCLOCK_POS {TIMESTAMP_POS + TIMESTAMP_LEN_BYTES} |
|
static |
Definition at line 113 of file QIEStream.h.
113{TIMESTAMP_POS + TIMESTAMP_LEN_BYTES};
◆ TRIGID_LEN_BYTES
| const int trigscint::QIEStream::TRIGID_LEN_BYTES {3} |
|
static |
◆ TRIGID_POS
| const int trigscint::QIEStream::TRIGID_POS {TIMESINCESPILL_POS + TIMESINCESPILL_LEN_BYTES} |
|
static |
Definition at line 118 of file QIEStream.h.
118{TIMESINCESPILL_POS + TIMESINCESPILL_LEN_BYTES};
The documentation for this class was generated from the following file: