RooSimPdfBuilder.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooSimPdfBuilder.h,v 1.13 2007/05/11 10:14:56 verkerke Exp $
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_SIM_PDF_BUILDER
00017 #define ROO_SIM_PDF_BUILDER
00018 
00019 #include "Rtypes.h"
00020 #include "TObject.h"
00021 #include "RooArgSet.h"
00022 #include "RooArgList.h"
00023 #include "RooAbsData.h"
00024 #include <list>
00025 class RooSimultaneous ;
00026 class RooAbsPdf ;
00027 class RooCategory ;
00028 class RooSuperCategory ;
00029 
00030 class RooSimPdfBuilder : public TObject {
00031 public:
00032 
00033   RooSimPdfBuilder(const RooArgSet& pdfProtoList) ;
00034   ~RooSimPdfBuilder() ;
00035 
00036   RooArgSet* createProtoBuildConfig() ;
00037 
00038   RooSimultaneous* buildPdf(const RooArgSet& buildConfig, const RooArgSet& dependents, 
00039                                   const RooArgSet* auxSplitCats=0, Bool_t verbose=kFALSE) ;
00040 
00041   RooSimultaneous* buildPdf(const RooArgSet& buildConfig, const RooAbsData* dataSet, 
00042                                   const RooArgSet& auxSplitCats, Bool_t verbose=kFALSE) {
00043     return buildPdf(buildConfig,*dataSet->get(),&auxSplitCats,verbose) ;
00044   }
00045 
00046   RooSimultaneous* buildPdf(const RooArgSet& buildConfig, const RooArgSet& dependents,
00047                                   const RooArgSet& auxSplitCats, Bool_t verbose=kFALSE) {
00048     return buildPdf(buildConfig,dependents,&auxSplitCats,verbose) ;
00049   }
00050 
00051   RooSimultaneous* buildPdf(const RooArgSet& buildConfig, const RooAbsData* dataSet, 
00052                                   const RooArgSet* auxSplitCats=0, Bool_t verbose=kFALSE) {
00053     return buildPdf(buildConfig,*dataSet->get(),auxSplitCats,verbose) ;
00054   }
00055   
00056   const RooArgSet& splitLeafList() { return _splitNodeList; }
00057 
00058   void addSpecializations(const RooArgSet& specSet) ;
00059  
00060 protected:
00061 
00062   RooArgSet _protoPdfSet ;       // Set of prototype PDFS
00063 
00064   RooArgSet _compSplitCatSet ;   // List of owned composite splitting categories
00065   RooArgSet _splitNodeListOwned ;  // List of all split nodes
00066   RooArgSet _splitNodeList ;       // List of owned split nodes
00067   TList     _retiredCustomizerList ; // Retired customizer from previous builds (own their PDF branch nodes)
00068  
00069   std::list<RooSimultaneous*> _simPdfList ;     // The simpdfs that we built
00070   std::list<RooSuperCategory*> _fitCatList ;     // The supercategories that we built
00071 
00072 
00073 private:
00074   RooSimPdfBuilder(const RooSimPdfBuilder&) ; // No copying allowed
00075 
00076 protected:
00077   ClassDef(RooSimPdfBuilder,0) // RooSimultaneous PDF Builder (obsolete)
00078 };
00079 
00080 #endif

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