#include <MedianDeDxEstimator.h>
Public Member Functions | |
virtual std::pair< float, float > | dedx (const reco::DeDxHitCollection &Hits) |
MedianDeDxEstimator (float expo) |
Definition at line 7 of file MedianDeDxEstimator.h.
MedianDeDxEstimator::MedianDeDxEstimator | ( | float | expo | ) | [inline] |
Definition at line 10 of file MedianDeDxEstimator.h.
{}
virtual std::pair<float,float> MedianDeDxEstimator::dedx | ( | const reco::DeDxHitCollection & | Hits | ) | [inline, virtual] |
Implements BaseDeDxEstimator.
Definition at line 12 of file MedianDeDxEstimator.h.
{ if(Hits.size()==0)return std::make_pair(-1,-1); return std::make_pair(Hits[Hits.size()/2].charge(),-1); }