LDMX Software
trigscint::TrigScintQIEDigis Class Reference

class for storing QIE output More...

#include <TrigScintQIEDigis.h>

Public Member Functions

 TrigScintQIEDigis ()=default
 Default constructor.
 
virtual ~TrigScintQIEDigis ()=default
 Default destructor.
 
void clear (Option_t *option="")
 A dummy function.
 
bool operator< (const TrigScintQIEDigis &rhs) const
 A dummy operator overloading.
 
int getChanID () const
 Get channel ID.
 
int getElecID () const
 Get electronics ID.
 
int getModuleID () const
 Get module ID (pad naming number -1)
 
int getLaneID () const
 Get lane 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.
 
std::vector< int > getBC0 () const
 Get BC0s (= 1 for periodic sync time sample) of all time samples.
 
std::vector< int > getCE () const
 Get CEs (an error state flag) of all time samples.
 
void setTimeSinceSpill (const uint32_t timeSpill)
 Store the event time since spill counter.
 
uint32_t getTimeSinceSpill () const
 Store the event time since spill counter.
 
void setChanID (const int chanid)
 Store the channel ID.
 
void setElecID (const int elecid)
 Store the electronics ID.
 
void setModuleID (const int moduleid)
 Store the module ID (pad number-1)
 
void setLaneID (const int laneid)
 Store the lane (fiber) 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.
 
void setBC0 (const std::vector< int > bc0)
 Store bc0s of all time samples.
 
void setCE (const std::vector< int > ce)
 Store ces of all time samples.
 

Protected Attributes

int chan_id_
 channel ID
 
int elec_id_ {-1}
 channel ID
 
int module_id_
 module ID (pad)
 
int lane_id_ {-1}
 lane ID (fiber)
 
std::vector< int > adcs_
 analog to digital counts
 
std::vector< int > tdcs_
 Time to Digital counts.
 
uint32_t time_since_spill_counter_
 Time since spill (a counter, to be divided by 125e6 or so)
 

Private Member Functions

 ClassDef (TrigScintQIEDigis, 4)
 

Private Attributes

std::vector< int > cids_
 capacitor IDs
 
std::vector< int > bc0s_
 
std::vector< int > ces_
 

Friends

std::ostream & operator<< (std::ostream &o, const TrigScintQIEDigis &d)
 Print ifo about the class.
 

Detailed Description

class for storing QIE output

Definition at line 13 of file TrigScintQIEDigis.h.

Member Function Documentation

◆ clear()

void trigscint::TrigScintQIEDigis::clear ( Option_t * option = "")

A dummy function.

Note
required by Event/include/Event/EventDef.h

Definition at line 21 of file TrigScintQIEDigis.cxx.

21{}

◆ getADC()

std::vector< int > trigscint::TrigScintQIEDigis::getADC ( ) const
inline

Get ADCs of all time samples.

Definition at line 63 of file TrigScintQIEDigis.h.

63{ return adcs_; }
std::vector< int > adcs_
analog to digital counts

References adcs_.

Referenced by trigscint::QIEDecoder::produce(), and trigscint::ZCCMDecoder::produce().

◆ getBC0()

std::vector< int > trigscint::TrigScintQIEDigis::getBC0 ( ) const
inline

Get BC0s (= 1 for periodic sync time sample) of all time samples.

Definition at line 78 of file TrigScintQIEDigis.h.

78{ return bc0s_; }

◆ getCE()

std::vector< int > trigscint::TrigScintQIEDigis::getCE ( ) const
inline

Get CEs (an error state flag) of all time samples.

Definition at line 83 of file TrigScintQIEDigis.h.

83{ return ces_; }

◆ getChanID()

int trigscint::TrigScintQIEDigis::getChanID ( ) const
inline

◆ getCID()

std::vector< int > trigscint::TrigScintQIEDigis::getCID ( ) const
inline

Get Cap IDs of all time samples.

Definition at line 73 of file TrigScintQIEDigis.h.

73{ return cids_; }
std::vector< int > cids_
capacitor IDs

References cids_.

◆ getElecID()

int trigscint::TrigScintQIEDigis::getElecID ( ) const
inline

Get electronics ID.

Definition at line 48 of file TrigScintQIEDigis.h.

