ATLAS Offline Software
|
Classes | |
class | breit_generator |
breit-wigner generator More... | |
class | experiment |
given a histogram, get a generator for the distribution in that histogram, then run some pseudo-experiments and collect the mean and rms More... | |
class | generator_base |
base class for a "generator" class More... | |
class | hist_generator |
generate a distribution according to an input histogram (after smoothing) More... | |
Functions | |
void | Zero (TH1D *hin) |
double | Entries (TH1D *hin) |
double | get_mean (const std::vector< double > &m) |
mean and rms More... | |
double | get_rms (const std::vector< double > &m) |
TH1D * | integrate (TH1D *hin) |
generate an integrated distribution More... | |
void | ScaleIntegral (TH1D *hin) |
scale a distribution by the integral More... | |
TH1D * | PDF (TH1D *hin) |
generate a (normalised) pdf from a distribution More... | |
double | Gradient (TH1D *hin) |
int | iGradient (TH1D *hin) |
TH1D * | smooth (TH1D *hin, bool sym) |
smooth a distribution about the maximum NB: maximum is not smoothed More... | |
double | GetEntries (TH1D *h, int ilow, int ihi) |
double | GetEntries (TH1D *h) |
void | getRange (TH1D *s, int imax, double frac, int &lowerbin, int &upperbin, double &lowerfrac, double &upperfrac) |
double | findMean (TH1D *s, double frac=0.95) |
int | findMax (TH1D *s) |
double | rmsFrac (TH1D *s, double frac, double mean) |
double | rmsFrac (TH1D *s, double frac) |
double | rms95 (TH1D *s, double mean) |
get the fraction of the rms95 value with respect to the rms95 value of a gaussian More... | |
double | rms95 (TH1D *s) |
Variables | |
int | Nevent_min = 0 |
int | Nevent_max = 5000 |
const double | frac = 0.95 |
double generate::Entries | ( | TH1D * | hin | ) |
int generate::findMax | ( | TH1D * | s | ) |
double generate::findMean | ( | TH1D * | s, |
double | frac = 0.95 |
||
) |
not enough entries for this fraction, ie we want 0.95 then need 5% to be 1 events, so need at least 20 events
maximum 20 iterations, calculating the mean of 95% until stable
Definition at line 84 of file rmsFrac.cxx.
double generate::get_mean | ( | const std::vector< double > & | m | ) |
double generate::get_rms | ( | const std::vector< double > & | m | ) |
double generate::GetEntries | ( | TH1D * | h | ) |
Definition at line 26 of file rmsFrac.cxx.
double generate::GetEntries | ( | TH1D * | h, |
int | ilow, | ||
int | ihi | ||
) |
void generate::getRange | ( | TH1D * | s, |
int | imax, | ||
double | frac, | ||
int & | lowerbin, | ||
int & | upperbin, | ||
double & | lowerfrac, | ||
double & | upperfrac | ||
) |
Definition at line 32 of file rmsFrac.cxx.
double generate::Gradient | ( | TH1D * | hin | ) |
Definition at line 121 of file generate.cxx.
int generate::iGradient | ( | TH1D * | hin | ) |
Definition at line 136 of file generate.cxx.
TH1D * generate::integrate | ( | TH1D * | hin | ) |
TH1D * generate::PDF | ( | TH1D * | hin | ) |
generate a (normalised) pdf from a distribution
Definition at line 112 of file generate.cxx.
double generate::rms95 | ( | TH1D * | s | ) |
double generate::rms95 | ( | TH1D * | s, |
double | mean | ||
) |
get the fraction of the rms95 value with respect to the rms95 value of a gaussian
Definition at line 285 of file rmsFrac.cxx.
double generate::rmsFrac | ( | TH1D * | s, |
double | frac | ||
) |
double generate::rmsFrac | ( | TH1D * | s, |
double | frac, | ||
double | mean | ||
) |
not enough entries for this fraction, ie we want 0.95 then need 5% to be 1 events, so need at least 20 events
lazyness
technically not correct, since the rms is not definid for only one bin - really need NARROWER BINS!!
Definition at line 193 of file rmsFrac.cxx.
void generate::ScaleIntegral | ( | TH1D * | hin | ) |
scale a distribution by the integral
Definition at line 92 of file generate.cxx.
TH1D * generate::smooth | ( | TH1D * | hin, |
bool | sym | ||
) |
smooth a distribution about the maximum NB: maximum is not smoothed
a bit ad hoc, but seems to work
Definition at line 158 of file generate.cxx.
void generate::Zero | ( | TH1D * | hin | ) |
const double generate::frac = 0.95 |
Definition at line 295 of file generate.cxx.
int generate::Nevent_max = 5000 |
Definition at line 293 of file generate.cxx.
int generate::Nevent_min = 0 |
Definition at line 292 of file generate.cxx.