CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
MedianDeDxEstimator Class Reference

#include <MedianDeDxEstimator.h>

Inheritance diagram for MedianDeDxEstimator:
BaseDeDxEstimator

Public Member Functions

virtual std::pair< float, float > dedx (const reco::DeDxHitCollection &Hits)
 
 MedianDeDxEstimator (float expo)
 
- Public Member Functions inherited from BaseDeDxEstimator
virtual ~BaseDeDxEstimator ()
 

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.

10 {}

Member Function Documentation

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

Implements BaseDeDxEstimator.

Definition at line 12 of file MedianDeDxEstimator.h.

12  {
13  if(Hits.size()==0)return std::make_pair(-1,-1);
14  return std::make_pair(Hits[Hits.size()/2].charge(),-1);
15  }