1 #ifndef TrackingTools_DetLayers_simple_stat_h
2 #define TrackingTools_DetLayers_simple_stat_h
14 double sum = accumulate(cont.begin(), cont.end(), 0.);
15 return sum / cont.size();
24 typename CONT::const_iterator
i;
28 double sum = 0., sum2 = 0.;
29 for (i = cont.begin(); i != cont.end(); i++) {
33 return sqrt(
std::max(0., (sum2 - sum * sum / N) / (N - 1)));
38 #endif // TrackingTools_DetLayers_simple_stat_h
tuple cont
load Luminosity info ##
double stat_mean(const CONT &cont)
double stat_RMS(const CONT &cont)