CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCCLCTPreTriggerDigi.h
Go to the documentation of this file.
1 #ifndef CSCDigi_CSCCLCTPreTriggerDigi_h
2 #define CSCDigi_CSCCLCTPreTriggerDigi_h
3 
12 #include <cstdint>
13 #include <iosfwd>
14 
16 
17  public:
18 
20  CSCCLCTPreTriggerDigi(const int valid, const int quality, const int pattern,
21  const int striptype, const int bend, const int strip,
22  const int cfeb, const int bx, const int trknmb = 0, const int fullbx=0);
25 
27  void clear();
28 
30  bool isValid() const {return valid_ ;}
31 
33  int getQuality() const {return quality_ ;}
34 
36  int getPattern() const {return pattern_ ;}
37 
39  int getStripType() const {return striptype_ ;}
40 
42  int getBend() const {return bend_ ;}
43 
45  int getStrip() const {return strip_ ;}
46 
48  int getCFEB() const {return cfeb_ ;}
49 
51  int getBX() const {return bx_ ;}
52 
54  int getTrknmb() const {return trknmb_ ;}
55 
65  int getKeyStrip() const {
66  int keyStrip = cfeb_ * 32 + strip_;
67  return keyStrip;
68  }
69 
71  void setTrknmb(const uint16_t number) {trknmb_ = number;}
72 
74  int getFullBX() const {return fullbx_ ;}
75 
77  void setFullBX(const uint16_t fullbx) {fullbx_ = fullbx;}
78 
79 
83  bool operator > (const CSCCLCTPreTriggerDigi&) const;
84 
86  bool operator == (const CSCCLCTPreTriggerDigi&) const;
87 
89  bool operator != (const CSCCLCTPreTriggerDigi&) const;
90 
92  void print() const;
93 
94  private:
95 
96  uint16_t valid_ ;
97  uint16_t quality_ ;
98  uint16_t pattern_ ;
99  uint16_t striptype_ ; // not used since mid-2008
100  uint16_t bend_ ;
101  uint16_t strip_ ;
102  uint16_t cfeb_ ;
103  uint16_t bx_ ;
104  uint16_t trknmb_ ;
105  uint16_t fullbx_ ;
106 
107 };
108 
109 std::ostream & operator<<(std::ostream & o, const CSCCLCTPreTriggerDigi& digi);
110 
111 #endif
void print() const
Print content of digi.
int getCFEB() const
return Key CFEB ID
void setTrknmb(const uint16_t number)
Set track number (1,2) after sorting CLCTs.
int getStripType() const
return striptype
int getPattern() const
return pattern
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
bool operator!=(const CSCCLCTPreTriggerDigi &) const
True if the preceding one is false.
void setFullBX(const uint16_t fullbx)
Set 12-bit full BX.
bool operator==(const CSCCLCTPreTriggerDigi &) const
True if the two LCTs have exactly the same members (except the number).
void clear()
clear this CLCT
bool operator>(const CSCCLCTPreTriggerDigi &) const
int getTrknmb() const
return track number (1,2)
int getBend() const
return bend
int getQuality() const
return quality of a pattern (number of layers hit!)
int getBX() const
return BX
int getFullBX() const
return 12-bit full BX.
int getStrip() const
return halfstrip that goes from 0 to 31
bool isValid() const
check CLCT validity (1 - valid CLCT)