Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoTracker
DeDx
interface
MedianDeDxEstimator.h
Go to the documentation of this file.
1
#ifndef RecoTrackerDeDx_MedianDeDxEstimator_h
2
#define RecoTrackerDeDx_MedianDeDxEstimator_h
3
4
#include "
RecoTracker/DeDx/interface/DeDxTools.h
"
5
#include "
DataFormats/TrackReco/interface/DeDxHit.h
"
6
7
class
MedianDeDxEstimator
:
public
BaseDeDxEstimator
8
{
9
public
:
10
MedianDeDxEstimator
(
const
edm::ParameterSet
& iConfig){
11
}
12
13
virtual
std::pair<float,float>
dedx
(
const
reco::DeDxHitCollection
& Hits){
14
if
(Hits.size()==0)
return
std::make_pair(-1,-1);
15
return
std::make_pair(Hits[Hits.size()/2].charge(),-1);
16
}
17
};
18
19
#endif
MedianDeDxEstimator
Definition:
MedianDeDxEstimator.h:7
reco::DeDxHitCollection
std::vector< DeDxHit > DeDxHitCollection
Definition:
DeDxHit.h:67
MedianDeDxEstimator::MedianDeDxEstimator
MedianDeDxEstimator(const edm::ParameterSet &iConfig)
Definition:
MedianDeDxEstimator.h:10
DeDxHit.h
DeDxTools.h
MedianDeDxEstimator::dedx
virtual std::pair< float, float > dedx(const reco::DeDxHitCollection &Hits)
Definition:
MedianDeDxEstimator.h:13
edm::ParameterSet
Definition:
ParameterSet.h:35
BaseDeDxEstimator
Definition:
BaseDeDxEstimator.h:7
Generated for CMSSW Reference Manual by
1.8.5