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 {
18  public:
19 
21 
22  CSCStripHitData( int istrip, int tmax, const std::vector<float>& phRaw, const std::vector<float>& ph ) :
23  istrip_(istrip), tmax_(tmax), phRaw_(phRaw), ph_(ph){};
24 
25  int strip() const {return istrip_;}
26  int tmax() const {return tmax_;}
27  std::vector<float> const & ph() const { return ph_;}
28  std::vector<float> const & phRaw() const { return phRaw_;}
29 
31  bool operator<( const CSCStripHitData & data ) const { return ph_[1] < data.ph_[1]; }
32 
33  private:
34  static const int nbins_ = 4; //@ Number of ph bins saved
35  int istrip_;
36  int tmax_;
37  std::vector<float> phRaw_;
38  std::vector<float> ph_;
39 };
40 
41 #endif
42 
static const int nbins_
std::vector< float > const & phRaw() const
std::vector< float > const & ph() const
int strip() const
std::vector< float > ph_
std::vector< float > phRaw_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
bool operator<(const CSCStripHitData &data) const
Order by 2nd ph bin.
CSCStripHitData(int istrip, int tmax, const std::vector< float > &phRaw, const std::vector< float > &ph)
int tmax() const