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.

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

Definition at line 20 of file PixelDigiSimLink.h.

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

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

Definition at line 27 of file PixelDigiSimLink.h.

References CFpos, chan, fract, and simTkId.

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

Definition at line 33 of file PixelDigiSimLink.h.

33 {};

Member Function Documentation

unsigned int PixelDigiSimLink::CFposition ( ) const
inline

Definition at line 36 of file PixelDigiSimLink.h.

References CFpos.

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

Definition at line 34 of file PixelDigiSimLink.h.

References chan.

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

Definition at line 38 of file PixelDigiSimLink.h.

References eId.

Referenced by ntupleDataFormat.Event::eventIdStr().

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

Definition at line 39 of file PixelDigiSimLink.h.

References fract.

Referenced by operator<().

39 { 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 35 of file PixelDigiSimLink.h.

References simTkId.

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

Definition at line 37 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().