CMS 3D CMS Logo

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