16 for (
unsigned int i = 1;
i < rates.size(); ++
i ){
41 for (
unsigned int i=0;
i<this->
size();++
i){
43 (*this)[
i]+=otherPtStats[
i];
52 for (
unsigned int i=0;
i<this->
size();++
i){
53 ss <<
" " << (*this)[
i];
63 return double(
sum(ptCut))/this->
sum();
70 long int eqOrAbovePtCut = 0;
73 for(
unsigned int i=ptCut;
i<
size;++
i) eqOrAbovePtCut += (*
this)[
i];
74 return eqOrAbovePtCut;
80 long int eqOrAbovePtCut = 0;
84 PTStatistics::const_iterator it = this->
begin();
85 PTStatistics::const_iterator itend = this->
end();
86 for(;it!=itend;++it) eqOrAbovePtCut += *it;
88 return eqOrAbovePtCut;
93 long double eqOrAbovePtCut = 0;
96 for(
unsigned int i=ptCut;
i<
size;++
i) eqOrAbovePtCut += (*
this)[
i]*
m_rates[
i];
97 return eqOrAbovePtCut;
102 long double eqOrAbovePtCut = 0;
113 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.