CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_6/src/RecoLocalMuon/CSCRecHitD/src/CSCStripHitData.h

Go to the documentation of this file.
00001 #ifndef CSCRecHitD_CSCStripHitData_h
00002 #define CSCRecHitD_CSCStripHitData_h
00003 
00014 #include <vector>
00015 
00016 class CSCStripHitData
00017 {       
00018  public:        
00019 
00020   CSCStripHitData() : istrip_(-1), tmax_(-1), phRaw_(nbins_), ph_(nbins_){};
00021   
00022   CSCStripHitData( int istrip, int tmax, std::vector<float> phRaw,  std::vector<float> ph ) :
00023            istrip_(istrip), tmax_(tmax), phRaw_(phRaw),  ph_(ph){};
00024   
00025   int strip() const {return istrip_;}
00026   int tmax() const {return  tmax_;}
00027   std::vector<float> ph() const { return ph_;}
00028   std::vector<float> phRaw() const { return phRaw_;}
00029 
00031   bool operator<( const CSCStripHitData & data ) const { return ph_[1] < data.ph_[1]; }
00032 
00033  private:
00034   static const int nbins_ = 4; //@ Number of ph bins saved
00035   int istrip_;
00036   int tmax_;
00037   std::vector<float> phRaw_;
00038   std::vector<float> ph_;  
00039 };
00040 
00041 #endif
00042