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
void print() const
Print content of the wirehit.
Definition: CSCWireHit.cc:37
ChannelContainer theWgroupsLowBits
to extract BX
Definition: CSCWireHit.h:67
ChannelContainer theWgroups
Definition: CSCWireHit.h:65
int tmax() const
The timing for the wire hit.
Definition: CSCWireHit.h:51
CSCWireHit * clone() const
CSCWireHit base class interface.
Definition: CSCWireHit.h:32
std::vector< int > theTimeBinsOn
Definition: CSCWireHit.h:70
float wHitPos() const
The wire hit position expressed in terms of wire #.
Definition: CSCWireHit.h:38
short int deadWG() const
a dead WG in the cluster?
Definition: CSCWireHit.h:54
CSCDetId cscDetId() const
Position of the wire hit in CSC.
Definition: CSCWireHit.h:35
ChannelContainer wgroupsBXandWire() const
The BX + wire group number.
Definition: CSCWireHit.h:48
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
std::vector< int > ChannelContainer
Definition: CSCWireHit.h:19
ChannelContainer wgroups() const
The wire groups used for forming the cluster.
Definition: CSCWireHit.h:42
ChannelContainer theWgroupsHighBits
BX and wire group number combined.
Definition: CSCWireHit.h:66
short int theDeadWG
Definition: CSCWireHit.h:69
int theWireHitTmax
to extract the wire group number
Definition: CSCWireHit.h:68
ChannelContainer wgroupsBX() const
The BX number.
Definition: CSCWireHit.h:45
CSCDetId theDetId
Definition: CSCWireHit.h:63
float theWireHitPosition
Definition: CSCWireHit.h:64