#include <DTDigi.h>
Public Member Functions | |
uint32_t | countsTDC () const |
Get raw TDC count. More... | |
DTDigi (int wire, int nTDC, int number=0) | |
DTDigi (int wire, double tdrift, int number=0) | |
DTDigi () | |
Default construction. More... | |
int | number () const |
Identifies different digis within the same. 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... | |
void | setCountsTDC (int nTDC) |
Set with a TDC count. More... | |
void | setTime (double time) |
Set with a time in ns. More... | |
double | time () const |
Get time in ns. More... | |
int | wire () const |
Return wire number. More... | |
Private Attributes | |
uint32_t | theCounts |
uint16_t | theNumber |
uint16_t | theWire |
Static Private Attributes | |
static const double | reso = 25./32. |
Friends | |
class | testDTDigis |
Digi for Drift Tubes. It can be initialized/set with a time in ns or a TDC count in 25/32 ns units.
|
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 17 of file DTDigi.cc.
|
explicit |
Definition at line 24 of file DTDigi.cc.
uint32_t DTDigi::countsTDC | ( | ) | const |
Get raw TDC count.
Definition at line 65 of file DTDigi.cc.
References theCounts.
Referenced by DTBtiChip::add_digi(), DTBtiHit::DTBtiHit(), operator==(), and DTDigitizer::storeDigis().
int DTDigi::number | ( | ) | const |
Identifies different digis within the same.
Definition at line 69 of file DTDigi.cc.
References theNumber.
Referenced by operator<<(), print(), and DTDigitizer::storeDigis().
bool DTDigi::operator== | ( | const DTDigi & | digi | ) | const |
void DTDigi::print | ( | void | ) | const |
Print content of digi.
Definition at line 87 of file DTDigi.cc.
References gather_cfg::cout, number(), time(), and wire().
Referenced by DTBtiChip::add_digi().
void DTDigi::setCountsTDC | ( | int | nTDC | ) |
Set with a TDC count.
Definition at line 77 of file DTDigi.cc.
References gather_cfg::cout, and theCounts.
void DTDigi::setTime | ( | double | time | ) |
double DTDigi::time | ( | ) | const |
Get time in ns.
Definition at line 63 of file DTDigi.cc.
References reso, and theCounts.
Referenced by DTLinearDriftAlgo::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), operator<<(), print(), and DTDigitizer::storeDigis().
int DTDigi::wire | ( | ) | const |
Return wire number.
Definition at line 67 of file DTDigi.cc.
References theWire.
Referenced by DTLinearDriftAlgo::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), operator<<(), operator==(), and print().
|
staticprivate |
|
private |
Definition at line 76 of file DTDigi.h.
Referenced by countsTDC(), operator==(), setCountsTDC(), setTime(), and time().
|
private |
Definition at line 75 of file DTDigi.h.
Referenced by operator==(), and wire().