RooNumGenConfig.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooNumGenConfig.h 28259 2009-04-16 16:21:16Z wouter $
00005  * Authors:                                                                  *
00006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
00007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          and Stanford University. All rights reserved.    *
00011  *                                                                           *
00012  * Redistribution and use in source and binary forms,                        *
00013  * with or without modification, are permitted according to the terms        *
00014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00015  *****************************************************************************/
00016 #ifndef ROO_NUM_GEN_CONFIG
00017 #define ROO_NUM_GEN_CONFIG
00018 
00019 #include "TObject.h"
00020 #include "RooCategory.h"
00021 #include "RooLinkedList.h"
00022 class RooNumGenFactory ;
00023 class RooAbsNumGenerator ;
00024 
00025 class RooNumGenConfig : public TObject, public RooPrintable {
00026 public:
00027 
00028   RooNumGenConfig();
00029   RooNumGenConfig(const RooNumGenConfig& other) ;
00030   RooNumGenConfig& operator=(const RooNumGenConfig& other) ;
00031   virtual ~RooNumGenConfig();
00032 
00033   // Return selected integration techniques for 1,2,N dimensional integrals
00034   RooCategory& method1D(Bool_t cond, Bool_t cat) ;
00035   RooCategory& method2D(Bool_t cond, Bool_t cat) ;
00036   RooCategory& methodND(Bool_t cond, Bool_t cat) ;
00037   const RooCategory& method1D(Bool_t cond, Bool_t cat) const ;
00038   const RooCategory& method2D(Bool_t cond, Bool_t cat) const ;
00039   const RooCategory& methodND(Bool_t cond, Bool_t cat) const ;
00040 
00041 
00042   static RooNumGenConfig& defaultConfig() ;
00043 
00044   Bool_t addConfigSection(const RooAbsNumGenerator* proto, const RooArgSet& defaultConfig) ;
00045   const RooArgSet& getConfigSection(const char* name) const ;
00046   RooArgSet& getConfigSection(const char* name) ;
00047 
00048   void printMultiline(ostream &os, Int_t content, Bool_t verbose, TString indent= "") const;
00049 
00050   inline virtual void Print(Option_t *options= 0) const {
00051     printStream(defaultPrintStream(),defaultPrintContents(options),defaultPrintStyle(options));
00052   }
00053   virtual StyleOption defaultPrintStyle(Option_t* opt) const ;
00054   
00055 
00056   static void cleanup() ;
00057 
00058 protected:
00059 
00060   static RooNumGenConfig* _default ;
00061   
00062   RooCategory _method1D        ; // Selects integration method for 1D p.d.f.s
00063   RooCategory _method1DCat     ; // Selects integration method for 1D  p.d.f.s with categories
00064   RooCategory _method1DCond    ; // Selects integration method for 1D conditional p.d.f.s
00065   RooCategory _method1DCondCat ; // Selects integration method for 1D conditional p.d.f.s with categories
00066 
00067   RooCategory _method2D        ; // Selects integration method for 2D p.d.f.s
00068   RooCategory _method2DCat     ; // Selects integration method for 2D  p.d.f.s with categories
00069   RooCategory _method2DCond    ; // Selects integration method for 2D conditional p.d.f.s
00070   RooCategory _method2DCondCat ; // Selects integration method for 2D conditional p.d.f.s with categories
00071 
00072   RooCategory _methodND        ; // Selects integration method for ND p.d.f.s
00073   RooCategory _methodNDCat     ; // Selects integration method for ND  p.d.f.s with categories
00074   RooCategory _methodNDCond    ; // Selects integration method for ND conditional p.d.f.s
00075   RooCategory _methodNDCondCat ; // Selects integration method for ND conditional p.d.f.s with categories
00076 
00077   RooLinkedList _configSets ; // List of configuration sets for individual integration methods
00078 
00079   ClassDef(RooNumGenConfig,1) // Numeric (MC) Event generator configuration 
00080 };
00081 
00082 #endif
00083 
00084 

Generated on Tue Jul 5 14:26:15 2011 for ROOT_528-00b_version by  doxygen 1.5.1