CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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.

13  : chan(ch),
14  simTkId(tkId),
15  CFpos(tofBin == LowTof ? counter & 0x7FFFFFFF : (counter & 0x7FFFFFFF) | 0x80000000),
16  eId(e),
17  fract(a) {
18  ;
19  }
double a
Definition: hdecay.h:119
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 21 of file StripDigiSimLink.h.

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

Definition at line 26 of file StripDigiSimLink.h.

27  : chan(ch), simTkId(tkId), CFpos(0), eId(e), fract(a) {
28  ;
29  }
double a
Definition: hdecay.h:119
StripDigiSimLink::StripDigiSimLink ( )
inline

Definition at line 31 of file StripDigiSimLink.h.

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

Definition at line 33 of file StripDigiSimLink.h.

33 { ; }

Member Function Documentation

unsigned int StripDigiSimLink::CFposition ( ) const
inline

Definition at line 37 of file StripDigiSimLink.h.

References CFpos.

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

Definition at line 35 of file StripDigiSimLink.h.

References chan.

Referenced by operator<().

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

Definition at line 39 of file StripDigiSimLink.h.

References eId.

Referenced by ntupleDataFormat.Event::eventIdStr().

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

Definition at line 40 of file StripDigiSimLink.h.

References fract.

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

Definition at line 42 of file StripDigiSimLink.h.

References channel().

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

Definition at line 36 of file StripDigiSimLink.h.

References simTkId.

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

Definition at line 38 of file StripDigiSimLink.h.

References CFpos, HighTof, and LowTof.

Member Data Documentation

uint32_t StripDigiSimLink::CFpos
private

Definition at line 47 of file StripDigiSimLink.h.

Referenced by CFposition(), and TofBin().

unsigned int StripDigiSimLink::chan
private

Definition at line 45 of file StripDigiSimLink.h.

Referenced by channel().

EncodedEventId StripDigiSimLink::eId
private

Definition at line 49 of file StripDigiSimLink.h.

Referenced by eventId().

float StripDigiSimLink::fract
private

Definition at line 50 of file StripDigiSimLink.h.

Referenced by fraction().

unsigned int StripDigiSimLink::simTkId
private

Definition at line 46 of file StripDigiSimLink.h.

Referenced by SimTrackId().