#include <DTDigi.h>
Public Member Functions | |
int32_t | countsTDC () const |
Get raw TDC count. More... | |
DTDigi (int wire, int nTDC, int number=0, int base=32) | |
DTDigi (int wire, double tdrift, int number=0, int base=32) | |
DTDigi () | |
Default construction. More... | |
int | number () const |
Identifies different digis within the same cell. More... | |
bool | operator== (const DTDigi &digi) const |
Digis are equal if they are on the same cell and have same TDC count. More... | |
void | print () const |
Print content of digi. More... | |
int | tdcBase () const |
Get the TDC base (counts per BX) More... | |
double | tdcUnit () const |
Get the TDC unit value in ns. More... | |
double | time () const |
Get time in ns. More... | |
int | wire () const |
Return wire number. More... | |
Private Attributes | |
int32_t | theCounts |
uint8_t | theNumber |
uint8_t | theTDCBase |
uint16_t | theWire |
Static Private Attributes | |
static const double | reso |
Friends | |
class | testDTDigis |
Digi for Drift Tubes. It can be initialized/set with a time in ns or a TDC count in the specified base (ie number of counts/BX).
|
explicit |
Construct from the wire#, the TDC counts and the digi number. number should identify uniquely multiple digis in the same cell.
Definition at line 12 of file DTDigi.cc.
References edmMakeDummyCfis::base, Exception, and number().
|
explicit |
Definition at line 19 of file DTDigi.cc.
References edmMakeDummyCfis::base, Exception, and number().
int32_t DTDigi::countsTDC | ( | ) | const |
Get raw TDC count.
Definition at line 39 of file DTDigi.cc.
References theCounts.
Referenced by DTBtiChip::add_digi(), DTBtiHit::DTBtiHit(), and operator==().
int DTDigi::number | ( | ) | const |
Identifies different digis within the same cell.
Definition at line 43 of file DTDigi.cc.
References theNumber.
Referenced by DTDigi(), operator<<(), print(), and DTDigitizer::storeDigis().
bool DTDigi::operator== | ( | const DTDigi & | digi | ) | const |
void DTDigi::print | ( | void | ) | const |
Print content of digi.
Definition at line 49 of file DTDigi.cc.
References gather_cfg::cout, number(), time(), and wire().
Referenced by DTBtiChip::add_digi().
int DTDigi::tdcBase | ( | ) | const |
double DTDigi::tdcUnit | ( | ) | const |
double DTDigi::time | ( | ) | const |
Get time in ns.
Definition at line 37 of file DTDigi.cc.
References theCounts, and theTDCBase.
Referenced by DTLinearDriftAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftFromDBAlgo::compute(), operator<<(), print(), and DTDigitizer::storeDigis().
int DTDigi::wire | ( | ) | const |
Return wire number.
Definition at line 41 of file DTDigi.cc.
References theWire.
Referenced by DTLinearDriftAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftFromDBAlgo::compute(), operator<<(), operator==(), and print().
|
private |
Definition at line 69 of file DTDigi.h.
Referenced by countsTDC(), operator==(), and time().
|
private |
|
private |
Definition at line 70 of file DTDigi.h.
Referenced by operator==(), and wire().