File indexing completed on 2025-01-18 10:11:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef ROO_NUM_GEN_CONFIG
0017 #define ROO_NUM_GEN_CONFIG
0018
0019 #include "TObject.h"
0020 #include "RooCategory.h"
0021 #include "RooLinkedList.h"
0022 class RooNumGenFactory ;
0023 class RooAbsNumGenerator ;
0024
0025 class RooNumGenConfig : public TObject, public RooPrintable {
0026 public:
0027
0028 RooNumGenConfig();
0029 RooNumGenConfig(const RooNumGenConfig& other) ;
0030 RooNumGenConfig& operator=(const RooNumGenConfig& other) ;
0031 ~RooNumGenConfig() override;
0032
0033
0034 RooCategory& method1D(bool cond, bool cat) ;
0035 RooCategory& method2D(bool cond, bool cat) ;
0036 RooCategory& methodND(bool cond, bool cat) ;
0037 const RooCategory& method1D(bool cond, bool cat) const ;
0038 const RooCategory& method2D(bool cond, bool cat) const ;
0039 const RooCategory& methodND(bool cond, bool cat) const ;
0040
0041
0042 static RooNumGenConfig& defaultConfig() ;
0043
0044 bool addConfigSection(const RooAbsNumGenerator* proto, const RooArgSet& defaultConfig) ;
0045 const RooArgSet& getConfigSection(const char* name) const ;
0046 RooArgSet& getConfigSection(const char* name) ;
0047
0048 void printMultiline(std::ostream &os, Int_t content, bool verbose, TString indent= "") const override;
0049
0050 inline void Print(Option_t *options= nullptr) const override {
0051 printStream(defaultPrintStream(),defaultPrintContents(options),defaultPrintStyle(options));
0052 }
0053 StyleOption defaultPrintStyle(Option_t* opt) const override ;
0054
0055
0056 protected:
0057
0058 RooCategory _method1D ;
0059 RooCategory _method1DCat ;
0060 RooCategory _method1DCond ;
0061 RooCategory _method1DCondCat ;
0062
0063 RooCategory _method2D ;
0064 RooCategory _method2DCat ;
0065 RooCategory _method2DCond ;
0066 RooCategory _method2DCondCat ;
0067
0068 RooCategory _methodND ;
0069 RooCategory _methodNDCat ;
0070 RooCategory _methodNDCond ;
0071 RooCategory _methodNDCondCat ;
0072
0073 RooLinkedList _configSets ;
0074
0075 ClassDefOverride(RooNumGenConfig,1)
0076 };
0077
0078 #endif
0079
0080