LDMX Software
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
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 Print (Option_t *option="") const
 Print ifo about the class.
 
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.
 
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 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 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.
 

Protected Attributes

int chanID_
 channel ID
 
int elecID_ {-1}
 channel ID
 
std::vector< int > adcs_
 analog to digital counts
 
std::vector< int > tdcs_
 Time to Digital counts.
 
uint32_t timeSinceSpillCounter_
 Time since spill (a counter, to be divided by 125e6 or so)
 

Private Member Functions

 ClassDef (TrigScintQIEDigis, 1)
 

Private Attributes

std::vector< int > cids_
 capacitor IDs
 

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 24 of file TrigScintQIEDigis.cxx.

24{}

◆ getADC()

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

Get ADCs of all time samples.

Definition at line 54 of file TrigScintQIEDigis.h.

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

References adcs_.

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

◆ getChanID()

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

Get channel ID.

Definition at line 44 of file TrigScintQIEDigis.h.

44{ return chanID_; }

References chanID_.

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

◆ getCID()

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

Get Cap IDs of all time samples.

Definition at line 64 of file TrigScintQIEDigis.h.

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

References cids_.

◆ getElecID()

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

Get electronics ID.

Definition at line 49 of file TrigScintQIEDigis.h.

49{ return elecID_; }

References elecID_.

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

◆ getTDC()

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

Get tdcs of all time samples.

Definition at line 59 of file TrigScintQIEDigis.h.

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

References tdcs_.

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

◆ getTimeSinceSpill()

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

Store the event time since spill counter.

Definition at line 78 of file TrigScintQIEDigis.h.

78{ return timeSinceSpillCounter_; }
uint32_t timeSinceSpillCounter_
Time since spill (a counter, to be divided by 125e6 or so)

References timeSinceSpillCounter_.

Referenced by dqm::NtuplizeTrigScintQIEDigis::analyze(), and trigscint::QIEDecoder::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 37 of file TrigScintQIEDigis.h.

37 {
38 return this->chanID_ < rhs.chanID_;
39 }

References chanID_.

◆ Print()

void trigscint::TrigScintQIEDigis::Print ( Option_t *  option = "") const

Print ifo about the class.

Note
required by EventDef.h

Definition at line 15 of file TrigScintQIEDigis.cxx.

15 {
16 std::cout << "TrigScintQIEDigis { "
17 << "chanID= " << chanID_ << ", "
18 << "ADC[0]= " << adcs_[0] << ", "
19 << "TDC[0]= " << tdcs_[0] << ", "
20 << "CID[0]= " << tdcs_[0] << ", "
21 << "}\n";
22}

References adcs_, chanID_, and tdcs_.

◆ 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 94 of file TrigScintQIEDigis.h.

94{ adcs_ = adc; }

References adcs_.

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

◆ setChanID()

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

Store the channel ID.

Definition at line 83 of file TrigScintQIEDigis.h.

83{ chanID_ = chanid; }

References chanID_.

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

◆ 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 106 of file TrigScintQIEDigis.h.

106{ cids_ = cid; }

References cids_.

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

◆ setElecID()

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

Store the electronics ID.

Definition at line 88 of file TrigScintQIEDigis.h.

88{ elecID_ = elecid; }

References elecID_.

Referenced by trigscint::EventReadoutProducer::produce(), and trigscint::QIEDecoder::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 100 of file TrigScintQIEDigis.h.

100{ tdcs_ = tdc; }

References tdcs_.

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

◆ setTimeSinceSpill()

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

Store the event time since spill counter.

Definition at line 69 of file TrigScintQIEDigis.h.

69 {
70 timeSinceSpillCounter_ = timeSpill;
71 }

References timeSinceSpillCounter_.

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

Member Data Documentation

◆ adcs_

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

analog to digital counts

Definition at line 115 of file TrigScintQIEDigis.h.

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

◆ chanID_

int trigscint::TrigScintQIEDigis::chanID_
protected

◆ cids_

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

capacitor IDs

Definition at line 125 of file TrigScintQIEDigis.h.

Referenced by getCID(), and setCID().

◆ elecID_

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

channel ID

Definition at line 112 of file TrigScintQIEDigis.h.

112{-1};

Referenced by getElecID(), and setElecID().

◆ tdcs_

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

Time to Digital counts.

Definition at line 118 of file TrigScintQIEDigis.h.

Referenced by getTDC(), Print(), and setTDC().

◆ timeSinceSpillCounter_

uint32_t trigscint::TrigScintQIEDigis::timeSinceSpillCounter_
protected

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

Definition at line 121 of file TrigScintQIEDigis.h.

Referenced by getTimeSinceSpill(), and setTimeSinceSpill().


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