63 _nset.add(observables);
66 double Density(
Int_t ndim,
double *xvec)
override
69 for (
int i = 0; i < ndim; i++) {
70 x[i] = xvec[i] * (_binding->getMaxLimit(i) - _binding->getMinLimit(i)) + _binding->getMinLimit(i);
72 double ret = (*_binding)(
x);
80 std::unique_ptr<RooRealBinding> _binding;
112 _tfoam = std::make_unique<TFoam>(
"TFOAM") ;
114 _tfoam->SetRho(_binding.get()) ;
133 _xmin[i] = var->getMin() ;
134 _range[i] = var->getMax() - var->getMin() ;
145 if(event->size() == 1)
return event;
160std::string
const& RooFoamGenerator::generatorName()
const {
161 static const std::string
name =
"RooFoamGenerator";
ROOT::RRangeCast< T, false, Range_t > static_range_cast(Range_t &&coll)
std::vector< double > _vec
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Storage_t const & get() const
Const access to the underlying stl container.
Abstract base class for objects that represent a real value and implements functionality common to al...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Holds the configuration parameters of the various numeric integrators used by RooRealIntegral.
const RooArgSet & getConfigSection(const char *name) const
Retrieve configuration information specific to integrator with given name.
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
Lightweight interface adaptor that binds a RooAbsReal object to a subset of its servers and present i...
Variable that can be changed from the outside.
void setVal(double value) override
Set value of variable to 'value'.
Abstract class representing n-dimensional real positive integrand function.