Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
31class TDSet;
32
33class TProofSuperMaster : public TProof {
34
36
37protected:
39 void ValidateDSet(TDSet *dset);
40 virtual TVirtualProofPlayer *MakePlayer(const char *player = 0, TSocket *s = 0);
41
42public:
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
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
long long Long64_t
Definition RtypesCore.h:73
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:325
int nentries
const char *const kPROOF_ConfFile
Definition TProof.h:122
const char *const kPROOF_ConfDir
Definition TProof.h:123
static struct mg_connection * fc(struct mg_context *ctx)
Definition civetweb.c:3728
This class implements a data set to be used for PROOF processing.
Definition TDSet.h:153
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
Mother of all ROOT objects.
Definition TObject.h:37
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session,...
Definition TProofMgr.h:43
Implementation of TProof controlling PROOF federated clusters.
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'.
Bool_t StartSlaves(Bool_t)
Start up PROOF submasters.
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.
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...
virtual TVirtualProofPlayer * MakePlayer(const char *player=0, TSocket *s=0)
Construct a TProofPlayer object.
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 (....
void ValidateDSet(TDSet *dset)
Validate a TDSet.
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...
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.
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.
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.
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition TProof.h:316
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:5293
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition TSelector.h:31
Abstract interface for the PROOF player.