CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
16 class CSCStripHit {
17 public:
18  typedef std::vector<float> StripHitADCContainer;
19  typedef std::vector<int> ChannelContainer;
20 
22  CSCStripHit(const CSCDetId& id,
23  const float& sHitPos,
24  const int& tmax,
25  const ChannelContainer& strips,
28  const int& numberOfConsecutiveStrips,
29  const int& closestMaximum,
30  const short int& deadStrip);
31 
33 
35  CSCStripHit* clone() const { return new CSCStripHit(*this); }
36 
38  CSCDetId cscDetId() const { return theDetId; }
39 
41  float sHitPos() const { return theStripHitPosition; }
42 
44  int tmax() const { return theStripHitTmax; }
45 
47  const ChannelContainer& stripsTotal() const { return theStrips; }
48 
50  const ChannelContainer& strips() const { return theStripsLowBits; }
51 
53  const ChannelContainer& stripsl1a() const { return theStripsHighBits; }
54 
56  const StripHitADCContainer& s_adc() const { return theStripHitADCs; }
57 
60 
63 
65  int closestMaximum() const { return theClosestMaximum; }
66 
68  short int deadStrip() const { return theDeadStrip; };
69 
71  void print() const;
72 
73 private:
84  short int theDeadStrip;
85 };
86 
87 #endif
const ChannelContainer & stripsl1a() const
L1A.
Definition: CSCStripHit.h:53
StripHitADCContainer theStripHitRawADCs
Definition: CSCStripHit.h:81
const StripHitADCContainer & s_adcRaw() const
the raw ADC counts for each of the strip within cluster
Definition: CSCStripHit.h:59
ChannelContainer theStripsLowBits
Definition: CSCStripHit.h:78
int theConsecutiveStrips
Definition: CSCStripHit.h:82
int numberOfConsecutiveStrips() const
Number of consecutive strips with charge.
Definition: CSCStripHit.h:62
const StripHitADCContainer & s_adc() const
L1A.
Definition: CSCStripHit.h:56
CSCStripHit * clone() const
Required for storage in RangeMap.
Definition: CSCStripHit.h:35
ChannelContainer theStrips
Definition: CSCStripHit.h:77
CSCDetId theDetId
Definition: CSCStripHit.h:74
short int deadStrip() const
is a neighbouring string a dead strip?
Definition: CSCStripHit.h:68
std::vector< float > StripHitADCContainer
Definition: CSCStripHit.h:18
ChannelContainer theStripsHighBits
L1A.
Definition: CSCStripHit.h:79
int tmax() const
Strip hit maximum time bin.
Definition: CSCStripHit.h:44
short int theDeadStrip
Definition: CSCStripHit.h:84
std::vector< int > ChannelContainer
Definition: CSCStripHit.h:19
const ChannelContainer & stripsTotal() const
The strips used in cluster to produce strip hit (total content)
Definition: CSCStripHit.h:47
int closestMaximum() const
Number of strips to the closest other maximum.
Definition: CSCStripHit.h:65
CSCDetId cscDetId() const
Strip Hit is in this DetId.
Definition: CSCStripHit.h:38
void print() const
Print content of the striphit including L1A.
Definition: CSCStripHit.cc:35
const ChannelContainer & strips() const
L1A.
Definition: CSCStripHit.h:50
float theStripHitPosition
Definition: CSCStripHit.h:75
StripHitADCContainer theStripHitADCs
L1A.
Definition: CSCStripHit.h:80
int theStripHitTmax
Definition: CSCStripHit.h:76
int theClosestMaximum
Definition: CSCStripHit.h:83
float sHitPos() const
Strip hit position (centroid)
Definition: CSCStripHit.h:41