00001 #ifndef RecoTrackerDeDx_MedianDeDxEstimator_h 00002 #define RecoTrackerDeDx_MedianDeDxEstimator_h 00003 00004 #include "RecoTracker/DeDx/interface/DeDxTools.h" 00005 #include "DataFormats/TrackReco/interface/DeDxHit.h" 00006 00007 class MedianDeDxEstimator: public BaseDeDxEstimator 00008 { 00009 public: 00010 MedianDeDxEstimator(float expo) {} 00011 00012 virtual std::pair<float,float> dedx(const reco::DeDxHitCollection & Hits){ 00013 if(Hits.size()==0)return std::make_pair(-1,-1); 00014 return std::make_pair(Hits[Hits.size()/2].charge(),-1); 00015 } 00016 }; 00017 00018 #endif