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

anonymous enum
Enumerator
LowTof 
HighTof 

Definition at line 10 of file PixelDigiSimLink.h.

10 { LowTof, HighTof };

Constructor & Destructor Documentation

◆ PixelDigiSimLink() [1/3]

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.

13  {
14  chan = ch;
15  simTkId = tkId;
16  CFpos = tofBin == LowTof ? counter & 0x7FFFFFFF : (counter & 0x7FFFFFFF) | 0x80000000;
17  fract = a;
18  eId = e;
19  };

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

◆ PixelDigiSimLink() [2/3]

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

Definition at line 20 of file PixelDigiSimLink.h.

20  {
21  chan = ch;
22  simTkId = tkId;
23  CFpos = 0;
24  fract = a;
25  eId = e;
26  };

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

◆ PixelDigiSimLink() [3/3]

PixelDigiSimLink::PixelDigiSimLink ( )
inline

Definition at line 27 of file PixelDigiSimLink.h.

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

References CFpos, chan, fract, and simTkId.

◆ ~PixelDigiSimLink()

PixelDigiSimLink::~PixelDigiSimLink ( )
inline

Definition at line 33 of file PixelDigiSimLink.h.

33 {};

Member Function Documentation

◆ CFposition()

unsigned int PixelDigiSimLink::CFposition ( ) const
inline

Definition at line 36 of file PixelDigiSimLink.h.

36 { return CFpos & 0x7FFFFFFF; }

References CFpos.

◆ channel()

unsigned int PixelDigiSimLink::channel ( ) const
inline

Definition at line 34 of file PixelDigiSimLink.h.

34 { return chan; };

References chan.

◆ eventId()

EncodedEventId PixelDigiSimLink::eventId ( ) const
inline

Definition at line 38 of file PixelDigiSimLink.h.

38 { return eId; }

References eId.

Referenced by ntupleDataFormat.Event::eventIdStr().

◆ fraction()

float PixelDigiSimLink::fraction ( ) const
inline

Definition at line 39 of file PixelDigiSimLink.h.

39 { return fract; };

References fract.

Referenced by operator<().

◆ operator<()

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

Definition at line 41 of file PixelDigiSimLink.h.

41 { return fraction() < other.fraction(); }

References fraction(), and trackingPlots::other.

◆ SimTrackId()

unsigned int PixelDigiSimLink::SimTrackId ( ) const
inline

Definition at line 35 of file PixelDigiSimLink.h.

35 { return simTkId; };

References simTkId.

◆ TofBin()

unsigned int PixelDigiSimLink::TofBin ( ) const
inline

Definition at line 37 of file PixelDigiSimLink.h.

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

References CFpos, HighTof, and LowTof.

Member Data Documentation

◆ CFpos

uint32_t PixelDigiSimLink::CFpos
private

Definition at line 46 of file PixelDigiSimLink.h.

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

◆ chan

unsigned int PixelDigiSimLink::chan
private

Definition at line 44 of file PixelDigiSimLink.h.

Referenced by channel(), and PixelDigiSimLink().

◆ eId

EncodedEventId PixelDigiSimLink::eId
private

Definition at line 48 of file PixelDigiSimLink.h.

Referenced by eventId(), and PixelDigiSimLink().

◆ fract

float PixelDigiSimLink::fract
private

Definition at line 49 of file PixelDigiSimLink.h.

Referenced by fraction(), and PixelDigiSimLink().

◆ simTkId

unsigned int PixelDigiSimLink::simTkId
private

Definition at line 45 of file PixelDigiSimLink.h.

Referenced by PixelDigiSimLink(), and SimTrackId().

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