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 (const edm::ParameterSet &iConfig)
 
- Public Member Functions inherited from BaseDeDxEstimator
virtual void beginRun (edm::Run const &run, const edm::EventSetup &iSetup)
 
virtual ~BaseDeDxEstimator ()
 

Detailed Description

Definition at line 7 of file MedianDeDxEstimator.h.

Constructor & Destructor Documentation

MedianDeDxEstimator::MedianDeDxEstimator ( const edm::ParameterSet iConfig)
inline

Definition at line 10 of file MedianDeDxEstimator.h.

10  {
11  }

Member Function Documentation

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

Implements BaseDeDxEstimator.

Definition at line 13 of file MedianDeDxEstimator.h.

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