test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 {
19 
20 public:
21 
22  typedef std::vector<int> ChannelContainer;
23 
24  CSCWireHit();
25  CSCWireHit( const CSCDetId& id, const float& wHitPos, ChannelContainer& wgroups, const int& tmax,
26  const short int & deadWG, const std::vector <int>& timeBinsOn );
27 
28  ~CSCWireHit();
29 
31  CSCWireHit* clone() const { return new CSCWireHit( *this ); }
32 
34  CSCDetId cscDetId() const { return theDetId; }
35 
37  float wHitPos() const { return theWireHitPosition; }
38 
40  //ChannelContainer wgroups() const { return theWgroups; }
42 
45 
48 
50  int tmax() const { return theWireHitTmax; }
51 
53  short int deadWG() const {return theDeadWG; };
54 
56  std::vector<int> timeBinsOn() const {return theTimeBinsOn; };
57 
59  void print() const;
60 
61 private:
68  short int theDeadWG;
69  std::vector <int> theTimeBinsOn;
70 };
71 
72 
73 
74 #endif
75 
CSCDetId cscDetId() const
Position of the wire hit in CSC.
Definition: CSCWireHit.h:34
ChannelContainer wgroups() const
The wire groups used for forming the cluster.
Definition: CSCWireHit.h:41
ChannelContainer wgroupsBX() const
The BX number.
Definition: CSCWireHit.h:44
std::vector< int > timeBinsOn() const
Vector of time bins ON for central wire digi, lower of center pair if even number.
Definition: CSCWireHit.h:56
float wHitPos() const
The wire hit position expressed in terms of wire #.
Definition: CSCWireHit.h:37
ChannelContainer theWgroupsLowBits
to extract BX
Definition: CSCWireHit.h:66
ChannelContainer theWgroups
Definition: CSCWireHit.h:64
std::vector< int > theTimeBinsOn
Definition: CSCWireHit.h:69
ChannelContainer wgroupsBXandWire() const
The BX + wire group number.
Definition: CSCWireHit.h:47
int tmax() const
The timing for the wire hit.
Definition: CSCWireHit.h:50
std::vector< int > ChannelContainer
Definition: CSCWireHit.h:22
ChannelContainer theWgroupsHighBits
BX and wire group number combined.
Definition: CSCWireHit.h:65
short int theDeadWG
Definition: CSCWireHit.h:68
CSCWireHit * clone() const
CSCWireHit base class interface.
Definition: CSCWireHit.h:31
int theWireHitTmax
to extract the wire group number
Definition: CSCWireHit.h:67
void print() const
Print content of the wirehit.
Definition: CSCWireHit.cc:45
CSCDetId theDetId
Definition: CSCWireHit.h:62
float theWireHitPosition
Definition: CSCWireHit.h:63
short int deadWG() const
a dead WG in the cluster?
Definition: CSCWireHit.h:53