CMS 3D CMS Logo

CSCALCTPreTriggerDigi.h
Go to the documentation of this file.
1 #ifndef CSCDigi_CSCALCTPreTriggerDigi_h
2 #define CSCDigi_CSCALCTPreTriggerDigi_h
3 
10 #include <cstdint>
11 #include <iosfwd>
12 
14 public:
16  CSCALCTPreTriggerDigi(const int valid,
17  const int quality,
18  const int accel,
19  const int patternb,
20  const int keywire,
21  const int bx,
22  const int trknmb = 0);
25 
27  void clear();
28 
30  bool isValid() const { return valid_; }
31 
33  void setValid(const int valid) { valid_ = valid; }
34 
36  int getQuality() const { return quality_; }
37 
39  void setQuality(const int quality) { quality_ = quality; }
40 
43  int getAccelerator() const { return accel_; }
44 
46  void setAccelerator(const int accelerator) { accel_ = accelerator; }
47 
51  int getCollisionB() const { return patternb_; }
52 
54  void setCollisionB(const int collision) { patternb_ = collision; }
55 
57  int getKeyWG() const { return keywire_; }
58 
60  void setKeyWG(const int keyWG) { keywire_ = keyWG; }
61 
63  int getBX() const { return bx_; }
64 
66  void setBX(const int BX) { bx_ = BX; }
67 
69  int getTrknmb() const { return trknmb_; }
70 
72  void setTrknmb(const uint16_t number) { trknmb_ = number; }
73 
75  int getFullBX() const { return fullbx_; }
76 
78  void setFullBX(const uint16_t fullbx) { fullbx_ = fullbx; }
79 
82  bool operator>(const CSCALCTPreTriggerDigi&) const;
83 
85  bool operator==(const CSCALCTPreTriggerDigi&) const;
86 
88  bool operator!=(const CSCALCTPreTriggerDigi&) const;
89 
91  void print() const;
92 
94  void setWireGroup(unsigned int wiregroup) { keywire_ = wiregroup; }
95 
96 private:
97  uint16_t valid_;
98  uint16_t quality_;
99  uint16_t accel_;
100  uint16_t patternb_; // not used since 2007
101  uint16_t keywire_;
102  uint16_t bx_;
103  uint16_t trknmb_;
104  uint16_t fullbx_;
105 };
106 
107 std::ostream& operator<<(std::ostream& o, const CSCALCTPreTriggerDigi& digi);
108 #endif
CSCALCTPreTriggerDigi::setValid
void setValid(const int valid)
set valid
Definition: CSCALCTPreTriggerDigi.h:33
CSCALCTPreTriggerDigi::getFullBX
int getFullBX() const
return 12-bit full BX.
Definition: CSCALCTPreTriggerDigi.h:75
CSCALCTPreTriggerDigi::CSCALCTPreTriggerDigi
CSCALCTPreTriggerDigi()
default
Definition: CSCALCTPreTriggerDigi.cc:26
CSCALCTPreTriggerDigi::setTrknmb
void setTrknmb(const uint16_t number)
Set track number (1,2) after sorting ALCTs.
Definition: CSCALCTPreTriggerDigi.h:72
CSCALCTPreTriggerDigi::setQuality
void setQuality(const int quality)
set quality
Definition: CSCALCTPreTriggerDigi.h:39
CSCALCTPreTriggerDigi::fullbx_
uint16_t fullbx_
Definition: CSCALCTPreTriggerDigi.h:104
CSCALCTPreTriggerDigi::getKeyWG
int getKeyWG() const
return key wire group
Definition: CSCALCTPreTriggerDigi.h:57
CSCALCTPreTriggerDigi::setAccelerator
void setAccelerator(const int accelerator)
set accelerator bit
Definition: CSCALCTPreTriggerDigi.h:46
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
CSCALCTPreTriggerDigi::operator==
bool operator==(const CSCALCTPreTriggerDigi &) const
True if all members (except the number) of both ALCTs are equal.
Definition: CSCALCTPreTriggerDigi.cc:66
CSCALCTPreTriggerDigi::getBX
int getBX() const
return BX - five low bits of BXN counter tagged by the ALCT
Definition: CSCALCTPreTriggerDigi.h:63
validateGeometry_cfg.valid
valid
Definition: validateGeometry_cfg.py:21
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
CSCALCTPreTriggerDigi::accel_
uint16_t accel_
Definition: CSCALCTPreTriggerDigi.h:99
CSCALCTPreTriggerDigi::getAccelerator
int getAccelerator() const
Definition: CSCALCTPreTriggerDigi.h:43
contentValuesFiles.number
number
Definition: contentValuesFiles.py:53
CSCALCTPreTriggerDigi::setKeyWG
void setKeyWG(const int keyWG)
set key wire group
Definition: CSCALCTPreTriggerDigi.h:60
CSCALCTPreTriggerDigi::setFullBX
void setFullBX(const uint16_t fullbx)
Set 12-bit full BX.
Definition: CSCALCTPreTriggerDigi.h:78
CSCALCTPreTriggerDigi::valid_
uint16_t valid_
Definition: CSCALCTPreTriggerDigi.h:97
CSCALCTPreTriggerDigi::trknmb_
uint16_t trknmb_
Definition: CSCALCTPreTriggerDigi.h:103
CSCALCTPreTriggerDigi::setWireGroup
void setWireGroup(unsigned int wiregroup)
set wiregroup number
Definition: CSCALCTPreTriggerDigi.h:94
CSCALCTPreTriggerDigi::getQuality
int getQuality() const
return quality of a pattern
Definition: CSCALCTPreTriggerDigi.h:36
CSCALCTPreTriggerDigi::keywire_
uint16_t keywire_
Definition: CSCALCTPreTriggerDigi.h:101
CSCALCTPreTriggerDigi::isValid
bool isValid() const
check ALCT validity (1 - valid ALCT)
Definition: CSCALCTPreTriggerDigi.h:30
CSCALCTPreTriggerDigi::bx_
uint16_t bx_
Definition: CSCALCTPreTriggerDigi.h:102
CSCALCTPreTriggerDigi
Definition: CSCALCTPreTriggerDigi.h:13
CSCALCTPreTriggerDigi::setBX
void setBX(const int BX)
set BX
Definition: CSCALCTPreTriggerDigi.h:66
CSCALCTPreTriggerDigi::getCollisionB
int getCollisionB() const
Definition: CSCALCTPreTriggerDigi.h:51
qcdUeDQM_cfi.quality
quality
Definition: qcdUeDQM_cfi.py:31
CSCALCTPreTriggerDigi::setCollisionB
void setCollisionB(const int collision)
set Collision Pattern B bit
Definition: CSCALCTPreTriggerDigi.h:54
CSCALCTPreTriggerDigi::quality_
uint16_t quality_
Definition: CSCALCTPreTriggerDigi.h:98
CSCALCTPreTriggerDigi::clear
void clear()
clear this ALCT
Definition: CSCALCTPreTriggerDigi.cc:31
CSCALCTPreTriggerDigi::operator>
bool operator>(const CSCALCTPreTriggerDigi &) const
Definition: CSCALCTPreTriggerDigi.cc:42
L1TStage2uGTEmulatorClient_cff.BX
BX
Definition: L1TStage2uGTEmulatorClient_cff.py:9
operator<<
std::ostream & operator<<(std::ostream &o, const CSCALCTPreTriggerDigi &digi)
Definition: CSCALCTPreTriggerDigi.cc:97
CSCALCTPreTriggerDigi::getTrknmb
int getTrknmb() const
return track number (1,2)
Definition: CSCALCTPreTriggerDigi.h:69
CSCALCTPreTriggerDigi::operator!=
bool operator!=(const CSCALCTPreTriggerDigi &) const
True if the preceding one is false.
Definition: CSCALCTPreTriggerDigi.cc:76
CSCALCTPreTriggerDigi::print
void print() const
Print content of digi.
Definition: CSCALCTPreTriggerDigi.cc:85
CSCALCTPreTriggerDigi::patternb_
uint16_t patternb_
Definition: CSCALCTPreTriggerDigi.h:100