00001 // @(#)root/roostats:$Id: ProofConfig.h 37564 2010-12-13 13:47:23Z moneta $ 00002 // Author: Kyle Cranmer and Sven Kreiss July 2010 00003 /************************************************************************* 00004 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * 00005 * All rights reserved. * 00006 * * 00007 * For the licensing terms see $ROOTSYS/LICENSE. * 00008 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00009 *************************************************************************/ 00010 00011 #ifndef ROOSTATS_ProofConfig 00012 #define ROOSTATS_ProofConfig 00013 00014 //_________________________________________________ 00015 /* 00016 BEGIN_HTML 00017 <p> 00018 Holds configuration options for proof and proof-lite. 00019 00020 This class will be expanded in the future to hold more specific configuration 00021 options for the tools in RooStats. 00022 </p> 00023 END_HTML 00024 */ 00025 // 00026 00027 #ifndef ROOT_Rtypes 00028 #include "Rtypes.h" 00029 #endif 00030 00031 #include "RooWorkspace.h" 00032 00033 00034 namespace RooStats { 00035 00036 class ProofConfig { 00037 00038 public: 00039 ProofConfig(RooWorkspace &w, Int_t nExperiments = 8, const char *host = "", Bool_t showGui = kTRUE) : 00040 fWorkspace(w), 00041 fNExperiments(nExperiments), 00042 fHost(host), 00043 fShowGui(showGui) 00044 { 00045 } 00046 00047 virtual ~ProofConfig() { 00048 } 00049 00050 // returns fWorkspace 00051 RooWorkspace& GetWorkspace(void) { return fWorkspace; } 00052 // returns fHost 00053 const char* GetHost(void) { return fHost; } 00054 // return fNExperiments 00055 Int_t GetNExperiments(void) { return fNExperiments; } 00056 // return fShowGui 00057 Bool_t GetShowGui(void) { return fShowGui; } 00058 00059 protected: 00060 RooWorkspace& fWorkspace; // workspace that is to be used with the RooStudyManager 00061 Int_t fNExperiments; // number of experiments. This is sometimes called "events" in proof; "experiments" in RooStudyManager. 00062 const char* fHost; // Proof hostname. Use empty string (ie "") for proof-lite. Can also handle options like "workers=2" to run on two nodes. 00063 Bool_t fShowGui; // Whether to show the Proof Progress window. 00064 00065 protected: 00066 ClassDef(ProofConfig,1) // Configuration options for proof. 00067 }; 00068 } 00069 00070 00071 #endif