13 : theCounts(nTDC), theWire(wire), theNumber(number), theTDCBase(base) {
14 if (number > 255 || number < 0 || !(base == 30 || base == 32)) {
15 throw cms::Exception(
"BadConfig") <<
"DTDigi ctor: invalid parameters: number: " << number <<
" base: " <<
base;
20 : theCounts(static_cast<int>(tdrift / 25. * base)), theWire(wire), theNumber(number), theTDCBase(base) {
21 if (number > 255 || number < 0 || !(base == 30 || base == 32)) {
22 throw cms::Exception(
"BadConfig") <<
"DTDigi ctor: invalid parameters: number: " << number <<
" base: " <<
base;
50 cout <<
"Wire " <<
wire() <<
" Digi # " <<
number() <<
" Drift time (ns) " <<
time() << endl;
void print() const
Print content of digi.
bool operator==(const DTDigi &digi) const
Digis are equal if they are on the same cell and have same TDC count.
double tdcUnit() const
Get the TDC unit value in ns.
int wire() const
Return wire number.
int tdcBase() const
Get the TDC base (counts per BX)
double time() const
Get time in ns.
DTDigi()
Default construction.
int number() const
Identifies different digis within the same cell.
int32_t countsTDC() const
Get raw TDC count.