1 #ifndef RecoTrackerDeDx_GenericTruncatedAverageDeDxEstimator_h
2 #define RecoTrackerDeDx_GenericTruncatedAverageDeDxEstimator_h
24 for (
int i = first;
i <
last;
i++) {
27 double avrdedx = (last -
first) ?
pow(sumdedx / (last - first), 1.0 /
m_expo) : 0.0;
28 return std::make_pair(avrdedx, -1);
std::vector< DeDxHit > DeDxHitCollection
GenericTruncatedAverageDeDxEstimator(const edm::ParameterSet &iConfig)
T getParameter(std::string const &) const
std::pair< float, float > dedx(const reco::DeDxHitCollection &Hits) override
Power< A, B >::type pow(const A &a, const B &b)