#include <SimDataFormats/DigiSimLinks/interface/DTDigiSimLink.h>
Public Types | |
typedef uint32_t | ChannelType |
Public Member Functions | |
ChannelType | channel () const |
uint32_t | countsTDC () const |
DTDigiSimLink () | |
DTDigiSimLink (int wireNr, int digiNr, double tdrift, unsigned int trackId, EncodedEventId evId) | |
DTDigiSimLink (int wireNr, int digiNr, int nTDC, unsigned int trackId, EncodedEventId evId) | |
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. |
Classes | |
struct | ChannelPacking |
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.
00006 : 00007 theWire(wireNr), 00008 theDigiNumber(digiNr), 00009 theCounts(nTDC), 00010 theSimTrackId(trackId), 00011 theEventId(evId) 00012 {}
DTDigiSimLink::DTDigiSimLink | ( | int | wireNr, | |
int | digiNr, | |||
double | tdrift, | |||
unsigned int | trackId, | |||
EncodedEventId | evId | |||
) | [explicit] |
Definition at line 14 of file DTDigiSimLink.cc.
00014 : 00015 theWire(wireNr), 00016 theDigiNumber(digiNr), 00017 theCounts(static_cast<int>(tdrift/reso)), 00018 theSimTrackId(trackId), 00019 theEventId(evId) 00020 {}
DTDigiSimLink::DTDigiSimLink | ( | ) |
Definition at line 22 of file DTDigiSimLink.cc.
00022 : 00023 theWire(0), 00024 theDigiNumber(0), 00025 theCounts(0), 00026 theSimTrackId(0), 00027 theEventId(0) 00028 {}
DTDigiSimLink::ChannelType DTDigiSimLink::channel | ( | void | ) | const |
Definition at line 30 of file DTDigiSimLink.cc.
References DTDigiSimLink::ChannelPacking::num, HLT_VtxMuL3::result, theDigiNumber, theWire, and DTDigiSimLink::ChannelPacking::wi.
00030 { 00031 ChannelPacking result; 00032 result.wi = theWire; 00033 result.num = theDigiNumber; 00034 return *(reinterpret_cast<DTDigiSimLink::ChannelType*>(&result)); 00035 }
uint32_t DTDigiSimLink::countsTDC | ( | ) | const |
EncodedEventId DTDigiSimLink::eventId | ( | ) | const |
Definition at line 47 of file DTDigiSimLink.cc.
References theEventId.
Referenced by operator<<().
00047 {return theEventId;}
int DTDigiSimLink::number | ( | ) | const |
Definition at line 39 of file DTDigiSimLink.cc.
References theDigiNumber.
Referenced by operator<<().
00039 {return theDigiNumber;}
unsigned int DTDigiSimLink::SimTrackId | ( | ) | const |
Definition at line 45 of file DTDigiSimLink.cc.
References theSimTrackId.
Referenced by operator<<().
00045 {return theSimTrackId;}
double DTDigiSimLink::time | ( | void | ) | const |
Definition at line 43 of file DTDigiSimLink.cc.
References reso, and theCounts.
Referenced by operator<<().
int DTDigiSimLink::wire | ( | ) | const |
Definition at line 37 of file DTDigiSimLink.cc.
References theWire.
Referenced by operator<<().
00037 {return theWire;}
const double DTDigiSimLink::reso = 25./32. [static, private] |
uint32_t DTDigiSimLink::theCounts [private] |
uint16_t DTDigiSimLink::theDigiNumber [private] |
EncodedEventId DTDigiSimLink::theEventId [private] |
uint32_t DTDigiSimLink::theSimTrackId [private] |
uint16_t DTDigiSimLink::theWire [private] |