CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCStripHit.h
Go to the documentation of this file.
1 #ifndef CSCRecHitD_CSCStripHit_H
2 #define CSCRecHitD_CSCStripHit_H
3 
12 
13 #include <vector>
14 #include <iosfwd>
15 
17 {
18 
19 public:
20 
21  typedef std::vector<float> StripHitADCContainer;
22  typedef std::vector<int> ChannelContainer;
23 
25  CSCStripHit( const CSCDetId& id,
26  const float& sHitPos,
27  const int& tmax,
28  const ChannelContainer& strips,
31  const int& numberOfConsecutiveStrips,
32  const int& closestMaximum,
33  const short int& deadStrip);
34 
36 
38  CSCStripHit* clone() const { return new CSCStripHit( *this ); }
39 
41  CSCDetId cscDetId() const { return theDetId; }
42 
44  float sHitPos() const { return theStripHitPosition; }
45 
47  int tmax() const { return theStripHitTmax; }
48 
50  const ChannelContainer& stripsTotal() const {return theStrips;}
51 
53  const ChannelContainer& strips() const {return theStripsLowBits;}
54 
56  const ChannelContainer& stripsl1a() const {return theStripsHighBits;}
57 
59  const StripHitADCContainer& s_adc() const { return theStripHitADCs; }
60 
63 
66 
68  int closestMaximum() const { return theClosestMaximum; }
69 
71  short int deadStrip() const {return theDeadStrip; };
72 
74  void print() const;
75 
76 private:
77 
88  short int theDeadStrip;
89 
90 };
91 
92 
93 
94 #endif
95 
const ChannelContainer & stripsl1a() const
L1A.
Definition: CSCStripHit.h:56
StripHitADCContainer theStripHitRawADCs
Definition: CSCStripHit.h:85
const StripHitADCContainer & s_adcRaw() const
the raw ADC counts for each of the strip within cluster
Definition: CSCStripHit.h:62
ChannelContainer theStripsLowBits
Definition: CSCStripHit.h:82
int theConsecutiveStrips
Definition: CSCStripHit.h:86
int numberOfConsecutiveStrips() const
Number of consecutive strips with charge.
Definition: CSCStripHit.h:65
const StripHitADCContainer & s_adc() const
L1A.
Definition: CSCStripHit.h:59
CSCStripHit * clone() const
Required for storage in RangeMap.
Definition: CSCStripHit.h:38
ChannelContainer theStrips
Definition: CSCStripHit.h:81
CSCDetId theDetId
Definition: CSCStripHit.h:78
short int deadStrip() const
is a neighbouring string a dead strip?
Definition: CSCStripHit.h:71
std::vector< float > StripHitADCContainer
Definition: CSCStripHit.h:21
ChannelContainer theStripsHighBits
L1A.
Definition: CSCStripHit.h:83
int tmax() const
Strip hit maximum time bin.
Definition: CSCStripHit.h:47
short int theDeadStrip
Definition: CSCStripHit.h:88
std::vector< int > ChannelContainer
Definition: CSCStripHit.h:22
const ChannelContainer & stripsTotal() const
The strips used in cluster to produce strip hit (total content)
Definition: CSCStripHit.h:50
int closestMaximum() const
Number of strips to the closest other maximum.
Definition: CSCStripHit.h:68
CSCDetId cscDetId() const
Strip Hit is in this DetId.
Definition: CSCStripHit.h:41
void print() const
Print content of the striphit including L1A.
Definition: CSCStripHit.cc:43
const ChannelContainer & strips() const
L1A.
Definition: CSCStripHit.h:53
float theStripHitPosition
Definition: CSCStripHit.h:79
StripHitADCContainer theStripHitADCs
L1A.
Definition: CSCStripHit.h:84
int theStripHitTmax
Definition: CSCStripHit.h:80
int theClosestMaximum
Definition: CSCStripHit.h:87
float sHitPos() const
Strip hit position (centroid)
Definition: CSCStripHit.h:44