15 for (
unsigned int i = 1;
i < rates.size(); ++
i) {
35 for (
unsigned int i = 0;
i < this->
size(); ++
i) {
37 (*this)[
i] += otherPtStats[
i];
43 for (
unsigned int i = 0;
i < this->
size(); ++
i) {
44 ss <<
" " << (*this)[
i];
54 return double(
sum(ptCut)) / this->
sum();
60 long int eqOrAbovePtCut = 0;
63 for (
unsigned int i = ptCut;
i <
size; ++
i)
64 eqOrAbovePtCut += (*
this)[
i];
65 return eqOrAbovePtCut;
71 long int eqOrAbovePtCut = 0;
75 PTStatistics::const_iterator it = this->
begin();
76 PTStatistics::const_iterator itend = this->
end();
77 for (; it != itend; ++it)
78 eqOrAbovePtCut += *it;
80 return eqOrAbovePtCut;
85 long double eqOrAbovePtCut = 0;
88 for (
unsigned int i = ptCut;
i <
size; ++
i)
89 eqOrAbovePtCut += (*
this)[
i] *
m_rates[
i];
90 return eqOrAbovePtCut;
95 long double eqOrAbovePtCut = 0;
103 for (
unsigned int i = 1;
i <
size; ++
i)
104 eqOrAbovePtCut += (*
this)[
i] *
m_rates[
i];
107 return eqOrAbovePtCut;
void update(PTStatistics &otherPtStats)
static const std::vector< long double > m_rates
static const double pts[33]
void assign(const std::vector< float > &vec, float &a, float &b, float &c, float &d)
static std::vector< long double > initializeRates()
const unsigned int ptBins_s
long double eff(int ptCut)
tuple size
Write out results.