Logo ROOT  
Reference Guide
RooStats::ProofConfig Class Reference

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.

Access to TProof::Mgr for configuration is still possible as usual (e.g. to set Root Version to be used on workers). You can do:

TProof::Mgr("my.server.url")->ShowROOTVersions()
TProof::Mgr("my.server.url")->SetROOTVersion("v5-27-06_dbg")
virtual Int_t SetROOTVersion(const char *)
Definition: TProofMgr.h:106
virtual void ShowROOTVersions()
Definition: TProofMgr.h:107
static TProofMgr * Mgr(const char *url)
Get instance of the effective manager for 'url' Return 0 on failure.
Definition: TProof.cxx:11724

See doc: http://root.cern.ch/drupal/content/changing-default-root-version

Definition at line 46 of file ProofConfig.h.

Public Member Functions

 ProofConfig (RooWorkspace &w, Int_t nExperiments=0, const char *host="", bool showGui=false)
 configure proof with number of experiments and host session in case of Prooflite, it is better to define the number of workers as "worker=n" in the host string More...
 
virtual ~ProofConfig ()
 
const char * GetHost (void) const
 returns fHost More...
 
Int_t GetNExperiments (void) const
 return fNExperiments More...
 
bool GetShowGui (void) const
 return fShowGui More...
 
RooWorkspaceGetWorkspace (void) const
 returns fWorkspace More...
 
virtual TClassIsA () const
 
bool IsLite () const
 return true if it is a Lite session (ProofLite) More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static void CloseProof (Option_t *option="s")
 close all proof connections More...
 
static const char * DeclFileName ()
 

Protected Attributes

TString fHost
 Proof hostname. Use empty string (ie "") for proof-lite. Can also handle options like "workers=2" to run on two nodes. More...
 
bool fLite
 Whether we have a Proof Lite session. More...
 
Int_t fNExperiments
 number of experiments. This is sometimes called "events" in proof; "experiments" in RooStudyManager. More...
 
bool fShowGui
 Whether to show the Proof Progress window. More...
 
RooWorkspacefWorkspace
 workspace that is to be used with the RooStudyManager More...
 

#include <RooStats/ProofConfig.h>

Constructor & Destructor Documentation

◆ ProofConfig()

RooStats::ProofConfig::ProofConfig ( RooWorkspace w,
Int_t  nExperiments = 0,
const char *  host = "",
bool  showGui = false 
)
inline

configure proof with number of experiments and host session in case of Prooflite, it is better to define the number of workers as "worker=n" in the host string

Definition at line 52 of file ProofConfig.h.

◆ ~ProofConfig()

virtual RooStats::ProofConfig::~ProofConfig ( )
inlinevirtual

Definition at line 86 of file ProofConfig.h.

Member Function Documentation

◆ Class()

static TClass * RooStats::ProofConfig::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * RooStats::ProofConfig::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t RooStats::ProofConfig::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 112 of file ProofConfig.h.

◆ CloseProof()

static void RooStats::ProofConfig::CloseProof ( Option_t option = "s")
inlinestatic

close all proof connections

Definition at line 91 of file ProofConfig.h.

◆ DeclFileName()

static const char * RooStats::ProofConfig::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 112 of file ProofConfig.h.

◆ GetHost()

const char * RooStats::ProofConfig::GetHost ( void  ) const
inline

returns fHost

Definition at line 96 of file ProofConfig.h.

◆ GetNExperiments()

Int_t RooStats::ProofConfig::GetNExperiments ( void  ) const
inline

return fNExperiments

Definition at line 98 of file ProofConfig.h.

◆ GetShowGui()

bool RooStats::ProofConfig::GetShowGui ( void  ) const
inline

return fShowGui

Definition at line 100 of file ProofConfig.h.

◆ GetWorkspace()

RooWorkspace & RooStats::ProofConfig::GetWorkspace ( void  ) const
inline

returns fWorkspace

Definition at line 94 of file ProofConfig.h.

◆ IsA()

virtual TClass * RooStats::ProofConfig::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 112 of file ProofConfig.h.

◆ IsLite()

bool RooStats::ProofConfig::IsLite ( ) const
inline

return true if it is a Lite session (ProofLite)

Definition at line 102 of file ProofConfig.h.

◆ Streamer()

virtual void RooStats::ProofConfig::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void RooStats::ProofConfig::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 112 of file ProofConfig.h.

Member Data Documentation

◆ fHost

TString RooStats::ProofConfig::fHost
protected

Proof hostname. Use empty string (ie "") for proof-lite. Can also handle options like "workers=2" to run on two nodes.

Definition at line 107 of file ProofConfig.h.

◆ fLite

bool RooStats::ProofConfig::fLite
protected

Whether we have a Proof Lite session.

Definition at line 109 of file ProofConfig.h.

◆ fNExperiments

Int_t RooStats::ProofConfig::fNExperiments
protected

number of experiments. This is sometimes called "events" in proof; "experiments" in RooStudyManager.

Definition at line 106 of file ProofConfig.h.

◆ fShowGui

bool RooStats::ProofConfig::fShowGui
protected

Whether to show the Proof Progress window.

Definition at line 108 of file ProofConfig.h.

◆ fWorkspace

RooWorkspace& RooStats::ProofConfig::fWorkspace
protected

workspace that is to be used with the RooStudyManager

Definition at line 105 of file ProofConfig.h.

Libraries for RooStats::ProofConfig:
[legend]

The documentation for this class was generated from the following file: