35 x(
"x",
"Observables",this,true,false)
61 if(nEventsCurrent != 1 && nEvents != 1 && nEventsCurrent != nEvents) {
62 auto errorMsg = std::string(
"RooUniform::evaluateSpan(): number of entries for input variables does not match")
63 +
"in RooUniform with name \"" +
GetName() +
"\".";
64 coutE(FastEvaluations) << errorMsg << std::endl ;
65 throw std::runtime_error(errorMsg);
67 nEvents = std::max(nEvents, nEventsCurrent);
70 for (
size_t i=0; i<nEvents; i++) {
84 coutW(Integration) <<
"RooUniform::getAnalyticalIntegral(" <<
GetName() <<
") WARNING: p.d.f. has " <<
x.
getSize()
85 <<
" observables, analytical integration is only implemented for the first 31 observables" << std::endl ;
90 for (
int i=0 ; i<
x.
getSize() ; i++) {
105 for (
int i=0 ; i<32 ; i++) {
108 ret *= (var->
getMax(rangeName) - var->
getMin(rangeName)) ;
122 coutW(Integration) <<
"RooUniform::getGenerator(" <<
GetName() <<
") WARNING: p.d.f. has " <<
x.
getSize()
123 <<
" observables, internal integrator is only implemented for the first 31 observables" << std::endl ;
128 for (
int i=0 ; i<
x.
getSize() ; i++) {
149 for (
int i=0 ; i<32 ; i++) {
Int_t getSize() const
Return the number of elements in the collection.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
virtual double getMax(const char *name=nullptr) const
Get maximum of currently defined range.
void randomize(const char *rangeName=nullptr) override
Set a new value sampled from a uniform distribution over the fit range.
virtual double getMin(const char *name=nullptr) const
Get minimum of currently defined range.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual RooSpan< const double > getValues(RooBatchCompute::RunContext &evalData, const RooArgSet *normSet=nullptr) const
RooAbsArg * at(Int_t idx) const
Return object at given index, or nullptr if index is out of range.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...
A simple container to hold a batch of data values.
const char * GetName() const override
Returns name of object.
This struct enables passing computation data around between elements of a computation graph.
RooSpan< double > makeBatch(const RooAbsArg *owner, std::size_t size)
Create a writable batch.