CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StripDigiSimLink.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_TrackerDigiSimLink_StripDigiSimLink_h
2 #define SimDataFormats_TrackerDigiSimLink_StripDigiSimLink_h
3 
4 #include "boost/cstdint.hpp"
6 
8  public:
9  StripDigiSimLink(unsigned int ch, unsigned int tkId, unsigned int counter, EncodedEventId e,float a ):
10  chan(ch),simTkId(tkId), CFpos(counter), eId(e) , fract(a) {;}
11 
12  StripDigiSimLink(unsigned int ch, unsigned int tkId, EncodedEventId e,float a ):
13  chan(ch),simTkId(tkId), CFpos(0), eId(e) , fract(a) {;}
14 
15  StripDigiSimLink():chan(0),simTkId(0),CFpos(0),eId(0), fract(0) {;}
16 
18 
19  unsigned int channel() const {return chan;}
20  unsigned int SimTrackId() const {return simTkId;}
21  unsigned int CFposition() const {return CFpos;}
22  EncodedEventId eventId() const {return eId;}
23  float fraction() const {return fract;}
24 
25  inline bool operator< ( const StripDigiSimLink& other ) const { return channel() < other.channel(); }
26 
27  private:
28  unsigned int chan;
29  unsigned int simTkId;
30  unsigned int CFpos; //position of the PSimHit in the CrossingFrame vector
32  float fract;
33 };
34 #endif
35 
36 
37 
double a
Definition: hdecay.h:121
static std::atomic< unsigned int > counter