Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:25

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitCore                                                       *
0004  *    File: $Id$
0005  * Authors:                                                                  *
0006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0008  *                                                                           *
0009  * Copyright (c) 2000-2005, Regents of the University of California          *
0010  *                          and Stanford University. All rights reserved.    *
0011  *                                                                           *
0012  * Redistribution and use in source and binary forms,                        *
0013  * with or without modification, are permitted according to the terms        *
0014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
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   // Return selected integration techniques for 1,2,N dimensional integrals
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        ; ///< Selects integration method for 1D p.d.f.s
0059   RooCategory _method1DCat     ; ///< Selects integration method for 1D  p.d.f.s with categories
0060   RooCategory _method1DCond    ; ///< Selects integration method for 1D conditional p.d.f.s
0061   RooCategory _method1DCondCat ; ///< Selects integration method for 1D conditional p.d.f.s with categories
0062 
0063   RooCategory _method2D        ; ///< Selects integration method for 2D p.d.f.s
0064   RooCategory _method2DCat     ; ///< Selects integration method for 2D  p.d.f.s with categories
0065   RooCategory _method2DCond    ; ///< Selects integration method for 2D conditional p.d.f.s
0066   RooCategory _method2DCondCat ; ///< Selects integration method for 2D conditional p.d.f.s with categories
0067 
0068   RooCategory _methodND        ; ///< Selects integration method for ND p.d.f.s
0069   RooCategory _methodNDCat     ; ///< Selects integration method for ND  p.d.f.s with categories
0070   RooCategory _methodNDCond    ; ///< Selects integration method for ND conditional p.d.f.s
0071   RooCategory _methodNDCondCat ; ///< Selects integration method for ND conditional p.d.f.s with categories
0072 
0073   RooLinkedList _configSets ; ///< List of configuration sets for individual integration methods
0074 
0075   ClassDefOverride(RooNumGenConfig,1) // Numeric (MC) Event generator configuration
0076 };
0077 
0078 #endif
0079 
0080