11 #ifndef ROOSTATS_ProofConfig
12 #define ROOSTATS_ProofConfig
69 int nMaxWorkers =
gROOT->ProcessLineFast(
"TProofLite::GetNumberOfWorkers()");
71 if (nExperiments == 0) {
75 if (nExperiments > nMaxWorkers)
76 std::cout <<
"ProofConfig - Warning: using a number of workers = " << nExperiments <<
" which is larger than the number of cores in the machine "
77 << nMaxWorkers << std::endl;
Holds configuration options for proof and proof-lite.
static void closeProof(Option_t *option="s")
"Option_t *option" takes the parameters forwarded to gProof->Close(option).
RooWorkspace & GetWorkspace(void) const
Int_t GetNExperiments(void) const
RooWorkspace & fWorkspace
#define ClassDef(name, id)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
ProofConfig(RooWorkspace &w, Int_t nExperiments=0, const char *host="", Bool_t showGui=kFALSE)
Namespace for the RooStats classes.
Bool_t GetShowGui(void) const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
const char * GetHost(void) const
static void CloseProof(Option_t *option="s")
close all proof connections