CMS 3D CMS Logo

Public Member Functions

MedianDeDxEstimator Class Reference

#include <MedianDeDxEstimator.h>

Inheritance diagram for MedianDeDxEstimator:
BaseDeDxEstimator

List of all members.

Public Member Functions

virtual std::pair< float, float > dedx (const reco::DeDxHitCollection &Hits)
 MedianDeDxEstimator (float expo)

Detailed Description

Definition at line 7 of file MedianDeDxEstimator.h.


Constructor & Destructor Documentation

MedianDeDxEstimator::MedianDeDxEstimator ( float  expo) [inline]

Definition at line 10 of file MedianDeDxEstimator.h.

{}

Member Function Documentation

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); 
 }