11 #ifndef ROOSTATS_ProofConfig 
   12 #define ROOSTATS_ProofConfig 
   53       ProofConfig(RooWorkspace &w, Int_t nExperiments = 0, 
const char *host = 
"", Bool_t showGui = kFALSE) :
 
   55          fNExperiments(nExperiments),
 
   61          if (fHost == 
"" || fHost.Contains(
"lite") ) {
 
   66             int nMaxWorkers = gROOT->ProcessLineFast(
"TProofLite::GetNumberOfWorkers()");
 
   68             if (nExperiments == 0) {
 
   69                fNExperiments = nMaxWorkers;
 
   72             if (nExperiments > nMaxWorkers)
 
   73                std::cout << 
"ProofConfig - Warning: using a number of workers = " << nExperiments << 
" which is larger than the number of cores in the machine " 
   74                          << nMaxWorkers << std::endl;
 
   77             fHost = TString::Format(
"workers=%d",fNExperiments);
 
   82             if (nExperiments == 0) fNExperiments = 8;
 
   87       virtual ~ProofConfig() {
 
   88          ProofConfig::CloseProof();
 
   92       static void CloseProof(Option_t *option = 
"s") { RooStudyManager::closeProof(option); }
 
   95       RooWorkspace& GetWorkspace(
void)
 const { 
return fWorkspace; }
 
   97       const char* GetHost(
void)
 const { 
return fHost; }
 
   99       Int_t GetNExperiments(
void)
 const { 
return fNExperiments; }
 
  101       Bool_t GetShowGui(
void)
 const { 
return fShowGui; }
 
  103       Bool_t IsLite()
 const { 
return fLite; }
 
  106       RooWorkspace& fWorkspace;   
 
  113    ClassDef(ProofConfig,1)