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::setWireGroup
void setWireGroup(unsigned int wiregroup)
set wiregroup number
Definition: CSCWireDigi.h:41
CSCWireDigi::tbinb_
uint32_t tbinb_
Definition: CSCWireDigi.h:45
CSCWireDigi::wireBX_
int wireBX_
Definition: CSCWireDigi.h:48
CSCWireDigi::getTimeBinWord
unsigned int getTimeBinWord() const
return the word with time bins bits
Definition: CSCWireDigi.h:29
CSCWireDigi::getWireGroup
int getWireGroup() const
default
Definition: CSCWireDigi.h:22
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
CSCWireDigi::getWireGroupBX
int getWireGroupBX() const
return BX assigned for the wire group (16 upper bits from the wire group number)
Definition: CSCWireDigi.h:24
operator<<
std::ostream & operator<<(std::ostream &o, const CSCWireDigi &digi)
Definition: CSCWireDigi.cc:74
CSCWireDigi::wireBXandWires_
int wireBXandWires_
BX in the wire digis (16 upper bits from the wire group number)
Definition: CSCWireDigi.h:47
CSCWireDigi::getTimeBinsOn
std::vector< int > getTimeBinsOn() const
return vector of time bins ON
Definition: CSCWireDigi.cc:48
CSCWireDigi::getTimeBin
int getTimeBin() const
return first tbin ON number
Definition: CSCWireDigi.cc:35
CSCWireDigi
Definition: CSCWireDigi.h:14
CSCWireDigi::wire_
int wire_
Definition: CSCWireDigi.h:44
CSCWireDigi::getBeamCrossingTag
int getBeamCrossingTag() const
return tbin number, (obsolete, use getTimeBin() instead)
Definition: CSCWireDigi.cc:33
CSCWireDigi::CSCWireDigi
CSCWireDigi()
wiregroup#, tbin bit word
Definition: CSCWireDigi.cc:25
CSCWireDigi::print
void print() const
Print content of digi.
Definition: CSCWireDigi.cc:64
CSCWireDigi::getBXandWireGroup
int getBXandWireGroup() const
Definition: CSCWireDigi.h:27