Go to the documentation of this file.
56 #ifndef HITFIT_RESOLUTION_H
57 #define HITFIT_RESOLUTION_H
61 #include "CLHEP/Random/Random.h"
173 double sigma(
double p)
const;
191 double pick(
double x,
double p, CLHEP::HepRandomEngine& engine)
const;
227 #endif // not HITFIT_RESOLUTION_H
double R() const
Return the R term (resolution term)
double N() const
Return the N term (noise term)
Resolution(std::string s="")
Constructor, initialize from a string.
double C() const
Return the C term (constant term)
bool inverse() const
Return the setting of the inverse flag.
double _resolution_exponent
double pick(double x, double p, CLHEP::HepRandomEngine &engine) const
Generate random value from a Gaussian distribution described by this resolution. Given a value ,...
friend std::ostream & operator<<(std::ostream &s, const Resolution &r)
Output stream operator, print the content of this Resolution to an output stream.
double m() const
Return the exponent factor in the resolution term.
double sigma(double p) const
Return the uncertainty for a variable with magnitude p.