53RooNumGenFactory::RooNumGenFactory()
55 RooAcceptReject::registerSampler(*
this) ;
56 RooFoamGenerator::registerSampler(*
this) ;
81RooNumGenFactory::~RooNumGenFactory()
83 std::map<std::string,RooAbsNumGenerator*>::iterator iter = _map.begin() ;
84 while (iter != _map.end()) {
94RooNumGenFactory::RooNumGenFactory(
const RooNumGenFactory& other) :
TObject(other)
103RooNumGenFactory& RooNumGenFactory::instance()
115bool RooNumGenFactory::storeProtoSampler(RooAbsNumGenerator*
proto,
const RooArgSet& defConfig)
119 if (getProtoSampler(
name)) {
138const RooAbsNumGenerator* RooNumGenFactory::getProtoSampler(
const char*
name)
140 if (_map.count(
name)==0) {
162 bool cond = (!condVars.
empty()) ? true : false ;
165 for (
const auto arg : genVars) {
190 oocoutE(
nullptr,Integration) <<
"RooNumGenFactory::createSampler: No sampler method has been defined for "
191 << (cond?
"a conditional ":
"a ") << ndim <<
"-dimensional p.d.f" << std::endl;
196 const RooAbsNumGenerator*
proto = getProtoSampler(method) ;
197 RooAbsNumGenerator* engine =
proto->clone(func,genVars,condVars,config,verbose,maxFuncVal) ;
static Roo_reg_AGKInteg1D instance
int Int_t
Signed integer 4 bytes (int).
virtual const char * getCurrentLabel() const
Return label string of current state.
Storage_t::size_type size() const
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.
bool setLabel(const char *label, bool printError=true) override
Set value by specifying the name of the desired state.
Holds the configuration parameters of the various numeric integrators used by RooRealIntegral.
static RooNumGenConfig & defaultConfig()
Return reference to instance of default numeric integrator configuration object.
RooCategory & method2D(bool cond, bool cat)
RooCategory & method1D(bool cond, bool cat)
bool addConfigSection(const RooAbsNumGenerator *proto, const RooArgSet &defaultConfig)
Add a configuration section for a particular integrator.
RooCategory & methodND(bool cond, bool cat)
Mother of all ROOT objects.
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.