CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
StripDigiSimLink Class Reference

#include <StripDigiSimLink.h>

Public Types

enum  { LowTof, HighTof }
 

Public Member Functions

unsigned int CFposition () const
 
unsigned int channel () const
 
EncodedEventId eventId () const
 
float fraction () const
 
bool operator< (const StripDigiSimLink &other) const
 
unsigned int SimTrackId () const
 
 StripDigiSimLink (unsigned int ch, unsigned int tkId, unsigned int counter, unsigned int tofBin, EncodedEventId e, float a)
 
 StripDigiSimLink (unsigned int ch, unsigned int tkId, unsigned int counter, EncodedEventId e, float a)
 
 StripDigiSimLink (unsigned int ch, unsigned int tkId, EncodedEventId e, float a)
 
 StripDigiSimLink ()
 
unsigned int TofBin () const
 
 ~StripDigiSimLink ()
 

Private Attributes

uint32_t CFpos
 
unsigned int chan
 
EncodedEventId eId
 
float fract
 
unsigned int simTkId
 

Detailed Description

Definition at line 7 of file StripDigiSimLink.h.

Member Enumeration Documentation

anonymous enum
Enumerator
LowTof 
HighTof 

Definition at line 9 of file StripDigiSimLink.h.

Constructor & Destructor Documentation

StripDigiSimLink::StripDigiSimLink ( unsigned int  ch,
unsigned int  tkId,
unsigned int  counter,
unsigned int  tofBin,
EncodedEventId  e,
float  a 
)
inline

Definition at line 11 of file StripDigiSimLink.h.

11  :
12  chan(ch),simTkId(tkId), CFpos(tofBin == LowTof ? counter & 0x7FFFFFFF : (counter & 0x7FFFFFFF) | 0x80000000), eId(e), fract(a) {;}
double a
Definition: hdecay.h:121
static std::atomic< unsigned int > counter
StripDigiSimLink::StripDigiSimLink ( unsigned int  ch,
unsigned int  tkId,
unsigned int  counter,
EncodedEventId  e,
float  a 
)
inline

Definition at line 14 of file StripDigiSimLink.h.

14  :
15  chan(ch),simTkId(tkId), CFpos(counter & 0x7FFFFFFF), eId(e), fract(a) {;}
double a
Definition: hdecay.h:121
static std::atomic< unsigned int > counter
StripDigiSimLink::StripDigiSimLink ( unsigned int  ch,
unsigned int  tkId,
EncodedEventId  e,
float  a 
)
inline

Definition at line 17 of file StripDigiSimLink.h.

17  :
18  chan(ch),simTkId(tkId), CFpos(0), eId(e), fract(a) {;}
double a
Definition: hdecay.h:121
StripDigiSimLink::StripDigiSimLink ( )
inline

Definition at line 20 of file StripDigiSimLink.h.

20 :chan(0),simTkId(0),CFpos(0),eId(0), fract(0) {;}
StripDigiSimLink::~StripDigiSimLink ( )
inline

Definition at line 22 of file StripDigiSimLink.h.

22 {;}

Member Function Documentation

unsigned int StripDigiSimLink::CFposition ( ) const
inline

Definition at line 26 of file StripDigiSimLink.h.

References CFpos.

26 {return CFpos & 0x7FFFFFFF;}
unsigned int StripDigiSimLink::channel ( ) const
inline

Definition at line 24 of file StripDigiSimLink.h.

References chan.

Referenced by operator<().

24 {return chan;}
EncodedEventId StripDigiSimLink::eventId ( ) const
inline

Definition at line 28 of file StripDigiSimLink.h.

References eId.

28 {return eId;}
float StripDigiSimLink::fraction ( ) const
inline

Definition at line 29 of file StripDigiSimLink.h.

References fract.

29 {return fract;}
bool StripDigiSimLink::operator< ( const StripDigiSimLink other) const
inline

Definition at line 31 of file StripDigiSimLink.h.

References channel().

31 { return channel() < other.channel(); }
unsigned int StripDigiSimLink::SimTrackId ( ) const
inline

Definition at line 25 of file StripDigiSimLink.h.

References simTkId.

25 {return simTkId;}
unsigned int StripDigiSimLink::TofBin ( ) const
inline

Definition at line 27 of file StripDigiSimLink.h.

References CFpos, HighTof, and LowTof.

Member Data Documentation

uint32_t StripDigiSimLink::CFpos
private

Definition at line 36 of file StripDigiSimLink.h.

Referenced by CFposition(), and TofBin().

unsigned int StripDigiSimLink::chan
private

Definition at line 34 of file StripDigiSimLink.h.

Referenced by channel().

EncodedEventId StripDigiSimLink::eId
private

Definition at line 38 of file StripDigiSimLink.h.

Referenced by eventId().

float StripDigiSimLink::fract
private

Definition at line 39 of file StripDigiSimLink.h.

Referenced by fraction().

unsigned int StripDigiSimLink::simTkId
private

Definition at line 35 of file StripDigiSimLink.h.

Referenced by SimTrackId().