46RooNumGenFactory::RooNumGenFactory()
48 RooAcceptReject::registerSampler(*
this) ;
49 RooFoamGenerator::registerSampler(*
this) ;
74RooNumGenFactory::~RooNumGenFactory()
76 std::map<std::string,RooAbsNumGenerator*>::iterator iter = _map.begin() ;
77 while (iter != _map.end()) {
87RooNumGenFactory::RooNumGenFactory(
const RooNumGenFactory& other) :
TObject(other)
96RooNumGenFactory& RooNumGenFactory::instance()
108bool RooNumGenFactory::storeProtoSampler(RooAbsNumGenerator* proto,
const RooArgSet& defConfig)
112 if (getProtoSampler(
name)) {
118 _map[
name.Data()] = proto ;
131const RooAbsNumGenerator* RooNumGenFactory::getProtoSampler(
const char*
name)
133 if (_map.count(
name)==0) {
155 bool cond = (!condVars.
empty()) ?
true : false ;
158 for (
const auto arg : genVars) {
183 oocoutE(
nullptr,Integration) <<
"RooNumGenFactory::createSampler: No sampler method has been defined for "
184 << (cond?
"a conditional ":
"a ") << ndim <<
"-dimensional p.d.f" << std::endl;
189 const RooAbsNumGenerator* proto = getProtoSampler(method) ;
190 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.