CMS 3D CMS Logo

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
CSCStripHit::clone
CSCStripHit * clone() const
Required for storage in RangeMap.
Definition: CSCStripHit.h:35
CSCStripHit::theStripsLowBits
ChannelContainer theStripsLowBits
Definition: CSCStripHit.h:78
CSCStripHit::CSCStripHit
CSCStripHit()
Definition: CSCStripHit.h:21
CSCStripHit::~CSCStripHit
~CSCStripHit()
Definition: CSCStripHit.h:32
CSCStripHit::ChannelContainer
std::vector< int > ChannelContainer
Definition: CSCStripHit.h:19
CSCStripHit::StripHitADCContainer
std::vector< float > StripHitADCContainer
Definition: CSCStripHit.h:18
CSCStripHit::print
void print() const
Print content of the striphit including L1A.
Definition: CSCStripHit.cc:35
CSCStripHit::theDetId
CSCDetId theDetId
Definition: CSCStripHit.h:74
CSCStripHit::cscDetId
CSCDetId cscDetId() const
Strip Hit is in this DetId.
Definition: CSCStripHit.h:38
CSCStripHit::sHitPos
float sHitPos() const
Strip hit position (centroid)
Definition: CSCStripHit.h:41
CSCDetId.h
CSCStripHit::theConsecutiveStrips
int theConsecutiveStrips
Definition: CSCStripHit.h:82
CSCStripHit::theStripHitRawADCs
StripHitADCContainer theStripHitRawADCs
Definition: CSCStripHit.h:81
CSCStripHit::theStripHitPosition
float theStripHitPosition
Definition: CSCStripHit.h:75
CSCStripHit
Definition: CSCStripHit.h:16
CSCStripHit::deadStrip
short int deadStrip() const
is a neighbouring string a dead strip?
Definition: CSCStripHit.h:68
CSCStripHit::s_adcRaw
const StripHitADCContainer & s_adcRaw() const
the raw ADC counts for each of the strip within cluster
Definition: CSCStripHit.h:59
CSCStripHit::tmax
int tmax() const
Strip hit maximum time bin.
Definition: CSCStripHit.h:44
CSCDetId
Definition: CSCDetId.h:26
CSCStripHit::stripsTotal
const ChannelContainer & stripsTotal() const
The strips used in cluster to produce strip hit (total content)
Definition: CSCStripHit.h:47
CSCStripHit::theDeadStrip
short int theDeadStrip
Definition: CSCStripHit.h:84
CSCStripHit::closestMaximum
int closestMaximum() const
Number of strips to the closest other maximum.
Definition: CSCStripHit.h:65
CSCStripHit::theStrips
ChannelContainer theStrips
Definition: CSCStripHit.h:77
CSCStripHit::numberOfConsecutiveStrips
int numberOfConsecutiveStrips() const
Number of consecutive strips with charge.
Definition: CSCStripHit.h:62
CSCStripHit::theStripHitTmax
int theStripHitTmax
Definition: CSCStripHit.h:76
CSCStripHit::stripsl1a
const ChannelContainer & stripsl1a() const
L1A.
Definition: CSCStripHit.h:53
CSCStripHit::strips
const ChannelContainer & strips() const
L1A.
Definition: CSCStripHit.h:50
CSCStripHit::theStripsHighBits
ChannelContainer theStripsHighBits
L1A.
Definition: CSCStripHit.h:79
CSCStripHit::s_adc
const StripHitADCContainer & s_adc() const
L1A.
Definition: CSCStripHit.h:56
CSCStripHit::theStripHitADCs
StripHitADCContainer theStripHitADCs
L1A.
Definition: CSCStripHit.h:80
CSCStripHit::theClosestMaximum
int theClosestMaximum
Definition: CSCStripHit.h:83