CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoTracker/DeDx/interface/GenericAverageDeDxEstimator.h

Go to the documentation of this file.
00001 #ifndef RecoTrackerDeDx_GenericAverageDeDxEstimator_h
00002 #define RecoTrackerDeDx_GenericAverageDeDxEstimator_h
00003 
00004 #include "RecoTracker/DeDx/interface/DeDxTools.h"
00005 #include "DataFormats/TrackReco/interface/DeDxHit.h"
00006 
00007 class GenericAverageDeDxEstimator: public BaseDeDxEstimator
00008 {
00009 public: 
00010  GenericAverageDeDxEstimator(float expo): m_expo(expo) {}
00011 
00012  virtual std::pair<float,float> dedx(const reco::DeDxHitCollection& Hits) 
00013  {return std::make_pair(DeDxTools::genericAverage(Hits, m_expo),-1); } 
00014 
00015 private:
00016  float m_expo;
00017 
00018 };
00019 
00020 #endif