CMS 3D CMS Logo

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 public:
18  CSCCLCTPreTriggerDigi(const int valid,
19  const int quality,
20  const int pattern,
21  const int striptype,
22  const int bend,
23  const int strip,
24  const int cfeb,
25  const int bx,
26  const int trknmb = 0,
27  const int fullbx = 0);
30 
32  void clear();
33 
35  bool isValid() const { return valid_; }
36 
38  int getQuality() const { return quality_; }
39 
41  int getPattern() const { return pattern_; }
42 
44  int getStripType() const { return striptype_; }
45 
47  int getBend() const { return bend_; }
48 
50  int getStrip() const { return strip_; }
51 
53  int getCFEB() const { return cfeb_; }
54 
56  int getBX() const { return bx_; }
57 
59  int getTrknmb() const { return trknmb_; }
60 
70  int getKeyStrip() const {
71  int keyStrip = cfeb_ * 32 + strip_;
72  return keyStrip;
73  }
74 
76  void setTrknmb(const uint16_t number) { trknmb_ = number; }
77 
79  int getFullBX() const { return fullbx_; }
80 
82  void setFullBX(const uint16_t fullbx) { fullbx_ = fullbx; }
83 
87  bool operator>(const CSCCLCTPreTriggerDigi&) const;
88 
90  bool operator==(const CSCCLCTPreTriggerDigi&) const;
91 
93  bool operator!=(const CSCCLCTPreTriggerDigi&) const;
94 
96  void print() const;
97 
98 private:
99  uint16_t valid_;
100  uint16_t quality_;
101  uint16_t pattern_;
102  uint16_t striptype_; // not used since mid-2008
103  uint16_t bend_;
104  uint16_t strip_;
105  uint16_t cfeb_;
106  uint16_t bx_;
107  uint16_t trknmb_;
108  uint16_t fullbx_;
109 };
110 
111 std::ostream& operator<<(std::ostream& o, const CSCCLCTPreTriggerDigi& digi);
112 
113 #endif
CSCCLCTPreTriggerDigi::bx_
uint16_t bx_
Definition: CSCCLCTPreTriggerDigi.h:106
CSCCLCTPreTriggerDigi::getStripType
int getStripType() const
return striptype
Definition: CSCCLCTPreTriggerDigi.h:44
CSCCLCTPreTriggerDigi::operator!=
bool operator!=(const CSCCLCTPreTriggerDigi &) const
True if the preceding one is false.
Definition: CSCCLCTPreTriggerDigi.cc:94
CSCCLCTPreTriggerDigi::getFullBX
int getFullBX() const
return 12-bit full BX.
Definition: CSCCLCTPreTriggerDigi.h:79
CSCCLCTPreTriggerDigi::valid_
uint16_t valid_
Definition: CSCCLCTPreTriggerDigi.h:99
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
CSCCLCTPreTriggerDigi::print
void print() const
Print content of digi.
Definition: CSCCLCTPreTriggerDigi.cc:103
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
CSCCLCTPreTriggerDigi::getQuality
int getQuality() const
return quality of a pattern (number of layers hit!)
Definition: CSCCLCTPreTriggerDigi.h:38
CSCCLCTPreTriggerDigi::getTrknmb
int getTrknmb() const
return track number (1,2)
Definition: CSCCLCTPreTriggerDigi.h:59
CSCCLCTPreTriggerDigi::bend_
uint16_t bend_
Definition: CSCCLCTPreTriggerDigi.h:103
CSCCLCTPreTriggerDigi::clear
void clear()
clear this CLCT
Definition: CSCCLCTPreTriggerDigi.cc:43
CSCCLCTPreTriggerDigi::setTrknmb
void setTrknmb(const uint16_t number)
Set track number (1,2) after sorting CLCTs.
Definition: CSCCLCTPreTriggerDigi.h:76
CSCCLCTPreTriggerDigi::getPattern
int getPattern() const
return pattern
Definition: CSCCLCTPreTriggerDigi.h:41
CSCCLCTPreTriggerDigi::CSCCLCTPreTriggerDigi
CSCCLCTPreTriggerDigi()
default
Definition: CSCCLCTPreTriggerDigi.cc:30
validateGeometry_cfg.valid
valid
Definition: validateGeometry_cfg.py:21
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
CSCCLCTPreTriggerDigi::cfeb_
uint16_t cfeb_
Definition: CSCCLCTPreTriggerDigi.h:105
CSCCLCTPreTriggerDigi::trknmb_
uint16_t trknmb_
Definition: CSCCLCTPreTriggerDigi.h:107
contentValuesFiles.number
number
Definition: contentValuesFiles.py:53
CSCCLCTPreTriggerDigi::fullbx_
uint16_t fullbx_
Definition: CSCCLCTPreTriggerDigi.h:108
CSCCLCTPreTriggerDigi
Definition: CSCCLCTPreTriggerDigi.h:15
CSCCLCTPreTriggerDigi::pattern_
uint16_t pattern_
Definition: CSCCLCTPreTriggerDigi.h:101
CSCCLCTPreTriggerDigi::getBend
int getBend() const
return bend
Definition: CSCCLCTPreTriggerDigi.h:47
topSingleLeptonDQM_PU_cfi.pattern
pattern
Definition: topSingleLeptonDQM_PU_cfi.py:39
CSCCLCTPreTriggerDigi::getKeyStrip
int getKeyStrip() const
Definition: CSCCLCTPreTriggerDigi.h:70
CSCCLCTPreTriggerDigi::quality_
uint16_t quality_
Definition: CSCCLCTPreTriggerDigi.h:100
CSCCLCTPreTriggerDigi::operator>
bool operator>(const CSCCLCTPreTriggerDigi &) const
Definition: CSCCLCTPreTriggerDigi.cc:56
CSCCLCTPreTriggerDigi::setFullBX
void setFullBX(const uint16_t fullbx)
Set 12-bit full BX.
Definition: CSCCLCTPreTriggerDigi.h:82
CSCCLCTPreTriggerDigi::isValid
bool isValid() const
check CLCT validity (1 - valid CLCT)
Definition: CSCCLCTPreTriggerDigi.h:35
CSCCLCTPreTriggerDigi::operator==
bool operator==(const CSCCLCTPreTriggerDigi &) const
True if the two LCTs have exactly the same members (except the number).
Definition: CSCCLCTPreTriggerDigi.cc:83
operator<<
std::ostream & operator<<(std::ostream &o, const CSCCLCTPreTriggerDigi &digi)
Definition: CSCCLCTPreTriggerDigi.cc:120
qcdUeDQM_cfi.quality
quality
Definition: qcdUeDQM_cfi.py:31
CSCCLCTPreTriggerDigi::getStrip
int getStrip() const
return halfstrip that goes from 0 to 31
Definition: CSCCLCTPreTriggerDigi.h:50
trklet::bend
double bend(double r, double rinv, double stripPitch)
Definition: Util.h:160
CSCCLCTPreTriggerDigi::striptype_
uint16_t striptype_
Definition: CSCCLCTPreTriggerDigi.h:102
CSCCLCTPreTriggerDigi::getCFEB
int getCFEB() const
return Key CFEB ID
Definition: CSCCLCTPreTriggerDigi.h:53
CSCCLCTPreTriggerDigi::getBX
int getBX() const
return BX
Definition: CSCCLCTPreTriggerDigi.h:56
CSCCLCTPreTriggerDigi::strip_
uint16_t strip_
Definition: CSCCLCTPreTriggerDigi.h:104