ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooNumIntFactory.h,v 1.6 2007/05/11 09:11:30 verkerke Exp $
 * 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_INT_FACTORY
#define ROO_NUM_INT_FACTORY

#include <map>
#include <string>
#include "TObject.h"
#include "RooLinkedList.h"
#include "RooAbsIntegrator.h"
class RooNumIntConfig ;
class RooAbsFunc ;

class RooNumIntFactory ;
typedef void (*RooNumIntInitializerFunc)(RooNumIntFactory&) ;

class RooNumIntFactory : public TObject {
public:

  static RooNumIntFactory& instance() ;
  virtual ~RooNumIntFactory();

  Bool_t storeProtoIntegrator(RooAbsIntegrator* proto, const RooArgSet& defConfig, const char* depName="") ;
  const RooAbsIntegrator* getProtoIntegrator(const char* name) ;
  const char* getDepIntegratorName(const char* name) ;

  RooAbsIntegrator* createIntegrator(RooAbsFunc& func, const RooNumIntConfig& config, Int_t ndim=0, Bool_t isBinned=kFALSE) ;
  
  static void cleanup() ;


protected:
	 
  friend class RooNumIntConfig ;

  std::map<std::string,std::pair<RooAbsIntegrator*,std::string> > _map ;

  RooNumIntFactory(); 
  RooNumIntFactory(const RooNumIntFactory& other) ;

  static RooNumIntFactory* _instance ;


  ClassDef(RooNumIntFactory,1) // Numeric Integrator factory
};

#endif


 RooNumIntFactory.h:1
 RooNumIntFactory.h:2
 RooNumIntFactory.h:3
 RooNumIntFactory.h:4
 RooNumIntFactory.h:5
 RooNumIntFactory.h:6
 RooNumIntFactory.h:7
 RooNumIntFactory.h:8
 RooNumIntFactory.h:9
 RooNumIntFactory.h:10
 RooNumIntFactory.h:11
 RooNumIntFactory.h:12
 RooNumIntFactory.h:13
 RooNumIntFactory.h:14
 RooNumIntFactory.h:15
 RooNumIntFactory.h:16
 RooNumIntFactory.h:17
 RooNumIntFactory.h:18
 RooNumIntFactory.h:19
 RooNumIntFactory.h:20
 RooNumIntFactory.h:21
 RooNumIntFactory.h:22
 RooNumIntFactory.h:23
 RooNumIntFactory.h:24
 RooNumIntFactory.h:25
 RooNumIntFactory.h:26
 RooNumIntFactory.h:27
 RooNumIntFactory.h:28
 RooNumIntFactory.h:29
 RooNumIntFactory.h:30
 RooNumIntFactory.h:31
 RooNumIntFactory.h:32
 RooNumIntFactory.h:33
 RooNumIntFactory.h:34
 RooNumIntFactory.h:35
 RooNumIntFactory.h:36
 RooNumIntFactory.h:37
 RooNumIntFactory.h:38
 RooNumIntFactory.h:39
 RooNumIntFactory.h:40
 RooNumIntFactory.h:41
 RooNumIntFactory.h:42
 RooNumIntFactory.h:43
 RooNumIntFactory.h:44
 RooNumIntFactory.h:45
 RooNumIntFactory.h:46
 RooNumIntFactory.h:47
 RooNumIntFactory.h:48
 RooNumIntFactory.h:49
 RooNumIntFactory.h:50
 RooNumIntFactory.h:51
 RooNumIntFactory.h:52
 RooNumIntFactory.h:53
 RooNumIntFactory.h:54
 RooNumIntFactory.h:55
 RooNumIntFactory.h:56
 RooNumIntFactory.h:57
 RooNumIntFactory.h:58
 RooNumIntFactory.h:59
 RooNumIntFactory.h:60
 RooNumIntFactory.h:61
 RooNumIntFactory.h:62