CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCALCTDigi.h
Go to the documentation of this file.
1 #ifndef CSCDigi_CSCALCTDigi_h
2 #define CSCDigi_CSCALCTDigi_h
3 
14 #include <boost/cstdint.hpp>
15 #include <iosfwd>
16 
17 class CSCALCTDigi {
18 
19  public:
20 
22  CSCALCTDigi(const int valid, const int quality, const int accel,
23  const int patternb, const int keywire, const int bx,
24  const int trknmb = 0);
26  CSCALCTDigi();
27 
29  void clear();
30 
32  bool isValid() const {return valid_ ;}
33 
35  int getQuality() const {return quality_ ;}
36 
39  int getAccelerator() const {return accel_ ;}
40 
44  int getCollisionB() const {return patternb_ ;}
45 
47  int getKeyWG() const {return keywire_ ;}
48 
50  int getBX() const {return bx_ ;}
51 
53  int getTrknmb() const {return trknmb_ ;}
54 
56  void setTrknmb(const uint16_t number) {trknmb_ = number;}
57 
59  int getFullBX() const {return fullbx_ ;}
60 
62  void setFullBX(const uint16_t fullbx) {fullbx_ = fullbx;}
63 
66  bool operator > (const CSCALCTDigi&) const;
67 
69  bool operator == (const CSCALCTDigi&) const;
70 
72  bool operator != (const CSCALCTDigi&) const;
73 
75  void print() const;
76 
78  void setWireGroup(unsigned int wiregroup) {keywire_= wiregroup;}
79 
80  private:
81 
82  uint16_t valid_ ;
83  uint16_t quality_ ;
84  uint16_t accel_ ;
85  uint16_t patternb_ ; // not used since 2007
86  uint16_t keywire_ ;
87  uint16_t bx_ ;
88  uint16_t trknmb_ ;
89  uint16_t fullbx_ ;
90 };
91 
92 std::ostream & operator<<(std::ostream & o, const CSCALCTDigi& digi);
93 #endif
uint16_t bx_
Definition: CSCALCTDigi.h:87
uint16_t trknmb_
Definition: CSCALCTDigi.h:88
bool isValid() const
check ALCT validity (1 - valid ALCT)
Definition: CSCALCTDigi.h:32
uint16_t patternb_
Definition: CSCALCTDigi.h:85
void clear()
clear this ALCT
Definition: CSCALCTDigi.cc:37
uint16_t keywire_
Definition: CSCALCTDigi.h:86
void setWireGroup(unsigned int wiregroup)
set wiregroup number
Definition: CSCALCTDigi.h:78
bool operator!=(const CSCALCTDigi &) const
True if the preceding one is false.
Definition: CSCALCTDigi.cc:78
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
uint16_t valid_
Definition: CSCALCTDigi.h:82
bool operator>(const CSCALCTDigi &) const
Definition: CSCALCTDigi.cc:48
int getFullBX() const
return 12-bit full BX.
Definition: CSCALCTDigi.h:59
int getTrknmb() const
return track number (1,2)
Definition: CSCALCTDigi.h:53
CSCALCTDigi()
default
Definition: CSCALCTDigi.cc:32
int getBX() const
return BX - five low bits of BXN counter tagged by the ALCT
Definition: CSCALCTDigi.h:50
uint16_t fullbx_
Definition: CSCALCTDigi.h:89
bool operator==(const CSCALCTDigi &) const
True if all members (except the number) of both ALCTs are equal.
Definition: CSCALCTDigi.cc:66
int getQuality() const
return quality of a pattern
Definition: CSCALCTDigi.h:35
int getAccelerator() const
Definition: CSCALCTDigi.h:39
uint16_t accel_
Definition: CSCALCTDigi.h:84
uint16_t quality_
Definition: CSCALCTDigi.h:83
void print() const
Print content of digi.
Definition: CSCALCTDigi.cc:86
void setTrknmb(const uint16_t number)
Set track number (1,2) after sorting ALCTs.
Definition: CSCALCTDigi.h:56
void setFullBX(const uint16_t fullbx)
Set 12-bit full BX.
Definition: CSCALCTDigi.h:62
int getKeyWG() const
return key wire group
Definition: CSCALCTDigi.h:47
int getCollisionB() const
Definition: CSCALCTDigi.h:44