ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id$
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_NUM_GEN_CONFIG
#define ROO_NUM_GEN_CONFIG

#include "TObject.h"
#include "RooCategory.h"
#include "RooLinkedList.h"
class RooNumGenFactory ;
class RooAbsNumGenerator ;

class RooNumGenConfig : public TObject, public RooPrintable {
public:

  RooNumGenConfig();
  RooNumGenConfig(const RooNumGenConfig& other) ;
  RooNumGenConfig& operator=(const RooNumGenConfig& other) ;
  virtual ~RooNumGenConfig();

  // Return selected integration techniques for 1,2,N dimensional integrals
  RooCategory& method1D(Bool_t cond, Bool_t cat) ;
  RooCategory& method2D(Bool_t cond, Bool_t cat) ;
  RooCategory& methodND(Bool_t cond, Bool_t cat) ;
  const RooCategory& method1D(Bool_t cond, Bool_t cat) const ;
  const RooCategory& method2D(Bool_t cond, Bool_t cat) const ;
  const RooCategory& methodND(Bool_t cond, Bool_t cat) const ;


  static RooNumGenConfig& defaultConfig() ;

  Bool_t addConfigSection(const RooAbsNumGenerator* proto, const RooArgSet& defaultConfig) ;
  const RooArgSet& getConfigSection(const char* name) const ;
  RooArgSet& getConfigSection(const char* name) ;

  void printMultiline(std::ostream &os, Int_t content, Bool_t verbose, TString indent= "") const;

  inline virtual void Print(Option_t *options= 0) const {
    printStream(defaultPrintStream(),defaultPrintContents(options),defaultPrintStyle(options));
  }
  virtual StyleOption defaultPrintStyle(Option_t* opt) const ;
  

  static void cleanup() ;

protected:

  static RooNumGenConfig* _default ;
  
  RooCategory _method1D        ; // Selects integration method for 1D p.d.f.s
  RooCategory _method1DCat     ; // Selects integration method for 1D  p.d.f.s with categories
  RooCategory _method1DCond    ; // Selects integration method for 1D conditional p.d.f.s
  RooCategory _method1DCondCat ; // Selects integration method for 1D conditional p.d.f.s with categories

  RooCategory _method2D        ; // Selects integration method for 2D p.d.f.s
  RooCategory _method2DCat     ; // Selects integration method for 2D  p.d.f.s with categories
  RooCategory _method2DCond    ; // Selects integration method for 2D conditional p.d.f.s
  RooCategory _method2DCondCat ; // Selects integration method for 2D conditional p.d.f.s with categories

  RooCategory _methodND        ; // Selects integration method for ND p.d.f.s
  RooCategory _methodNDCat     ; // Selects integration method for ND  p.d.f.s with categories
  RooCategory _methodNDCond    ; // Selects integration method for ND conditional p.d.f.s
  RooCategory _methodNDCondCat ; // Selects integration method for ND conditional p.d.f.s with categories

  RooLinkedList _configSets ; // List of configuration sets for individual integration methods

  ClassDef(RooNumGenConfig,1) // Numeric (MC) Event generator configuration 
};

#endif


 RooNumGenConfig.h:1
 RooNumGenConfig.h:2
 RooNumGenConfig.h:3
 RooNumGenConfig.h:4
 RooNumGenConfig.h:5
 RooNumGenConfig.h:6
 RooNumGenConfig.h:7
 RooNumGenConfig.h:8
 RooNumGenConfig.h:9
 RooNumGenConfig.h:10
 RooNumGenConfig.h:11
 RooNumGenConfig.h:12
 RooNumGenConfig.h:13
 RooNumGenConfig.h:14
 RooNumGenConfig.h:15
 RooNumGenConfig.h:16
 RooNumGenConfig.h:17
 RooNumGenConfig.h:18
 RooNumGenConfig.h:19
 RooNumGenConfig.h:20
 RooNumGenConfig.h:21
 RooNumGenConfig.h:22
 RooNumGenConfig.h:23
 RooNumGenConfig.h:24
 RooNumGenConfig.h:25
 RooNumGenConfig.h:26
 RooNumGenConfig.h:27
 RooNumGenConfig.h:28
 RooNumGenConfig.h:29
 RooNumGenConfig.h:30
 RooNumGenConfig.h:31
 RooNumGenConfig.h:32
 RooNumGenConfig.h:33
 RooNumGenConfig.h:34
 RooNumGenConfig.h:35
 RooNumGenConfig.h:36
 RooNumGenConfig.h:37
 RooNumGenConfig.h:38
 RooNumGenConfig.h:39
 RooNumGenConfig.h:40
 RooNumGenConfig.h:41
 RooNumGenConfig.h:42
 RooNumGenConfig.h:43
 RooNumGenConfig.h:44
 RooNumGenConfig.h:45
 RooNumGenConfig.h:46
 RooNumGenConfig.h:47
 RooNumGenConfig.h:48
 RooNumGenConfig.h:49
 RooNumGenConfig.h:50
 RooNumGenConfig.h:51
 RooNumGenConfig.h:52
 RooNumGenConfig.h:53
 RooNumGenConfig.h:54
 RooNumGenConfig.h:55
 RooNumGenConfig.h:56
 RooNumGenConfig.h:57
 RooNumGenConfig.h:58
 RooNumGenConfig.h:59
 RooNumGenConfig.h:60
 RooNumGenConfig.h:61
 RooNumGenConfig.h:62
 RooNumGenConfig.h:63
 RooNumGenConfig.h:64
 RooNumGenConfig.h:65
 RooNumGenConfig.h:66
 RooNumGenConfig.h:67
 RooNumGenConfig.h:68
 RooNumGenConfig.h:69
 RooNumGenConfig.h:70
 RooNumGenConfig.h:71
 RooNumGenConfig.h:72
 RooNumGenConfig.h:73
 RooNumGenConfig.h:74
 RooNumGenConfig.h:75
 RooNumGenConfig.h:76
 RooNumGenConfig.h:77
 RooNumGenConfig.h:78
 RooNumGenConfig.h:79
 RooNumGenConfig.h:80
 RooNumGenConfig.h:81
 RooNumGenConfig.h:82
 RooNumGenConfig.h:83
 RooNumGenConfig.h:84