Logo ROOT  
Reference Guide
RooNumGenFactory.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id$
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 #ifndef ROO_NUM_GEN_FACTORY
17 #define ROO_NUM_GEN_FACTORY
18 
19 #include <map>
20 #include <string>
21 #include "TObject.h"
22 #include "RooLinkedList.h"
23 #include "RooAbsNumGenerator.h"
24 class RooNumGenConfig ;
25 class RooAbsReal ;
26 
27 class RooNumGenFactory ;
29 
30 class RooNumGenFactory : public TObject {
31 public:
32 
33  static RooNumGenFactory& instance() ;
34  virtual ~RooNumGenFactory();
35 
37  const RooAbsNumGenerator* getProtoSampler(const char* name) ;
38 
39  RooAbsNumGenerator* createSampler(RooAbsReal& func, const RooArgSet& genVars, const RooArgSet& condVars,
40  const RooNumGenConfig& config, Bool_t verbose=kFALSE, RooAbsReal* maxFuncVal=0) ;
41 
42 
43 protected:
44 
45  friend class RooNumGenConfig ;
46 
47  std::map<std::string,RooAbsNumGenerator*> _map ;
48 
50  RooNumGenFactory(const RooNumGenFactory& other) ;
51 
52 
53  ClassDef(RooNumGenFactory,1) // Numeric Generator factory
54 };
55 
56 #endif
57 
58 
RooAbsReal
Definition: RooAbsReal.h:61
RooNumGenFactory::storeProtoSampler
Bool_t storeProtoSampler(RooAbsNumGenerator *proto, const RooArgSet &defConfig)
Method accepting registration of a prototype numeric integrator along with a RooArgSet of its default...
Definition: RooNumGenFactory.cxx:120
RooNumGenFactory
Definition: RooNumGenFactory.h:30
bool
RooNumGenFactory::~RooNumGenFactory
virtual ~RooNumGenFactory()
Destructor.
Definition: RooNumGenFactory.cxx:86
RooNumGenFactory::_map
std::map< std::string, RooAbsNumGenerator * > _map
Definition: RooNumGenFactory.h:47
RooNumGenFactory::createSampler
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...
Definition: RooNumGenFactory.cxx:163
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
RooAbsNumGenerator
Definition: RooAbsNumGenerator.h:30
RooNumGenFactory::RooNumGenFactory
RooNumGenFactory()
Constructor.
Definition: RooNumGenFactory.cxx:58
void
typedef void((*Func_t)())
proto
const char * proto
Definition: civetweb.c:16604
RooNumGenConfig
Definition: RooNumGenConfig.h:25
RooNumGenFactory::instance
static RooNumGenFactory & instance()
Static method returning reference to singleton instance of factory.
Definition: RooNumGenFactory.cxx:108
TObject.h
RooLinkedList.h
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110
genreflex::verbose
bool verbose
Definition: rootcling_impl.cxx:133
RooNumGenInitializerFunc
void(* RooNumGenInitializerFunc)(RooNumGenFactory &)
Definition: RooNumGenFactory.h:28
RooNumGenFactory::getProtoSampler
const RooAbsNumGenerator * getProtoSampler(const char *name)
Return prototype integrator with given (class) name.
Definition: RooNumGenFactory.cxx:143
RooArgSet
Definition: RooArgSet.h:28
RooAbsNumGenerator.h