// @(#)root/roostats:$Id: ProofConfig.h 37564 2010-12-13 13:47:23Z moneta $ // Author: Kyle Cranmer and Sven Kreiss July 2010 /************************************************************************* * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOSTATS_ProofConfig #define ROOSTATS_ProofConfig //_________________________________________________ /* BEGIN_HTML <p> Holds configuration options for proof and proof-lite. This class will be expanded in the future to hold more specific configuration options for the tools in RooStats. </p> END_HTML */ // #ifndef ROOT_Rtypes #include "Rtypes.h" #endif #include "RooWorkspace.h" namespace RooStats { class ProofConfig { public: ProofConfig(RooWorkspace &w, Int_t nExperiments = 8, const char *host = "", Bool_t showGui = kTRUE) : fWorkspace(w), fNExperiments(nExperiments), fHost(host), fShowGui(showGui) { } virtual ~ProofConfig() { } // returns fWorkspace RooWorkspace& GetWorkspace(void) { return fWorkspace; } // returns fHost const char* GetHost(void) { return fHost; } // return fNExperiments Int_t GetNExperiments(void) { return fNExperiments; } // return fShowGui Bool_t GetShowGui(void) { return fShowGui; } protected: RooWorkspace& fWorkspace; // workspace that is to be used with the RooStudyManager Int_t fNExperiments; // number of experiments. This is sometimes called "events" in proof; "experiments" in RooStudyManager. const char* fHost; // Proof hostname. Use empty string (ie "") for proof-lite. Can also handle options like "workers=2" to run on two nodes. Bool_t fShowGui; // Whether to show the Proof Progress window. protected: ClassDef(ProofConfig,1) // Configuration options for proof. }; } #endif