48{ return elec_id_; }

References elec_id_.

Referenced by trigscint::QIEDecoder::produce(), and trigscint::ZCCMDecoder::produce().

◆ getLaneID()

int trigscint::TrigScintQIEDigis::getLaneID ( ) const
inline

Get lane ID.

Definition at line 58 of file TrigScintQIEDigis.h.

58{ return lane_id_; }

References lane_id_.

◆ getModuleID()

int trigscint::TrigScintQIEDigis::getModuleID ( ) const
inline

Get module ID (pad naming number -1)

Definition at line 53 of file TrigScintQIEDigis.h.

53{ return module_id_; }

References module_id_.

◆ getTDC()

std::vector< int > trigscint::TrigScintQIEDigis::getTDC ( ) const
inline

Get tdcs of all time samples.

Definition at line 68 of file TrigScintQIEDigis.h.

68{ return tdcs_; }
std::vector< int > tdcs_
Time to Digital counts.

References tdcs_.

Referenced by trigscint::QIEDecoder::produce(), and trigscint::ZCCMDecoder::produce().

◆ getTimeSinceSpill()

uint32_t trigscint::TrigScintQIEDigis::getTimeSinceSpill ( ) const
inline

Store the event time since spill counter.

Definition at line 95 of file TrigScintQIEDigis.h.

uint32_t time_since_spill_counter_
Time since spill (a counter, to be divided by 125e6 or so)

References time_since_spill_counter_.

Referenced by trigscint::QIEDecoder::produce(), and trigscint::ZCCMDecoder::produce().

◆ operator<()

bool trigscint::TrigScintQIEDigis::operator< ( const TrigScintQIEDigis & rhs) const
inline

A dummy operator overloading.

Note
required for declaring std::vector<> in EventDef.h

Definition at line 36 of file TrigScintQIEDigis.h.

36 {
37 return this->chan_id_ < rhs.chan_id_;
38 }

References chan_id_.

◆ setADC()

void trigscint::TrigScintQIEDigis::setADC ( const std::vector< int > adc)
inline

Store adcs of all time samples.

Parameters
adc_array of adcs

Definition at line 121 of file TrigScintQIEDigis.h.

121{ adcs_ = adc; }

References adcs_.

Referenced by trigscint::EventReadoutProducer::produce(), trigscint::QIEDecoder::produce(), trigscint::TrigScintQIEDigiProducer::produce(), and trigscint::ZCCMDecoder::produce().

◆ setBC0()

void trigscint::TrigScintQIEDigis::setBC0 ( const std::vector< int > bc0)
inline

Store bc0s of all time samples.

Parameters
bc0_array of BC0s (perodic sample sync)

Definition at line 139 of file TrigScintQIEDigis.h.

139{ bc0s_ = bc0; }

Referenced by trigscint::ZCCMDecoder::produce().

◆ setCE()

void trigscint::TrigScintQIEDigis::setCE ( const std::vector< int > ce)
inline

Store ces of all time samples.

Parameters
ce_array of CEs (error state)

Definition at line 145 of file TrigScintQIEDigis.h.

145{ ces_ = ce; }

Referenced by trigscint::ZCCMDecoder::produce().

◆ setChanID()

void trigscint::TrigScintQIEDigis::setChanID ( const int chanid)
inline

◆ setCID()

void trigscint::TrigScintQIEDigis::setCID ( const std::vector< int > cid)
inline

Store cids of all time samples.

Parameters
cid_array of cids

Definition at line 133 of file TrigScintQIEDigis.h.

133{ cids_ = cid; }

References cids_.

Referenced by trigscint::TrigScintQIEDigiProducer::produce(), and trigscint::ZCCMDecoder::produce().

◆ setElecID()

void trigscint::TrigScintQIEDigis::setElecID ( const int elecid)
inline

Store the electronics ID.

Definition at line 105 of file TrigScintQIEDigis.h.

105{ elec_id_ = elecid; }

References elec_id_.

Referenced by trigscint::EventReadoutProducer::produce(), trigscint::QIEDecoder::produce(), and trigscint::ZCCMDecoder::produce().

◆ setLaneID()

void trigscint::TrigScintQIEDigis::setLaneID ( const int laneid)
inline

Store the lane (fiber) ID.

