#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 DTBtiHit::DTBtiHit(), and operator==().
int DTDigi::number | ( | ) | const |
Identifies different digis within the same.
Definition at line 69 of file DTDigi.cc.
References theNumber.
Referenced by operator<<(), and print().
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().
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 |
int DTDigi::wire | ( | ) | const |
Return wire number.
Definition at line 67 of file DTDigi.cc.
References theWire.
Referenced by 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().