CMS 3D CMS Logo

CSCStripHitData.h
Go to the documentation of this file.
1 #ifndef CSCRecHitD_CSCStripHitData_h
2 #define CSCRecHitD_CSCStripHitData_h
3 
14 #include <vector>
15 
17 public:
19 
20  CSCStripHitData(int istrip, int tmax, const std::vector<float>& phRaw, const std::vector<float>& ph)
21  : istrip_(istrip), tmax_(tmax), phRaw_(phRaw), ph_(ph){};
22 
23  int strip() const { return istrip_; }
24  int tmax() const { return tmax_; }
25  std::vector<float> const& ph() const { return ph_; }
26  std::vector<float> const& phRaw() const { return phRaw_; }
27 
29  bool operator<(const CSCStripHitData& data) const { return ph_[1] < data.ph_[1]; }
30 
31 private:
32  static const int nbins_ = 4; //@ Number of ph bins saved
33  int istrip_;
34  int tmax_;
35  std::vector<float> phRaw_;
36  std::vector<float> ph_;
37 };
38 
39 #endif
CSCStripHitData::tmax_
int tmax_
Definition: CSCStripHitData.h:34
CSCStripHitData::CSCStripHitData
CSCStripHitData(int istrip, int tmax, const std::vector< float > &phRaw, const std::vector< float > &ph)
Definition: CSCStripHitData.h:20
CSCStripHitData::CSCStripHitData
CSCStripHitData()
Definition: CSCStripHitData.h:18
CSCStripHitData::phRaw
std::vector< float > const & phRaw() const
Definition: CSCStripHitData.h:26
CSCStripHitData::istrip_
int istrip_
Definition: CSCStripHitData.h:33
CSCStripHitData::tmax
int tmax() const
Definition: CSCStripHitData.h:24
CSCStripHitData::strip
int strip() const
Definition: CSCStripHitData.h:23
CSCStripHitData::ph
std::vector< float > const & ph() const
Definition: CSCStripHitData.h:25
CSCStripHitData
Definition: CSCStripHitData.h:16
CSCStripHitData::operator<
bool operator<(const CSCStripHitData &data) const
Order by 2nd ph bin.
Definition: CSCStripHitData.h:29
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
CSCStripHitData::ph_
std::vector< float > ph_
Definition: CSCStripHitData.h:36
CSCStripHitData::phRaw_
std::vector< float > phRaw_
Definition: CSCStripHitData.h:35
CSCStripHitData::nbins_
static const int nbins_
Definition: CSCStripHitData.h:32