CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
bool operator!=(const CSCALCTPreTriggerDigi &) const
True if the preceding one is false.
bool operator==(const CSCALCTPreTriggerDigi &) const
True if all members (except the number) of both ALCTs are equal.
bool operator>(const CSCALCTPreTriggerDigi &) const
int getFullBX() const
return 12-bit full BX.
uint32_t const *__restrict__ Quality * quality
void setQuality(const int quality)
set quality
void print() const
Print content of digi.
void setValid(const int valid)
set valid
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
bool isValid() const
check ALCT validity (1 - valid ALCT)
void setWireGroup(unsigned int wiregroup)
set wiregroup number
void setFullBX(const uint16_t fullbx)
Set 12-bit full BX.
void setBX(const int BX)
set BX
int getTrknmb() const
return track number (1,2)
void clear()
clear this ALCT
int getQuality() const
return quality of a pattern
int getBX() const
return BX - five low bits of BXN counter tagged by the ALCT
void setKeyWG(const int keyWG)
set key wire group
int getKeyWG() const
return key wire group
void setTrknmb(const uint16_t number)
Set track number (1,2) after sorting ALCTs.
void setAccelerator(const int accelerator)
set accelerator bit
void setCollisionB(const int collision)
set Collision Pattern B bit