#include <DTDigi.h>
Public Member Functions | |
uint32_t | countsTDC () const |
Get raw TDC count. | |
DTDigi (int wire, int nTDC, int number=0) | |
DTDigi (int wire, double tdrift, int number=0) | |
DTDigi () | |
Default construction. | |
int | number () const |
Identifies different digis within the same. | |
bool | operator== (const DTDigi &digi) const |
Digis are equal if they are on the same cell and have same TDC count. | |
void | print () const |
Print content of digi. | |
void | setCountsTDC (int nTDC) |
Set with a TDC count. | |
void | setTime (double time) |
Set with a time in ns. | |
double | time () const |
Get time in ns. | |
int | wire () const |
Return wire number. | |
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.
DTDigi::DTDigi | ( | int | wire, |
int | nTDC, | ||
int | number = 0 |
||
) | [explicit] |
DTDigi::DTDigi | ( | int | wire, |
double | tdrift, | ||
int | number = 0 |
||
) | [explicit] |
DTDigi::DTDigi | ( | ) |
uint32_t DTDigi::countsTDC | ( | ) | const |
Get raw TDC count.
Definition at line 67 of file DTDigi.cc.
References theCounts.
Referenced by DTBtiChip::add_digi(), DTBtiHit::DTBtiHit(), operator==(), and DTDigitizer::storeDigis().
{ return theCounts; }
int DTDigi::number | ( | ) | const |
Identifies different digis within the same.
Definition at line 71 of file DTDigi.cc.
References theNumber.
Referenced by operator<<(), print(), and DTDigitizer::storeDigis().
{ return theNumber; }
bool DTDigi::operator== | ( | const DTDigi & | digi | ) | const |
void DTDigi::print | ( | void | ) | const |
void DTDigi::setCountsTDC | ( | int | nTDC | ) |
void DTDigi::setTime | ( | double | time | ) |
double DTDigi::time | ( | ) | const |
Get time in ns.
Definition at line 65 of file DTDigi.cc.
References reso, and theCounts.
Referenced by DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), operator<<(), print(), and DTDigitizer::storeDigis().
int DTDigi::wire | ( | ) | const |
Return wire number.
Definition at line 69 of file DTDigi.cc.
References theWire.
Referenced by DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), operator<<(), operator==(), and print().
{ return theWire; }
const double DTDigi::reso = 25./32. [static, private] |
uint32_t DTDigi::theCounts [private] |
Definition at line 78 of file DTDigi.h.
Referenced by countsTDC(), operator==(), setCountsTDC(), setTime(), and time().
uint16_t DTDigi::theNumber [private] |
uint16_t DTDigi::theWire [private] |
Definition at line 77 of file DTDigi.h.
Referenced by operator==(), and wire().