LDMX Software
|
One DIGI signal coming from the HGC ROC. More...
#include <HgcrocDigiCollection.h>
Public Member Functions | |
HgcrocDigi (unsigned int id, std::vector< uint32_t >::const_iterator first, const HgcrocDigiCollection &collection) | |
Constructor. | |
unsigned int | id () const |
Get the ID for this DIGI. | |
bool | isADC () const |
Check if this DIGI is an ADC measurement. | |
bool | isTOT () const |
Check if this DIGI is a TOT measurement. | |
int | tot () const |
Get the 12-bit decoded TOT measurement from this DIGI. | |
HgcrocDigiCollection::Sample | at (unsigned int i_sample) const |
get the sample at a specific index in the digi | |
HgcrocDigiCollection::Sample | soi () const |
Get the sample of interest from this DIGI. | |
unsigned int | size () const |
Private Attributes | |
unsigned int | id_ |
channel ID where this signal is coming from | |
std::vector< uint32_t >::const_iterator | first_ |
the location of the first sample that are in this digi | |
const HgcrocDigiCollection & | collection_ |
Reference to collection that owns this DIGI. | |
One DIGI signal coming from the HGC ROC.
This stores the channel ID and the samples coming from a channel It really only makes sense to use this object when retrieving DIGIs from the collection. Do not try to make one of these yourself.
Definition at line 227 of file HgcrocDigiCollection.h.
|
inline |
Constructor.
Passes required variables to this structure.
[in] | id | global integer ID for the DIGI channel |
[in] | first | iterator pointing to first sample of this DIGI in the collection |
[in] | collection | const reference to the collection this DIGI references |
Definition at line 240 of file HgcrocDigiCollection.h.
|
inline |
get the sample at a specific index in the digi
Definition at line 289 of file HgcrocDigiCollection.h.
References collection_, first_, and ldmx::HgcrocDigiCollection::getVersion().
Referenced by hcal::HcalSingleEndRecProducer::extract_measurements(), hcal::HcalRecProducer::getTOA(), and soi().
|
inline |
Get the ID for this DIGI.
Definition at line 249 of file HgcrocDigiCollection.h.
References id_.
Referenced by operator<<(), ecal::EcalTrigPrimDigiProducer::produce(), and hcal::HcalTrigPrimDigiProducer::produce().
|
inline |
Check if this DIGI is an ADC measurement.
We consider this DIGI an ADC measurement if both of the flags for the Sample Of Interest are false.
Definition at line 259 of file HgcrocDigiCollection.h.
References ldmx::HgcrocDigiCollection::Sample::isTOTComplete(), ldmx::HgcrocDigiCollection::Sample::isTOTinProgress(), and soi().
Referenced by hcal::test::HcalCheckReconstruction::analyze(), isTOT(), and operator<<().
|
inline |
Check if this DIGI is a TOT measurement.
Definition at line 271 of file HgcrocDigiCollection.h.
References isADC().
Referenced by tot().
|
inline |
Definition at line 302 of file HgcrocDigiCollection.h.
|
inline |
Get the sample of interest from this DIGI.
Definition at line 298 of file HgcrocDigiCollection.h.
References at(), collection_, and ldmx::HgcrocDigiCollection::getSampleOfInterestIndex().
Referenced by isADC(), operator<<(), ecal::EcalTrigPrimDigiProducer::produce(), hcal::HcalTrigPrimDigiProducer::produce(), and tot().
|
inline |
Get the 12-bit decoded TOT measurement from this DIGI.
Definition at line 282 of file HgcrocDigiCollection.h.
References isTOT(), soi(), and ldmx::HgcrocDigiCollection::Sample::tot().
Referenced by operator<<().
|
private |
Reference to collection that owns this DIGI.
Definition at line 312 of file HgcrocDigiCollection.h.
|
private |
the location of the first sample that are in this digi
Definition at line 309 of file HgcrocDigiCollection.h.
Referenced by at().
|
private |
channel ID where this signal is coming from
Definition at line 306 of file HgcrocDigiCollection.h.
Referenced by id().