1 #ifndef CSCStripDigi_CSCStripDigi_h 2 #define CSCStripDigi_CSCStripDigi_h 21 const std::vector<int>& vADCCounts,
22 const std::vector<uint16_t>& vADCOverflow,
23 const std::vector<uint16_t>& vOverlap,
24 const std::vector<uint16_t>& vErrorstat)
32 CSCStripDigi(
const int& istrip,
const std::vector<int>& vADCCounts)
51 return L1APhaseResult;
71 float pedestal()
const {
return 0.5f * (ADCCounts[0] + ADCCounts[1]); }
std::vector< int > getL1APhase() const
Get L1APhase from OverlappedSample (9th bit)
std::vector< uint16_t > const & getOverlappedSample() const
std::vector< uint16_t > OverlappedSample
CSCStripDigi(const int &istrip, const std::vector< int > &vADCCounts, const std::vector< uint16_t > &vADCOverflow, const std::vector< uint16_t > &vOverlap, const std::vector< uint16_t > &vErrorstat)
std::vector< int > const & getADCCounts() const
Get ADC readings.
std::vector< uint16_t > Errorstat
std::vector< int > ADCCounts
float pedestal() const
methods for calibrations
void setADCCounts(const std::vector< int > &ADCCounts)
std::vector< uint16_t > ADCOverflow
CSCStripDigi(const int &istrip, const std::vector< int > &vADCCounts)
std::vector< uint16_t > const & getADCOverflow() const
Other getters.
void setStrip(int istrip)
std::ostream & operator<<(std::ostream &o, const CSCStripDigi &digi)
std::vector< uint16_t > const & getErrorstat() const
bool operator==(const CSCStripDigi &digi) const
int getL1APhase(int i) const