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 
12 #include <boost/cstdint.hpp>
13 #include <iosfwd>
14 
15 class CSCALCTDigi {
16 
17  public:
18 
20  CSCALCTDigi(const int valid, const int quality, const int accel,
21  const int patternb, const int keywire, const int bx,
22  const int trknmb = 0);
24  CSCALCTDigi();
25 
27  void clear();
28 
30  bool isValid() const {return valid_ ;}
31 
33  int getQuality() const {return quality_ ;}
34 
37  int getAccelerator() const {return accel_ ;}
38 
42  int getCollisionB() const {return patternb_ ;}
43 
45  int getKeyWG() const {return keywire_ ;}
46 
48  int getBX() const {return bx_ ;}
49 
51  int getTrknmb() const {return trknmb_ ;}
52 
54  void setTrknmb(const uint16_t number) {trknmb_ = number;}
55 
57  int getFullBX() const {return fullbx_ ;}
58 
60  void setFullBX(const uint16_t fullbx) {fullbx_ = fullbx;}
61 
64  bool operator > (const CSCALCTDigi&) const;
65 
67  bool operator == (const CSCALCTDigi&) const;
68 
70  bool operator != (const CSCALCTDigi&) const;
71 
73  void print() const;
74 
76  void setWireGroup(unsigned int wiregroup) {keywire_= wiregroup;}
77 
78  private:
79 
80  uint16_t valid_ ;
81  uint16_t quality_ ;
82  uint16_t accel_ ;
83  uint16_t patternb_ ; // not used since 2007
84  uint16_t keywire_ ;
85  uint16_t bx_ ;
86  uint16_t trknmb_ ;
87  uint16_t fullbx_ ;
88 };
89 
90 std::ostream & operator<<(std::ostream & o, const CSCALCTDigi& digi);
91 #endif
uint16_t bx_
Definition: CSCALCTDigi.h:85
uint16_t trknmb_
Definition: CSCALCTDigi.h:86
bool isValid() const
check ALCT validity (1 - valid ALCT)
Definition: CSCALCTDigi.h:30
uint16_t patternb_
Definition: CSCALCTDigi.h:83
void clear()
clear this ALCT
Definition: CSCALCTDigi.cc:35
uint16_t keywire_
Definition: CSCALCTDigi.h:84
void setWireGroup(unsigned int wiregroup)
set wiregroup number
Definition: CSCALCTDigi.h:76
bool operator!=(const CSCALCTDigi &) const
True if the preceding one is false.
Definition: CSCALCTDigi.cc:76
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
uint16_t valid_
Definition: CSCALCTDigi.h:80
bool operator>(const CSCALCTDigi &) const
Definition: CSCALCTDigi.cc:46
int getFullBX() const
return 12-bit full BX.
Definition: CSCALCTDigi.h:57
int getTrknmb() const
return track number (1,2)
Definition: CSCALCTDigi.h:51
CSCALCTDigi()
default
Definition: CSCALCTDigi.cc:30
int getBX() const
return BX - five low bits of BXN counter tagged by the ALCT
Definition: CSCALCTDigi.h:48
uint16_t fullbx_
Definition: CSCALCTDigi.h:87
bool operator==(const CSCALCTDigi &) const
True if all members (except the number) of both ALCTs are equal.
Definition: CSCALCTDigi.cc:64
int getQuality() const
return quality of a pattern
Definition: CSCALCTDigi.h:33
int getAccelerator() const
Definition: CSCALCTDigi.h:37
uint16_t accel_
Definition: CSCALCTDigi.h:82
uint16_t quality_
Definition: CSCALCTDigi.h:81
void print() const
Print content of digi.
Definition: CSCALCTDigi.cc:84
void setTrknmb(const uint16_t number)
Set track number (1,2) after sorting ALCTs.
Definition: CSCALCTDigi.h:54
void setFullBX(const uint16_t fullbx)
Set 12-bit full BX.
Definition: CSCALCTDigi.h:60
int getKeyWG() const
return key wire group
Definition: CSCALCTDigi.h:45
int getCollisionB() const
Definition: CSCALCTDigi.h:42