00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * File: $Id: RooStudyManager.h 37534 2010-12-10 22:30:05Z 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_STUDY_MANAGER 00017 #define ROO_STUDY_MANAGER 00018 00019 #include "TNamed.h" 00020 00021 class RooAbsPdf; 00022 class RooDataSet ; 00023 class RooAbsData ; 00024 class RooFitResult ; 00025 class RooPlot ; 00026 class RooRealVar ; 00027 class RooWorkspace ; 00028 class RooAbsStudy ; 00029 #include "RooStudyPackage.h" 00030 #include <list> 00031 #include <string> 00032 00033 class RooStudyManager : public TNamed { 00034 public: 00035 00036 RooStudyManager(RooWorkspace& w) ; 00037 RooStudyManager(RooWorkspace& w, RooAbsStudy& study) ; 00038 RooStudyManager(const char* studyPackFileName) ; 00039 void addStudy(RooAbsStudy& study) ; 00040 00041 // Interactive running 00042 void run(Int_t nExperiments) ; 00043 00044 // PROOF-based paralllel running 00045 void runProof(Int_t nExperiments, const char* proofHost="", Bool_t showGui=kTRUE) ; 00046 00047 // Batch running 00048 void prepareBatchInput(const char* studyName, Int_t nExpPerJob, Bool_t unifiedInput) ; 00049 void processBatchOutput(const char* filePat) ; 00050 00051 RooWorkspace& wspace() { return _pkg->wspace() ; } 00052 std::list<RooAbsStudy*>& studies() { return _pkg->studies() ; } 00053 00054 protected: 00055 00056 void aggregateData(TList* olist) ; 00057 void expandWildCardSpec(const char* spec, std::list<std::string>& result) ; 00058 00059 RooStudyPackage* _pkg ; 00060 00061 RooStudyManager(const RooStudyManager&) ; 00062 00063 ClassDef(RooStudyManager,1) // A general purpose workspace oriented parallelizing study manager 00064 } ; 00065 00066 00067 #endif 00068