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 <stdint.h>
13 
15 
16 public:
17 
19 
20  CSCWireDigi (int wire, unsigned int tbinb);
21  CSCWireDigi ();
22 
24  int getWireGroup() const {return wire_;}
26  int getWireGroupBX() const {return wireBX_;}
29  int getBXandWireGroup() const {return wireBXandWires_;}
31  unsigned int getTimeBinWord() const {return tbinb_;}
33  int getBeamCrossingTag() const;
35  int getTimeBin() const;
37  std::vector<int> getTimeBinsOn() const;
38 
40  void print() const;
41 
43  void setWireGroup(unsigned int wiregroup) {wire_= wiregroup;}
44 
45 
46 private:
47 
48  int wire_;
49  uint32_t tbinb_;
52  int wireBX_;
53 
54 };
55 
56 std::ostream & operator<<(std::ostream & o, const CSCWireDigi& digi);
57 
58 #endif
CSCWireDigi()
wiregroup#, tbin bit word
Definition: CSCWireDigi.cc:25
void print() const
Print content of digi.
Definition: CSCWireDigi.cc:62
unsigned int getTimeBinWord() const
return the word with time bins bits
Definition: CSCWireDigi.h:31
int wireBXandWires_
BX in the wire digis (16 upper bits from the wire group number)
Definition: CSCWireDigi.h:51
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:73
int getWireGroup() const
default
Definition: CSCWireDigi.h:24
int getWireGroupBX() const
return BX assigned for the wire group (16 upper bits from the wire group number)
Definition: CSCWireDigi.h:26
int getTimeBin() const
return first tbin ON number
Definition: CSCWireDigi.cc:37
int getBXandWireGroup() const
Definition: CSCWireDigi.h:29
uint32_t tbinb_
Definition: CSCWireDigi.h:49
void setWireGroup(unsigned int wiregroup)
set wiregroup number
Definition: CSCWireDigi.h:43