CMS 3D CMS Logo

CSCWireDigi.h
Go to the documentation of this file.
1 #ifndef CSCWireDigi_CSCWireDigi_h
2 #define CSCWireDigi_CSCWireDigi_h
3 
10 #include <vector>
11 #include <iosfwd>
12 #include <cstdint>
13 
14 class CSCWireDigi {
15 public:
17 
18  CSCWireDigi(int wire, unsigned int tbinb);
19  CSCWireDigi();
20 
22  int getWireGroup() const { return wire_; }
24  int getWireGroupBX() const { return wireBX_; }
27  int getBXandWireGroup() const { return wireBXandWires_; }
29  unsigned int getTimeBinWord() const { return tbinb_; }
31  int getBeamCrossingTag() const;
33  int getTimeBin() const;
35  std::vector<int> getTimeBinsOn() const;
36 
38  void print() const;
39 
41  void setWireGroup(unsigned int wiregroup) { wire_ = wiregroup; }
42 
43 private:
44  int wire_;
45  uint32_t tbinb_;
48  int wireBX_;
49 };
50 
51 std::ostream& operator<<(std::ostream& o, const CSCWireDigi& digi);
52 
53 #endif
CSCWireDigi()
wiregroup#, tbin bit word
Definition: CSCWireDigi.cc:25
void print() const
Print content of digi.
Definition: CSCWireDigi.cc:64
unsigned int getTimeBinWord() const
return the word with time bins bits
Definition: CSCWireDigi.h:29
int wireBXandWires_
BX in the wire digis (16 upper bits from the wire group number)
Definition: CSCWireDigi.h:47
std::vector< int > getTimeBinsOn() const
return vector of time bins ON
Definition: CSCWireDigi.cc:48
int getBeamCrossingTag() const
return tbin number, (obsolete, use getTimeBin() instead)
Definition: CSCWireDigi.cc:33
std::ostream & operator<<(std::ostream &o, const CSCWireDigi &digi)
Definition: CSCWireDigi.cc:77
int getWireGroup() const
default
Definition: CSCWireDigi.h:22
int getWireGroupBX() const
return BX assigned for the wire group (16 upper bits from the wire group number)
Definition: CSCWireDigi.h:24
int getTimeBin() const
return first tbin ON number
Definition: CSCWireDigi.cc:35
int getBXandWireGroup() const
Definition: CSCWireDigi.h:27
uint32_t tbinb_
Definition: CSCWireDigi.h:45
void setWireGroup(unsigned int wiregroup)
set wiregroup number
Definition: CSCWireDigi.h:41