50 oocoutE(
nullptr,InputArguments) <<
"RooGrid: cannot initialize using an invalid function" << std::endl;
74bool RooGrid::initialize(
const RooAbsFunc &function)
81 oocoutE(
nullptr,Integration) <<
"RooGrid: lower limit of dimension " <<
index <<
" is infinite" << std::endl;
86 oocoutE(
nullptr,Integration) <<
"RooGrid: upper limit of dimension " <<
index <<
" is infinite" << std::endl;
91 oocoutE(
nullptr,Integration) <<
"RooGrid: bad range for dimension " <<
index <<
": [" <<
_xl[
index]
92 <<
"," <<
_xu[
index] <<
"]" << std::endl;
110void RooGrid::resize(
UInt_t bins)
113 if(bins ==
_bins)
return;
127 for(k = 1; k <=
_bins; k++) {
137 for(k = 1 ; k < bins; k++) {
149void RooGrid::resetValues()
166void RooGrid::generatePoint(
const UInt_t box[],
double x[],
UInt_t bin[],
double &vol,
215void RooGrid::firstBox(
UInt_t box[])
const
234 if (0 !=
box[
j])
return true;
246void RooGrid::print(std::ostream& os,
bool verbose, std::string
const&
indent)
const
248 os <<
"RooGrid: volume = " <<
getVolume() << std::endl;
249 os <<
indent <<
" Has " << getDimension() <<
" dimension(s) each subdivided into "
250 <<
getNBins() <<
" bin(s) and sampled with " <<
_boxes <<
" box(es)" << std::endl;
253 << std::setw(10) <<
_xl[
index] <<
"," << std::setw(10) <<
_xu[
index] <<
"]" << std::endl;
254 if(!verbose)
continue;
255 for(std::size_t bin= 0; bin <
_bins; bin++) {
256 os <<
indent <<
" bin-" << bin <<
" : x = " <<
coord(bin,
index) <<
" , y = "
267void RooGrid::accumulate(
const UInt_t bin[],
double amount)
279void RooGrid::refine(
double alpha)
292 for (i = 1; i <
_bins - 1; i++) {
305 for (i = 0; i <
_bins; i++) {
static void indent(ostringstream &buf, int indent_level)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
static constexpr int isInfinite(double x)
Return true if x is infinite by RooNumber internal specification.
static double uniform(TRandom *generator=randomGenerator())
Return a number uniformly distributed from (0,1)
static bool quasi(UInt_t dimension, double vector[], RooQuasiRandomGenerator *generator=quasiGenerator())
Return a quasi-random number in the range (0,1) using the Niederreiter base 2 generator described in ...
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void function(const Char_t *name_, T fun, const Char_t *docstring=0)
void initialize(typename Architecture_t::Matrix_t &A, EInitialization m)