CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GenericAverageDeDxEstimator.h
Go to the documentation of this file.
1 #ifndef RecoTrackerDeDx_GenericAverageDeDxEstimator_h
2 #define RecoTrackerDeDx_GenericAverageDeDxEstimator_h
3 
6 
8 {
9 public:
10  GenericAverageDeDxEstimator(float expo): m_expo(expo) {}
11 
12  virtual std::pair<float,float> dedx(const reco::DeDxHitCollection& Hits)
13  {return std::make_pair(DeDxTools::genericAverage(Hits, m_expo),-1); }
14 
15 private:
16  float m_expo;
17 
18 };
19 
20 #endif
std::vector< DeDxHit > DeDxHitCollection
Definition: DeDxHit.h:49
virtual std::pair< float, float > dedx(const reco::DeDxHitCollection &Hits)
double genericAverage(const reco::DeDxHitCollection &, float expo=1.)
Definition: DeDxTools.cc:122