Definition at line 115 of file TrigScintQIEDigis.h.

115{ lane_id_ = laneid; }

References lane_id_.

Referenced by trigscint::ZCCMDecoder::produce().

◆ setModuleID()

void trigscint::TrigScintQIEDigis::setModuleID ( const int moduleid)
inline

Store the module ID (pad number-1)

Definition at line 110 of file TrigScintQIEDigis.h.

110{ module_id_ = moduleid; }

References module_id_.

Referenced by trigscint::ZCCMDecoder::produce().

◆ setTDC()

void trigscint::TrigScintQIEDigis::setTDC ( const std::vector< int > tdc)
inline

Store tdcs of all time samples.

Parameters
tdc_array of tdcs

Definition at line 127 of file TrigScintQIEDigis.h.

127{ tdcs_ = tdc; }

References tdcs_.

Referenced by trigscint::EventReadoutProducer::produce(), trigscint::QIEDecoder::produce(), trigscint::TrigScintQIEDigiProducer::produce(), and trigscint::ZCCMDecoder::produce().

◆ setTimeSinceSpill()

void trigscint::TrigScintQIEDigis::setTimeSinceSpill ( const uint32_t timeSpill)
inline

Store the event time since spill counter.

Definition at line 88 of file TrigScintQIEDigis.h.

88 {
89 time_since_spill_counter_ = timeSpill;
90 }

References time_since_spill_counter_.

Referenced by trigscint::EventReadoutProducer::produce(), and trigscint::QIEDecoder::produce().

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & o,
const TrigScintQIEDigis & d )
friend

Print ifo about the class.

Definition at line 15 of file TrigScintQIEDigis.cxx.

15 {
16 return o << "TrigScintQIEDigis { " << "chan_id = " << c.chan_id_ << ", "
17 << "ADC[0]= " << c.adcs_[0] << ", " << "TDC[0]= " << c.tdcs_[0]
18 << ", " << "CID[0]= " << c.tdcs_[0] << ", " << "}\n";
19}

Member Data Documentation

◆ adcs_

std::vector<int> trigscint::TrigScintQIEDigis::adcs_
protected

analog to digital counts

Definition at line 158 of file TrigScintQIEDigis.h.

Referenced by getADC(), trigscint::EventReadout::print(), and setADC().

◆ bc0s_

std::vector<int> trigscint::TrigScintQIEDigis::bc0s_
private

Definition at line 169 of file TrigScintQIEDigis.h.

◆ ces_

std::vector<int> trigscint::TrigScintQIEDigis::ces_
private

Definition at line 170 of file TrigScintQIEDigis.h.

◆ chan_id_

int trigscint::TrigScintQIEDigis::chan_id_
protected

◆ cids_

std::vector<int> trigscint::TrigScintQIEDigis::cids_
private

capacitor IDs

Definition at line 168 of file TrigScintQIEDigis.h.

Referenced by getCID(), and setCID().

◆ elec_id_

int trigscint::TrigScintQIEDigis::elec_id_ {-1}
protected

channel ID

Definition at line 151 of file TrigScintQIEDigis.h.

151{-1};

Referenced by getElecID(), and setElecID().

◆ lane_id_

int trigscint::TrigScintQIEDigis::lane_id_ {-1}
protected

lane ID (fiber)

Definition at line 155 of file TrigScintQIEDigis.h.

155{-1};

Referenced by getLaneID(), and setLaneID().

◆ module_id_

int trigscint::TrigScintQIEDigis::module_id_
protected

module ID (pad)

Definition at line 153 of file TrigScintQIEDigis.h.

Referenced by getModuleID(), and setModuleID().

◆ tdcs_

std::vector<int> trigscint::TrigScintQIEDigis::tdcs_
protected

Time to Digital counts.

Definition at line 161 of file TrigScintQIEDigis.h.

Referenced by getTDC(), and setTDC().

◆ time_since_spill_counter_

uint32_t trigscint::TrigScintQIEDigis::time_since_spill_counter_
protected

Time since spill (a counter, to be divided by 125e6 or so)

Definition at line 164 of file TrigScintQIEDigis.h.

Referenced by getTimeSinceSpill(), and setTimeSinceSpill().


The documentation for this class was generated from the following files: