CMS 3D CMS Logo

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 ()
 
 StripDigiSimLink (unsigned int ch, unsigned int tkId, 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, unsigned int counter, unsigned int tofBin, EncodedEventId e, float a)
 
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

anonymous enum
Enumerator
LowTof 
HighTof 

Definition at line 9 of file StripDigiSimLink.h.

9 { LowTof, HighTof };

Constructor & Destructor Documentation

◆ StripDigiSimLink() [1/4]

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  }

◆ StripDigiSimLink() [2/4]

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  }

◆ StripDigiSimLink() [3/4]

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  }

◆ StripDigiSimLink() [4/4]

StripDigiSimLink::StripDigiSimLink ( )
inline

Definition at line 31 of file StripDigiSimLink.h.

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

◆ ~StripDigiSimLink()

StripDigiSimLink::~StripDigiSimLink ( )
inline

Definition at line 33 of file StripDigiSimLink.h.

33 { ; }

Member Function Documentation

◆ CFposition()

unsigned int StripDigiSimLink::CFposition ( ) const
inline

Definition at line 37 of file StripDigiSimLink.h.

37 { return CFpos & 0x7FFFFFFF; }

References CFpos.

◆ channel()

unsigned int StripDigiSimLink::channel ( ) const
inline

Definition at line 35 of file StripDigiSimLink.h.

35 { return chan; }

References chan.

Referenced by operator<().

◆ eventId()

EncodedEventId StripDigiSimLink::eventId ( ) const
inline

Definition at line 39 of file StripDigiSimLink.h.

39 { return eId; }

References eId.

Referenced by ntupleDataFormat.Event::eventIdStr().

◆ fraction()

float StripDigiSimLink::fraction ( ) const
inline

Definition at line 40 of file StripDigiSimLink.h.

40 { return fract; }

References fract.

◆ operator<()

bool StripDigiSimLink::operator< ( const StripDigiSimLink other) const
inline

Definition at line 42 of file StripDigiSimLink.h.

42 { return channel() < other.channel(); }

References channel(), and trackingPlots::other.

◆ SimTrackId()

unsigned int StripDigiSimLink::SimTrackId ( ) const
inline

Definition at line 36 of file StripDigiSimLink.h.

36 { return simTkId; }

References simTkId.

◆ TofBin()

unsigned int StripDigiSimLink::TofBin ( ) const
inline

Definition at line 38 of file StripDigiSimLink.h.

38 { return (CFpos & 0x80000000) == 0 ? LowTof : HighTof; }

References CFpos, HighTof, and LowTof.

Member Data Documentation

◆ CFpos

uint32_t StripDigiSimLink::CFpos
private

Definition at line 47 of file StripDigiSimLink.h.

Referenced by CFposition(), and TofBin().

◆ chan

unsigned int StripDigiSimLink::chan
private

Definition at line 45 of file StripDigiSimLink.h.

Referenced by channel().

◆ eId

EncodedEventId StripDigiSimLink::eId
private

Definition at line 49 of file StripDigiSimLink.h.

Referenced by eventId().

◆ fract

float StripDigiSimLink::fract
private

Definition at line 50 of file StripDigiSimLink.h.

Referenced by fraction().

◆ simTkId

unsigned int StripDigiSimLink::simTkId
private

Definition at line 46 of file StripDigiSimLink.h.

Referenced by SimTrackId().

counter
Definition: counter.py:1
trackingPlots.other
other
Definition: trackingPlots.py:1460
a
double a
Definition: hdecay.h:119
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37