Logo ROOT   6.10/09
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 #include "TProof.h"
28 #include "TString.h"
29 
31 class TDSet;
32 
33 class TProofSuperMaster : public TProof {
34 
36 
37 protected:
39  void ValidateDSet(TDSet *dset);
40  virtual TVirtualProofPlayer *MakePlayer(const char *player = 0, TSocket *s = 0);
41 
42 public:
43  TProofSuperMaster(const char *masterurl, const char *conffile = kPROOF_ConfFile,
44  const char *confdir = kPROOF_ConfDir, Int_t loglevel = 0,
45  const char *alias = 0, TProofMgr *mgr = 0);
46  virtual ~TProofSuperMaster() { }
47 
48  Long64_t Process(TDSet *set, const char *selector,
49  Option_t *option = "", Long64_t nentries = -1,
50  Long64_t firstentry = 0);
51  Long64_t Process(TFileCollection *fc, const char *sel, Option_t *o = "",
52  Long64_t nent = -1, Long64_t fst = 0)
53  { return TProof::Process(fc, sel, o, nent, fst); }
54  Long64_t Process(const char *dsname, const char *sel,
55  Option_t *o = "", Long64_t nent = -1,
56  Long64_t fst = 0, TObject *enl = 0)
57  { return TProof::Process(dsname, sel, o, nent, fst, enl); }
58  Long64_t Process(const char *sel, Long64_t nent, Option_t *o = "")
59  { return TProof::Process(sel, nent, o); }
60  // Process via TSelector
61  Long64_t Process(TDSet *set, TSelector *selector,
62  Option_t *option = "", Long64_t nentries = -1,
63  Long64_t firstentry = 0)
64  { return TProof::Process(set, selector, option, nentries, firstentry); }
66  Long64_t nent = -1, Long64_t fst = 0)
67  { return TProof::Process(fc, sel, o, nent, fst); }
68  Long64_t Process(const char *dsname, TSelector *sel,
69  Option_t *o = "", Long64_t nent = -1,
70  Long64_t fst = 0, TObject *enl = 0)
71  { return TProof::Process(dsname, sel, o, nent, fst, enl); }
73  { return TProof::Process(sel, nent, o); }
74 
75  ClassDef(TProofSuperMaster,0) //PROOF control class for making submasters
76 };
77 
78 #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:151
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session...
Definition: TProofMgr.h:43
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:297
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:126
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:127
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:320
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:33
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.