CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MedianDeDxEstimator.h
Go to the documentation of this file.
1 #ifndef RecoTrackerDeDx_MedianDeDxEstimator_h
2 #define RecoTrackerDeDx_MedianDeDxEstimator_h
3 
6 
8 {
9 public:
10  MedianDeDxEstimator(float expo) {}
11 
12  virtual std::pair<float,float> dedx(const reco::DeDxHitCollection & Hits){
13  if(Hits.size()==0)return std::make_pair(-1,-1);
14  return std::make_pair(Hits[Hits.size()/2].charge(),-1);
15  }
16 };
17 
18 #endif
std::vector< DeDxHit > DeDxHitCollection
Definition: DeDxHit.h:49
MedianDeDxEstimator(float expo)
virtual std::pair< float, float > dedx(const reco::DeDxHitCollection &Hits)