9#ifndef EVENT_ECALDIGICOLLECTION_H_
10#define EVENT_ECALDIGICOLLECTION_H_
115 std::vector<EcalDigiSample>
getDigi(
unsigned int digiIndex)
const;
125 void addDigi(std::vector<EcalDigiSample> newSamples);
Represents a collection of the ECal digi hits.
std::vector< EcalDigiSample > getDigi(unsigned int digiIndex) const
Get samples for the input digi index.
void addDigi(std::vector< EcalDigiSample > newSamples)
Translate and add samples to collection.
unsigned int sampleOfInterest_
index for the sample of interest in the samples list
std::vector< int > channelIDs_
list of channel IDs that we have digis for
ClassDef(EcalDigiCollection, 1)
The ROOT class definition.
virtual ~EcalDigiCollection()
Class destructor.
std::vector< int32_t > samples_
list of samples that we have been given
EcalDigiCollection()
Class constructor.
static const int SECONFLAG_POS
Bit position of second flag.
static const int TEN_BIT_MASK
Mask for lowest order ten bits in an int.
void setSampleOfInterestIndex(unsigned int n)
Set index of sample of interest.
static const int ONE_BIT_MASK
Mask for lowest order bit in an int.
static const int FIRSTFLAG_POS
Bit position of first flag.
unsigned int numSamplesPerDigi_
number of samples for each digi
unsigned int getSampleOfInterestIndex() const
Get index of sample of interest.
static const int SECONMEAS_POS
Bit position of second measurement.
static const int FIRSTMEAS_POS
Bit position of first measurement.
void Print() const
Print out the object.
unsigned int getNumDigis() const
Get total number of digis.
void Clear()
Clear the data in the object.
unsigned int getNumSamplesPerDigi() const
Get number of samples per digi.
void setNumSamplesPerDigi(unsigned int n)
Set number of samples for each digi.
One sample of an Ecal digi channel.
int adc_tm1_
ADC counts in this channel at the previous time.
int toa_
Time counts when signal arrived in this channel.
int adc_t_
ADC counts in this channel at this time.
int rawID_
Raw integer ID of channel this sample is for.
int tot_
Time counts over threshhold in this channel.