1 #ifndef RecoTrackerDeDx_TruncatedAverageDeDxEstimator_h
2 #define RecoTrackerDeDx_TruncatedAverageDeDxEstimator_h
18 for(
size_t i=0;
i + nTrunc < Hits.size() ;
i++){
19 sumdedx+=Hits[
i].charge();
21 double avrdedx = (Hits.size()) ? sumdedx/(Hits.size()-nTrunc) :0.0;
22 return std::make_pair(avrdedx,-1);
T getParameter(std::string const &) const
std::vector< DeDxHit > DeDxHitCollection
virtual std::pair< float, float > dedx(const reco::DeDxHitCollection &Hits)
TruncatedAverageDeDxEstimator(const edm::ParameterSet &iConfig)