CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Private Attributes | Static Private Attributes

DTDigiSimLink Class Reference

#include <DTDigiSimLink.h>

List of all members.

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.

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.

                                                                                                       :
  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.


Member Function Documentation

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

Definition at line 42 of file DTDigiSimLink.cc.

References theCounts.

{ return theCounts; }
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<<().

{ return theCounts*reso; }
int DTDigiSimLink::wire ( ) const

Definition at line 38 of file DTDigiSimLink.cc.

References theWire.

Referenced by operator<<().

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

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