|
ATLAS Offline Software
|
Go to the documentation of this file.
27 double get_mean(
const std::vector<double>&
m );
28 double get_rms(
const std::vector<double>&
m );
42 TH1D*
smooth( TH1D* hin,
bool sym=
true );
95 for (
unsigned i=0 ;
i<
m_y.size() ;
i++ )
if (
y<=
m_y[
i] )
return i;
101 if (
i==0 )
return 0;
136 experiment( TH1D*
h,
int Nexperiments=10,
int fevents=0 );
experiment operator=(const experiment &)=delete
double generate() const
actually generate a random number from the distribution
experiment(const experiment &)=delete
double m_global_mean
actual histogram rms95
given a histogram, get a generator for the distribution in that histogram, then run some pseudo-exper...
hist_generator(const hist_generator &)=delete
double m_global_rms_error
std::vector< double > m_dx
double get_mean(const std::vector< double > &m)
mean and rms
virtual double generate() const =0
virtual ~hist_generator()
virtual ~generator_base()
double m_hmean
rms from each experiment
std::vector< double > m_mean
number of experiments
int getbin(double y) const
TH1D * PDF(TH1D *hin)
generate a (normalised) pdf from a distribution
double mean_error() const
hist_generator operator=(const hist_generator &)=delete
double invert(double y) const
TH1D * smooth(TH1D *hin, bool sym)
smooth a distribution about the maximum NB: maximum is not smoothed
void ScaleIntegral(TH1D *hin)
scale a distribution by the integral
double m_hrms
actual histogram mean95
double get_rms(const std::vector< double > &m)
experiment(TH1D *h, int Nexperiments=10, int fevents=0)
given a distribution, gnerate some number of pseudo experiments to estimate the uncertainties in the ...
virtual double generate() const
std::vector< double > m_dy
TH1D * integrate(TH1D *hin)
generate an integrated distribution
generate a distribution according to an input histogram (after smoothing)
std::vector< double > m_x
double m_global_mean_error
std::vector< double > m_rms
means from each experiment
std::vector< double > m_y
hist_generator(TH1D *h, bool _smooth=true)
base class for a "generator" class
std::vector< double > m_dxdy