Logo ROOT   6.08/07
Reference Guide
TProofSuperMaster.h
Go to the documentation of this file.
1 // @(#)root/proof:$Id$
2 // Author: Fons Rademakers 13/02/97
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TProofSuperMaster
13 #define ROOT_TProofSuperMaster
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TProofSuperMaster //
19 // //
20 // This class controls a Parallel ROOT Facility, PROOF, cluster. //
21 // It fires the slave servers, it keeps track of how many slaves are //
22 // running, it keeps track of the slaves running status, it broadcasts //
23 // messages to all slaves, it collects results, etc. //
24 // //
25 //////////////////////////////////////////////////////////////////////////
26 
27 #ifndef ROOT_TProof
28 #include "TProof.h"
29 #endif
30 #ifndef ROOT_TString
31 #include "TString.h"
32 #endif
33 
35 class TDSet;
36 
37 class TProofSuperMaster : public TProof {
38 
40 
41 protected:
43  void ValidateDSet(TDSet *dset);
44  virtual TVirtualProofPlayer *MakePlayer(const char *player = 0, TSocket *s = 0);
45 
46 public:
47  TProofSuperMaster(const char *masterurl, const char *conffile = kPROOF_ConfFile,
48  const char *confdir = kPROOF_ConfDir, Int_t loglevel = 0,
49  const char *alias = 0, TProofMgr *mgr = 0);
50  virtual ~TProofSuperMaster() { }
51 
52  Long64_t Process(TDSet *set, const char *selector,
53  Option_t *option = "", Long64_t nentries = -1,
54  Long64_t firstentry = 0);
55  Long64_t Process(TFileCollection *fc, const char *sel, Option_t *o = "",
56  Long64_t nent = -1, Long64_t fst = 0)
57  { return TProof::Process(fc, sel, o, nent, fst); }
58  Long64_t Process(const char *dsname, const char *sel,
59  Option_t *o = "", Long64_t nent = -1,
60  Long64_t fst = 0, TObject *enl = 0)
61  { return TProof::Process(dsname, sel, o, nent, fst, enl); }
62  Long64_t Process(const char *sel, Long64_t nent, Option_t *o = "")
63  { return TProof::Process(sel, nent, o); }
64  // Process via TSelector
65  Long64_t Process(TDSet *set, TSelector *selector,
66  Option_t *option = "", Long64_t nentries = -1,
67  Long64_t firstentry = 0)
68  { return TProof::Process(set, selector, option, nentries, firstentry); }
70  Long64_t nent = -1, Long64_t fst = 0)
71  { return TProof::Process(fc, sel, o, nent, fst); }
72  Long64_t Process(const char *dsname, TSelector *sel,
73  Option_t *o = "", Long64_t nent = -1,
74  Long64_t fst = 0, TObject *enl = 0)
75  { return TProof::Process(dsname, sel, o, nent, fst, enl); }
77  { return TProof::Process(sel, nent, o); }
78 
79  ClassDef(TProofSuperMaster,0) //PROOF control class for making submasters
80 };
81 
82 #endif
Bool_t StartSlaves(Bool_t)
Start up PROOF submasters.
void ValidateDSet(TDSet *dset)
Validate a TDSet.
long long Long64_t
Definition: RtypesCore.h:69
const char Option_t
Definition: RtypesCore.h:62
This class implements a data set to be used for PROOF processing.
Definition: TDSet.h:153
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session...
Definition: TProofMgr.h:53
virtual ~TProofSuperMaster()
Long64_t Process(const char *dsname, const char *sel, Option_t *o="", Long64_t nent=-1, Long64_t fst=0, TObject *enl=0)
Process a dataset which is stored on the master with name 'dsetname'.
Long64_t Process(TFileCollection *fc, TSelector *sel, Option_t *o="", Long64_t nent=-1, Long64_t fst=0)
Process a data set (TFileCollection) using the specified selector object The default tree is analyzed...
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Implementation of TProof controlling PROOF federated clusters.
static struct mg_connection * fc(struct mg_context *ctx)
Definition: civetweb.c:1956
#define ClassDef(name, id)
Definition: Rtypes.h:254
Long64_t Process(TFileCollection *fc, const char *sel, Option_t *o="", Long64_t nent=-1, Long64_t fst=0)
Process a data set (TFileCollection) using the specified selector (.C) file or TSelector object...
const char *const kPROOF_ConfFile
Definition: TProof.h:152
Long64_t Process(const char *dsname, TSelector *sel, Option_t *o="", Long64_t nent=-1, Long64_t fst=0, TObject *enl=0)
Process with name of dataset and TSelector object.
const char *const kPROOF_ConfDir
Definition: TProof.h:153
Long64_t Process(TDSet *set, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process a data set (TDSet) using the specified selector (.C) file.
Long64_t Process(TDSet *set, TSelector *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process a data set (TDSet) using the specified selector object.
virtual Long64_t Process(TDSet *dset, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process a data set (TDSet) using the specified selector (.C) file or Tselector object Entry- or event...
Definition: TProof.cxx:5275
Long64_t Process(TSelector *sel, Long64_t nent, Option_t *o="")
Generic (non-data based) selector processing: the Process() method of the specified selector is calle...
virtual TVirtualProofPlayer * MakePlayer(const char *player=0, TSocket *s=0)
Construct a TProofPlayer object.
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition: TProof.h:346
int nentries
Definition: THbookFile.cxx:89
Mother of all ROOT objects.
Definition: TObject.h:37
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
Long64_t Process(const char *sel, Long64_t nent, Option_t *o="")
Generic (non-data based) selector processing: the Process() method of the specified selector (...
Abstract interface for the PROOF player.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition: TSelector.h:39
TProofSuperMaster(const char *masterurl, const char *conffile=kPROOF_ConfFile, const char *confdir=kPROOF_ConfDir, Int_t loglevel=0, const char *alias=0, TProofMgr *mgr=0)
Start super master PROOF session.