16 #ifndef ROO_NUM_GEN_FACTORY 17 #define ROO_NUM_GEN_FACTORY 49 std::map<std::string,RooAbsNumGenerator*>
_map ;
const RooAbsNumGenerator * getProtoSampler(const char *name)
Return prototype integrator with given (class) name.
virtual ~RooNumGenFactory()
Destructor.
RooAbsNumGenerator * createSampler(RooAbsReal &func, const RooArgSet &genVars, const RooArgSet &condVars, const RooNumGenConfig &config, Bool_t verbose=kFALSE, RooAbsReal *maxFuncVal=0)
Construct a numeric integrator instance that operates on function 'func' and is configured with 'conf...
static void cleanup()
Cleanup routine called by atexit() handler installed by RooSentinel.
#define ClassDef(name, id)
RooNumGenFactory()
Constructor.
Class RooAbsNumGenerator is the abstract base class for MC event generator implementations like RooAc...
Bool_t storeProtoSampler(RooAbsNumGenerator *proto, const RooArgSet &defConfig)
Method accepting registration of a prototype numeric integrator along with a RooArgSet of its default...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
double func(double *x, double *p)
std::map< std::string, RooAbsNumGenerator * > _map
Mother of all ROOT objects.
typedef void((*Func_t)())
static RooNumGenFactory & instance()
Static method returning reference to singleton instance of factory.
void(* RooNumGenInitializerFunc)(RooNumGenFactory &)
RooNumGenConfig holds the configuration parameters of the various numeric integrators used by RooReal...
RooNumGenFactory is a factory to instantiate numeric integrators from a given function binding and a ...
static RooNumGenFactory * _instance