1 #ifndef CSCStripDigi_CSCStripDigi_h 2 #define CSCStripDigi_CSCStripDigi_h 22 CSCStripDigi (
const int & istrip,
const std::vector<int> & vADCCounts,
const std::vector<uint16_t> & vADCOverflow,
const std::vector<uint16_t> & vOverlap,
23 const std::vector<uint16_t> & vErrorstat ) :
31 CSCStripDigi (
const int & istrip,
const std::vector<int> & vADCCounts):
62 return L1APhaseResult;
84 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