#include <DTDigiSimLink.h>
Classes | |
struct | ChannelPacking |
Public Types | |
typedef uint32_t | ChannelType |
Public Member Functions | |
ChannelType | channel () const |
uint32_t | countsTDC () const |
DTDigiSimLink (int wireNr, int digiNr, int nTDC, unsigned int trackId, EncodedEventId evId) | |
DTDigiSimLink (int wireNr, int digiNr, double tdrift, unsigned int trackId, EncodedEventId evId) | |
DTDigiSimLink () | |
EncodedEventId | eventId () const |
int | number () const |
unsigned int | SimTrackId () const |
double | time () const |
int | wire () const |
Private Attributes | |
uint32_t | theCounts |
uint16_t | theDigiNumber |
EncodedEventId | theEventId |
uint32_t | theSimTrackId |
uint16_t | theWire |
Static Private Attributes | |
static const double | reso = 25./32. |
Definition at line 7 of file DTDigiSimLink.h.
typedef uint32_t DTDigiSimLink::ChannelType |
Definition at line 10 of file DTDigiSimLink.h.
DTDigiSimLink::DTDigiSimLink | ( | int | wireNr, |
int | digiNr, | ||
int | nTDC, | ||
unsigned int | trackId, | ||
EncodedEventId | evId | ||
) | [explicit] |
Definition at line 6 of file DTDigiSimLink.cc.
: theWire(wireNr), theDigiNumber(digiNr), theCounts(nTDC), theSimTrackId(trackId), theEventId(evId) {}
DTDigiSimLink::DTDigiSimLink | ( | int | wireNr, |
int | digiNr, | ||
double | tdrift, | ||
unsigned int | trackId, | ||
EncodedEventId | evId | ||
) | [explicit] |
Definition at line 14 of file DTDigiSimLink.cc.
: theWire(wireNr), theDigiNumber(digiNr), theCounts(static_cast<int>(tdrift/reso)), theSimTrackId(trackId), theEventId(evId) {}
DTDigiSimLink::DTDigiSimLink | ( | ) |
Definition at line 22 of file DTDigiSimLink.cc.
: theWire(0), theDigiNumber(0), theCounts(0), theSimTrackId(0), theEventId(0) {}
DTDigiSimLink::ChannelType DTDigiSimLink::channel | ( | ) | const |
Definition at line 30 of file DTDigiSimLink.cc.
References DTDigiSimLink::ChannelPacking::num, query::result, theDigiNumber, theWire, and DTDigiSimLink::ChannelPacking::wi.
{ ChannelPacking result; result.wi = theWire; result.num = theDigiNumber; DTDigiSimLink::ChannelType* p_result = reinterpret_cast<DTDigiSimLink::ChannelType*>(&result); return *p_result; }
uint32_t DTDigiSimLink::countsTDC | ( | ) | const |
EncodedEventId DTDigiSimLink::eventId | ( | ) | const |
Definition at line 48 of file DTDigiSimLink.cc.
References theEventId.
Referenced by operator<<().
{return theEventId;}
int DTDigiSimLink::number | ( | ) | const |
Definition at line 40 of file DTDigiSimLink.cc.
References theDigiNumber.
Referenced by operator<<().
{return theDigiNumber;}
unsigned int DTDigiSimLink::SimTrackId | ( | ) | const |
Definition at line 46 of file DTDigiSimLink.cc.
References theSimTrackId.
Referenced by operator<<().
{return theSimTrackId;}
double DTDigiSimLink::time | ( | ) | const |
Definition at line 44 of file DTDigiSimLink.cc.
References reso, and theCounts.
Referenced by operator<<().
int DTDigiSimLink::wire | ( | ) | const |
Definition at line 38 of file DTDigiSimLink.cc.
References theWire.
Referenced by operator<<().
{return theWire;}
const double DTDigiSimLink::reso = 25./32. [static, private] |
Definition at line 47 of file DTDigiSimLink.h.
Referenced by time().
uint32_t DTDigiSimLink::theCounts [private] |
Definition at line 58 of file DTDigiSimLink.h.
Referenced by countsTDC(), and time().
uint16_t DTDigiSimLink::theDigiNumber [private] |
Definition at line 57 of file DTDigiSimLink.h.
EncodedEventId DTDigiSimLink::theEventId [private] |
Definition at line 60 of file DTDigiSimLink.h.
Referenced by eventId().
uint32_t DTDigiSimLink::theSimTrackId [private] |
Definition at line 59 of file DTDigiSimLink.h.
Referenced by SimTrackId().
uint16_t DTDigiSimLink::theWire [private] |
Definition at line 56 of file DTDigiSimLink.h.