CMS 3D CMS Logo

MedianDeDxEstimator.h
Go to the documentation of this file.
1 #ifndef RecoTrackerDeDx_MedianDeDxEstimator_h
2 #define RecoTrackerDeDx_MedianDeDxEstimator_h
3 
7 
9 {
10 public:
12  }
13 
14  virtual std::pair<float,float> dedx(const reco::DeDxHitCollection & Hits){
15  if(Hits.size()==0)return std::make_pair(-1,-1);
16  return std::make_pair(Hits[Hits.size()/2].charge(),-1);
17  }
18 };
19 
20 #endif
std::vector< DeDxHit > DeDxHitCollection
Definition: DeDxHit.h:58
MedianDeDxEstimator(const edm::ParameterSet &iConfig)
virtual std::pair< float, float > dedx(const reco::DeDxHitCollection &Hits)