Logo ROOT  
Reference Guide
RooNumGenConfig.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_CONFIG
17 #define ROO_NUM_GEN_CONFIG
18 
19 #include "TObject.h"
20 #include "RooCategory.h"
21 #include "RooLinkedList.h"
22 class RooNumGenFactory ;
23 class RooAbsNumGenerator ;
24 
25 class RooNumGenConfig : public TObject, public RooPrintable {
26 public:
27 
29  RooNumGenConfig(const RooNumGenConfig& other) ;
31  virtual ~RooNumGenConfig();
32 
33  // Return selected integration techniques for 1,2,N dimensional integrals
34  RooCategory& method1D(Bool_t cond, Bool_t cat) ;
35  RooCategory& method2D(Bool_t cond, Bool_t cat) ;
36  RooCategory& methodND(Bool_t cond, Bool_t cat) ;
37  const RooCategory& method1D(Bool_t cond, Bool_t cat) const ;
38  const RooCategory& method2D(Bool_t cond, Bool_t cat) const ;
39  const RooCategory& methodND(Bool_t cond, Bool_t cat) const ;
40 
41 
42  static RooNumGenConfig& defaultConfig() ;
43 
45  const RooArgSet& getConfigSection(const char* name) const ;
46  RooArgSet& getConfigSection(const char* name) ;
47 
48  void printMultiline(std::ostream &os, Int_t content, Bool_t verbose, TString indent= "") const;
49 
50  inline virtual void Print(Option_t *options= 0) const {
52  }
53  virtual StyleOption defaultPrintStyle(Option_t* opt) const ;
54 
55 
56 protected:
57 
58  RooCategory _method1D ; // Selects integration method for 1D p.d.f.s
59  RooCategory _method1DCat ; // Selects integration method for 1D p.d.f.s with categories
60  RooCategory _method1DCond ; // Selects integration method for 1D conditional p.d.f.s
61  RooCategory _method1DCondCat ; // Selects integration method for 1D conditional p.d.f.s with categories
62 
63  RooCategory _method2D ; // Selects integration method for 2D p.d.f.s
64  RooCategory _method2DCat ; // Selects integration method for 2D p.d.f.s with categories
65  RooCategory _method2DCond ; // Selects integration method for 2D conditional p.d.f.s
66  RooCategory _method2DCondCat ; // Selects integration method for 2D conditional p.d.f.s with categories
67 
68  RooCategory _methodND ; // Selects integration method for ND p.d.f.s
69  RooCategory _methodNDCat ; // Selects integration method for ND p.d.f.s with categories
70  RooCategory _methodNDCond ; // Selects integration method for ND conditional p.d.f.s
71  RooCategory _methodNDCondCat ; // Selects integration method for ND conditional p.d.f.s with categories
72 
73  RooLinkedList _configSets ; // List of configuration sets for individual integration methods
74 
75  ClassDef(RooNumGenConfig,1) // Numeric (MC) Event generator configuration
76 };
77 
78 #endif
79 
80 
RooNumGenConfig::_method2D
RooCategory _method2D
Definition: RooNumGenConfig.h:63
RooNumGenConfig::_method1DCondCat
RooCategory _method1DCondCat
Definition: RooNumGenConfig.h:61
RooNumGenConfig::Print
virtual void Print(Option_t *options=0) const
This method must be overridden when a class wants to print itself.
Definition: RooNumGenConfig.h:50
RooNumGenConfig::addConfigSection
Bool_t addConfigSection(const RooAbsNumGenerator *proto, const RooArgSet &defaultConfig)
Add a configuration section for a particular integrator.
Definition: RooNumGenConfig.cxx:246
RooPrintable::StyleOption
StyleOption
Definition: RooPrintable.h:34
RooNumGenConfig::_method1DCond
RooCategory _method1DCond
Definition: RooNumGenConfig.h:60
RooNumGenConfig::_method2DCond
RooCategory _method2DCond
Definition: RooNumGenConfig.h:65
RooNumGenConfig::methodND
RooCategory & methodND(Bool_t cond, Bool_t cat)
Definition: RooNumGenConfig.cxx:204
indent
static void indent(ostringstream &buf, int indent_level)
Definition: TClingCallFunc.cxx:87
RooNumGenConfig::method2D
RooCategory & method2D(Bool_t cond, Bool_t cat)
Definition: RooNumGenConfig.cxx:192
TString
Definition: TString.h:136
RooPrintable
Definition: RooPrintable.h:25
RooNumGenFactory
Definition: RooNumGenFactory.h:30
RooNumGenConfig::_method1D
RooCategory _method1D
Definition: RooNumGenConfig.h:58
bool
RooNumGenConfig::_configSets
RooLinkedList _configSets
Definition: RooNumGenConfig.h:73
RooNumGenConfig::_method1DCat
RooCategory _method1DCat
Definition: RooNumGenConfig.h:59
RooPrintable::defaultPrintContents
virtual Int_t defaultPrintContents(Option_t *opt) const
Default choice of contents to be printed (name and value)
Definition: RooPrintable.cxx:233
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
RooNumGenConfig::_method2DCat
RooCategory _method2DCat
Definition: RooNumGenConfig.h:64
RooNumGenConfig::_methodNDCat
RooCategory _methodNDCat
Definition: RooNumGenConfig.h:69
RooPrintable::defaultPrintStream
static std::ostream & defaultPrintStream(std::ostream *os=0)
Return a reference to the current default stream to use in Print().
Definition: RooPrintable.cxx:272
RooNumGenConfig::printMultiline
void printMultiline(std::ostream &os, Int_t content, Bool_t verbose, TString indent="") const
Detailed printing interface.
Definition: RooNumGenConfig.cxx:329
RooLinkedList
Definition: RooLinkedList.h:35
RooAbsNumGenerator
Definition: RooAbsNumGenerator.h:30
RooNumGenConfig::method1D
RooCategory & method1D(Bool_t cond, Bool_t cat)
Definition: RooNumGenConfig.cxx:180
RooNumGenConfig::defaultConfig
static RooNumGenConfig & defaultConfig()
Return reference to instance of default numeric integrator configuration object.
Definition: RooNumGenConfig.cxx:48
RooCategory.h
RooNumGenConfig::getConfigSection
const RooArgSet & getConfigSection(const char *name) const
Retrieve configuration information specific to integrator with given name.
Definition: RooNumGenConfig.cxx:295
proto
const char * proto
Definition: civetweb.c:16604
RooNumGenConfig::operator=
RooNumGenConfig & operator=(const RooNumGenConfig &other)
Assignment operator from other RooNumGenConfig.
Definition: RooNumGenConfig.cxx:136
RooNumGenConfig
Definition: RooNumGenConfig.h:25
TObject.h
RooNumGenConfig::~RooNumGenConfig
virtual ~RooNumGenConfig()
Destructor.
Definition: RooNumGenConfig.cxx:96
RooCategory
Definition: RooCategory.h:27
RooNumGenConfig::RooNumGenConfig
RooNumGenConfig()
Constructor.
Definition: RooNumGenConfig.cxx:59
RooLinkedList.h
RooNumGenConfig::_method2DCondCat
RooCategory _method2DCondCat
Definition: RooNumGenConfig.h:66
RooNumGenConfig::defaultPrintStyle
virtual StyleOption defaultPrintStyle(Option_t *opt) const
Definition: RooNumGenConfig.cxx:309
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooNumGenConfig::_methodNDCondCat
RooCategory _methodNDCondCat
Definition: RooNumGenConfig.h:71
name
char name[80]
Definition: TGX11.cxx:110
RooPrintable::printStream
virtual void printStream(std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
Print description of object on ostream, printing contents set by contents integer,...
Definition: RooPrintable.cxx:75
genreflex::verbose
bool verbose
Definition: rootcling_impl.cxx:133
RooNumGenConfig::_methodNDCond
RooCategory _methodNDCond
Definition: RooNumGenConfig.h:70
RooNumGenConfig::_methodND
RooCategory _methodND
Definition: RooNumGenConfig.h:68
RooArgSet
Definition: RooArgSet.h:28
int