CMS 3D CMS Logo

CSCWireHit.h
Go to the documentation of this file.
1 #ifndef CSCRecHitD_CSCWireHit_H
2 #define CSCRecHitD_CSCWireHit_H
3 
13 
14 #include <vector>
15 #include <iosfwd>
16 
17 class CSCWireHit {
18 public:
19  typedef std::vector<int> ChannelContainer;
20 
21  CSCWireHit();
22  CSCWireHit(const CSCDetId& id,
23  const float& wHitPos,
25  const int& tmax,
26  const short int& deadWG,
27  const std::vector<int>& timeBinsOn);
28 
29  ~CSCWireHit();
30 
32  CSCWireHit* clone() const { return new CSCWireHit(*this); }
33 
35  CSCDetId cscDetId() const { return theDetId; }
36 
38  float wHitPos() const { return theWireHitPosition; }
39 
41  //ChannelContainer wgroups() const { return theWgroups; }
43 
46 
49 
51  int tmax() const { return theWireHitTmax; }
52 
54  short int deadWG() const { return theDeadWG; };
55 
57  std::vector<int> timeBinsOn() const { return theTimeBinsOn; };
58 
60  void print() const;
61 
62 private:
69  short int theDeadWG;
70  std::vector<int> theTimeBinsOn;
71 };
72 
73 #endif
CSCWireHit::ChannelContainer
std::vector< int > ChannelContainer
Definition: CSCWireHit.h:19
CSCWireHit::theDeadWG
short int theDeadWG
Definition: CSCWireHit.h:69
CSCWireHit
Definition: CSCWireHit.h:17
CSCWireHit::theWireHitTmax
int theWireHitTmax
to extract the wire group number
Definition: CSCWireHit.h:68
CSCWireHit::theDetId
CSCDetId theDetId
Definition: CSCWireHit.h:63
CSCWireHit::CSCWireHit
CSCWireHit()
Definition: CSCWireHit.cc:4
CSCDetId.h
CSCWireHit::wgroupsBX
ChannelContainer wgroupsBX() const
The BX number.
Definition: CSCWireHit.h:45
CSCWireHit::theWireHitPosition
float theWireHitPosition
Definition: CSCWireHit.h:64
CSCWireHit::~CSCWireHit
~CSCWireHit()
Definition: CSCWireHit.cc:34
CSCWireHit::tmax
int tmax() const
The timing for the wire hit.
Definition: CSCWireHit.h:51
CSCWireHit::clone
CSCWireHit * clone() const
CSCWireHit base class interface.
Definition: CSCWireHit.h:32
CSCWireHit::wHitPos
float wHitPos() const
The wire hit position expressed in terms of wire #.
Definition: CSCWireHit.h:38
CSCDetId
Definition: CSCDetId.h:26
CSCWireHit::theWgroups
ChannelContainer theWgroups
Definition: CSCWireHit.h:65
CSCWireHit::print
void print() const
Print content of the wirehit.
Definition: CSCWireHit.cc:37
CSCWireHit::wgroupsBXandWire
ChannelContainer wgroupsBXandWire() const
The BX + wire group number.
Definition: CSCWireHit.h:48
CSCWireHit::theWgroupsLowBits
ChannelContainer theWgroupsLowBits
to extract BX
Definition: CSCWireHit.h:67
CSCWireHit::timeBinsOn
std::vector< int > timeBinsOn() const
Vector of time bins ON for central wire digi, lower of center pair if even number.
Definition: CSCWireHit.h:57
CSCWireHit::theWgroupsHighBits
ChannelContainer theWgroupsHighBits
BX and wire group number combined.
Definition: CSCWireHit.h:66
CSCWireHit::theTimeBinsOn
std::vector< int > theTimeBinsOn
Definition: CSCWireHit.h:70
CSCWireHit::deadWG
short int deadWG() const
a dead WG in the cluster?
Definition: CSCWireHit.h:54
CSCWireHit::cscDetId
CSCDetId cscDetId() const
Position of the wire hit in CSC.
Definition: CSCWireHit.h:35
CSCWireHit::wgroups
ChannelContainer wgroups() const
The wire groups used for forming the cluster.
Definition: CSCWireHit.h:42