CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
PixelDigiSimLink Class Reference

#include <PixelDigiSimLink.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 PixelDigiSimLink &other) const
 
 PixelDigiSimLink (unsigned int ch, unsigned int tkId, unsigned int counter, unsigned int tofBin, EncodedEventId e, float a)
 
 PixelDigiSimLink (unsigned int ch, unsigned int tkId, EncodedEventId e, float a)
 
 PixelDigiSimLink ()
 
unsigned int SimTrackId () const
 
unsigned int TofBin () const
 
 ~PixelDigiSimLink ()
 

Private Attributes

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

Detailed Description

Definition at line 8 of file PixelDigiSimLink.h.

Member Enumeration Documentation

anonymous enum
Enumerator
LowTof 
HighTof 

Definition at line 10 of file PixelDigiSimLink.h.

Constructor & Destructor Documentation

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

Definition at line 12 of file PixelDigiSimLink.h.

References a, CFpos, chan, MillePedeFileConverter_cfg::e, eId, fract, LowTof, and simTkId.

12  {
13  chan=ch;
14  simTkId=tkId;
15  CFpos = tofBin == LowTof ? counter & 0x7FFFFFFF : (counter & 0x7FFFFFFF) | 0x80000000;
16  fract=a;
17  eId=e;
18  };
double a
Definition: hdecay.h:121
PixelDigiSimLink::PixelDigiSimLink ( unsigned int  ch,
unsigned int  tkId,
EncodedEventId  e,
float  a 
)
inline

Definition at line 19 of file PixelDigiSimLink.h.

References a, CFpos, chan, MillePedeFileConverter_cfg::e, eId, fract, and simTkId.

19  {
20  chan=ch;
21  simTkId=tkId;
22  CFpos = 0;
23  fract=a;
24  eId=e;
25  };
double a
Definition: hdecay.h:121
PixelDigiSimLink::PixelDigiSimLink ( )
inline

Definition at line 26 of file PixelDigiSimLink.h.

References CFpos, chan, fract, and simTkId.

26  :eId(0){
27  chan=0;
28  simTkId=0;
29  CFpos = 0;
30  fract=0;
31  };
PixelDigiSimLink::~PixelDigiSimLink ( )
inline

Definition at line 32 of file PixelDigiSimLink.h.

32 {};

Member Function Documentation

unsigned int PixelDigiSimLink::CFposition ( ) const
inline

Definition at line 35 of file PixelDigiSimLink.h.

References CFpos.

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

Definition at line 33 of file PixelDigiSimLink.h.

References chan.

33 {return chan;};
EncodedEventId PixelDigiSimLink::eventId ( ) const
inline

Definition at line 37 of file PixelDigiSimLink.h.

References eId.

37 {return eId;}
float PixelDigiSimLink::fraction ( ) const
inline

Definition at line 38 of file PixelDigiSimLink.h.

References fract.

Referenced by operator<().

38 {return fract;};
bool PixelDigiSimLink::operator< ( const PixelDigiSimLink other) const
inline

Definition at line 41 of file PixelDigiSimLink.h.

References fraction().

41 { return fraction() < other.fraction(); }
unsigned int PixelDigiSimLink::SimTrackId ( ) const
inline

Definition at line 34 of file PixelDigiSimLink.h.

References simTkId.

34 {return simTkId;};
unsigned int PixelDigiSimLink::TofBin ( ) const
inline

Definition at line 36 of file PixelDigiSimLink.h.

References CFpos, HighTof, and LowTof.

Member Data Documentation

uint32_t PixelDigiSimLink::CFpos
private

Definition at line 46 of file PixelDigiSimLink.h.

Referenced by CFposition(), PixelDigiSimLink(), and TofBin().

unsigned int PixelDigiSimLink::chan
private

Definition at line 44 of file PixelDigiSimLink.h.

Referenced by channel(), and PixelDigiSimLink().

EncodedEventId PixelDigiSimLink::eId
private

Definition at line 48 of file PixelDigiSimLink.h.

Referenced by eventId(), and PixelDigiSimLink().

float PixelDigiSimLink::fract
private

Definition at line 49 of file PixelDigiSimLink.h.

Referenced by fraction(), and PixelDigiSimLink().

unsigned int PixelDigiSimLink::simTkId
private

Definition at line 45 of file PixelDigiSimLink.h.

Referenced by PixelDigiSimLink(), and SimTrackId().