CMS 3D CMS Logo

DTDigiSimLink Class Reference

#include <SimDataFormats/DigiSimLinks/interface/DTDigiSimLink.h>

List of all members.

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


Detailed Description

Definition at line 7 of file DTDigiSimLink.h.


Member Typedef Documentation

typedef uint32_t DTDigiSimLink::ChannelType

Definition at line 10 of file DTDigiSimLink.h.


Constructor & Destructor Documentation

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 {}


Member Function Documentation

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

Definition at line 41 of file DTDigiSimLink.cc.

References theCounts.

00041 { return theCounts; }

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<<().

00043 { return theCounts*reso; }

int DTDigiSimLink::wire (  )  const

Definition at line 37 of file DTDigiSimLink.cc.

References theWire.

Referenced by operator<<().

00037 {return theWire;}


Member Data Documentation

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.

Referenced by channel(), and number().

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.

Referenced by channel(), and wire().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:18:50 2009 for CMSSW by  doxygen 1.5.4