91 if (min<=0)
Log() << kFATAL <<
"logarithmic intervals have to have Min>0 !!" <<
Endl;
115 Log() << kFATAL <<
"GetElement only defined for discrete value LogIntervals" <<
Endl;
118 else if (bin < 0 || bin >=
fNbins) {
119 Log() << kFATAL <<
"bin " << bin <<
" out of range: interval *bins* count from 0 to " <<
fNbins-1 <<
Endl;
131 Log() << kFATAL <<
"GetElement only defined for discrete value LogIntervals" <<
Endl;
134 Log() << kFATAL <<
"You asked for iBin=" << iBin
135 <<
" in interval .. and.. sorry, I cannot let this happen.."<<
Endl;
165 TTHREAD_TLS_DECL_ARG(
MsgLogger,logger,
"LogInterval");
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
Int_t fNbins
when >0 : number of bins (discrete interval); when ==0 continuous interval
Double_t fMax
the constraints of the Interval
Interval(Double_t min, Double_t max, Int_t nbins=0)
defines minimum and maximum of an interval
Double_t GetWidth() const override
Double_t GetMean() const override
Double_t GetRndm(TRandom3 &) const override
get uniformly distributed number within interval
LogInterval(Double_t min, Double_t max, Int_t nbins=0)
virtual ~LogInterval()
destructor
Double_t GetStepSize(Int_t iBin=0) const override
returns the step size between the numbers of a "discrete LogInterval"
Double_t GetElement(Int_t position) const override
calculates the value of the "number" bin in a discrete interval.
ostringstream derivative to redirect and format output
Random number generator class based on M.
Double_t Rndm() override
Machine independent random number generator.
create variable transformations
MsgLogger & Endl(MsgLogger &ml)
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Double_t Exp(Double_t x)
Returns the base-e exponential function of x, which is e raised to the power x.
Double_t Log(Double_t x)
Returns the natural logarithm of x.