49 if (!selfile || strlen(selfile) <= 0) {
50 Error(
"MakeSelector",
"input file path or name undefined");
57 Info(
"MakeSelector",
"selector name '%s' does not contain a '.':"
58 " no file to check, it will be loaded from a library", selfile);
60 Error(
"MakeSelector",
"could not create a %s selector", selfile);
85 Error(
"Process",
"selector object undefined");
113 PDB(kGlobal,1)
Info(
"Process",
"Enter");
118 Error(
"Process",
"No progress status");
150 Info(
"Process",
"starting new query");
170 while ((o = nxi())) {
174 inputtmp =
new TList;
188 PDB(kLoop,1)
Info(
"Process",
"Call Begin(0)");
197 Warning(
"Process",
"could not attach to histogram 'PROOF_ProcPcktHist'");
200 Info(
"Process",
"attached to histogram 'PROOF_ProcPcktHist' to record"
201 " packets being processed");
205 PDB(kPacketizer,1)
Info(
"Process",
"Create Proxy TDSet");
212 Error(
"Process",
"cannot init the packetizer");
227 if (clf.
IsDigit()) { memlogfreq = clf.
Atoi(); mrc = 0; }
229 if (memlogfreq == 0) {
231 if (memlogfreq <= 0) memlogfreq = 1;
262 PDB(kGlobal,1)
Info(
"Process",
"Calling Broadcast");
265 mesg << set << fn <<
fInput << opt << num << fst << evl << sync << enl;
266 (*fProcessMessage) << set << fn <<
fInput << opt << num << fst << evl << sync << enl;
268 PDB(kGlobal,1)
Info(
"Process",
"Broadcast called: %d workers notified", nb);
278 PDB(kGlobal,1)
Info(
"Process",
"Asynchronous processing:"
279 " activating CollectInputFrom");
288 PDB(kGlobal,1)
Info(
"Process",
"Synchronous processing: calling Collect");
344 Info(
"Finalize",
"query is undefined!");
360 Info(
"Finalize",
"problems reinitializing selector \"%s\"",
379 Warning(
"Finalize",
"undefined output list in the selector! Protocol error?");
384 PDB(kLoop,1)
Info(
"Finalize",
"Call Terminate()");
407 Warning(
"Finalize",
"current TQueryResult object is undefined!");
435 PDB(kGlobal,1)
Info(
"Finalize",
"exit");
494 Info(
"SetupFeedback",
"\"FeedbackList\" NOT found");
518 Info(
"StoreFeedback",
"Leave (empty)");
523 PDB(kFeedback,2)
Info(
"StoreFeedback",
"Create fFeedbackLists");
532 while( (obj = next()) ) {
534 Info(
"StoreFeedback",
"Find '%s'", obj->
GetName() );
539 Info(
"StoreFeedback",
"map for '%s' not found (creating)", obj->
GetName());
546 Info(
"StoreFeedback",
"removing previous value");
551 map->
Add(slave, obj);
556 Info(
"StoreFeedback",
"Leave");
R__EXTERN TProof * gProof
char * Form(const char *fmt,...)
void Printf(const char *fmt,...)
R__EXTERN TSystem * gSystem
void SetName(const char *name)
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
This class implements a data set to be used for PROOF processing.
TObject * GetEntryList() const
const char * GetType() const
const char * GetDirectory() const
const char * GetObjName() const
A List of entry numbers in a TTree or TChain.
A TEventList object is a list of selected events (entries) in a TTree.
TH1 is the base class of all histogram classes in ROOT.
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
TObject * FindObject(const char *name) const
Find object using its name.
TObject * Remove(TObject *obj)
Remove object from the list.
void Clear(Option_t *option="")
Remove all objects from the list.
virtual void Add(TObject *obj)
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
virtual void Clear(Option_t *option="")
Remove all objects from the list.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
void Add(TObject *obj)
This function may not be used (but we need to provide it since it is a pure virtual in TCollection).
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
TObject * Remove(TObject *key)
Remove the (key,value) pair with key from the map.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Collectable string class.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
static void Setup(TList *input)
Setup the PROOF input list with requested statistics and tracing options.
static void Stop()
Terminate the PROOF statistics run.
static void Start(TList *input, TList *output)
Initialize PROOF statistics run.
This class starts a PROOF session on the local machine: no daemons, client and master merged,...
Long64_t Process(TDSet *set, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process specified TDSet on PROOF.
void StoreFeedback(TObject *slave, TList *out)
Store feedback results from the specified slave.
Long64_t Finalize(Bool_t force=kFALSE, Bool_t sync=kFALSE)
Finalize a query.
void SetupFeedback()
Setup reporting of feedback objects.
Int_t MakeSelector(const char *selfile)
Create the selector object and save the relevant files and binary information in the cache so that th...
Bool_t HandleTimer(TTimer *timer)
Send feedback objects to client.
Int_t InitPacketizer(TDSet *dset, Long64_t nentries, Long64_t first, const char *defpackunit, const char *defpackdata)
Init the packetizer Return 0 on success (fPacketizer is correctly initialized), -1 on failure.
TList * MergeFeedback()
Merge feedback lists.
TVirtualPacketizer * fPacketizer
void Feedback(TList *objs)
Feedback signal.
TMessage * fProcessMessage
Histogram with packets being processed (owned by TPerfStats)
virtual void MergeOutput(Bool_t savememvalues=kFALSE)
Merge objects in output the lists.
void SetSelectorDataMembersFromOutputList()
Set the selector's data members: find the mapping of data members to otuput list entries in the outpu...
void SetMerging(Bool_t on=kTRUE)
Switch on/off merge timer.
void StopFeedback()
Stop reporting of feedback objects.
Bool_t fCreateSelObj
the latest selector
virtual Int_t DrawCanvas(TObject *obj)
Draw the object if it is a canvas.
TTimer * fFeedbackTimer
class of the latest selector
EExitStatus fExitStatus
status of query in progress
Long_t fFeedbackPeriod
timer for sending intermediate results
TClass * fSelectorClass
kTRUE when fSelector has been created locally
TProofProgressStatus * fProgressStatus
Int_t ReinitSelector(TQueryResult *qr)
Reinitialize fSelector using the selector files in the query result.
EExitStatus GetExitStatus() const
void Activate(TList *slaves=0)
Activate slave server list.
Bool_t IsParallel() const
TObject * GetParameter(const char *par) const
Get specified parameter.
void ResetMergePrg()
Reset the merge progress notificator.
Int_t Collect(const TSlave *sl, Long_t timeout=-1, Int_t endtype=-1, Bool_t deactonfail=kFALSE)
Collect responses from slave sl.
Int_t Broadcast(const TMessage &mess, TList *slaves)
Broadcast a message to all slaves in the specified list.
void SetParameter(const char *par, const char *value)
Set input list parameter.
Int_t GetParallel() const
Returns number of slaves active in parallel mode.
Long64_t Finalize(Int_t query=-1, Bool_t force=kFALSE)
Finalize the qry-th query in fQueries.
EQueryMode GetQueryMode(Option_t *mode=0) const
Find out the query mode based on the current setting and 'mode'.
virtual void SendInputDataFile()
Send the input data objects to the master; the objects are taken from the dedicated list and / or the...
TList * GetInputList()
Get input list.
virtual void SetOutputList(TList *out, Bool_t adopt=kTRUE)
Set / change the output list.
TMacro * GetSelecImp() const
virtual void SetProcessInfo(Long64_t ent, Float_t cpu=0., Long64_t siz=-1, Float_t inittime=0., Float_t proctime=0.)
Set processing info.
virtual void SetFinalized()
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
virtual TList * GetInputList() const
static Bool_t IsStandardDraw(const char *selec)
Find out if this is a standard selection used for Draw actions (either TSelectorDraw,...
virtual void SetOption(const char *option)
virtual Long64_t GetStatus() const
virtual void SetInputList(TList *input)
virtual TList * GetOutputList() const
virtual void Begin(TTree *)
static TSelector * GetSelector(const char *filename)
The code in filename is loaded (interpreted or compiled, see below), filename must contain a valid cl...
Double_t RealTime()
Stop the stopwatch (if it is running) and return the realtime (in seconds) passed between the start a...
void Stop()
Stop the stopwatch.
Int_t Atoi() const
Return integer value of string.
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
virtual Int_t RedirectOutput(const char *name, const char *mode="a", RedirectHandle_t *h=nullptr)
Redirect standard output (stdout, stderr) to the specified file.
virtual const char * Getenv(const char *env)
Get environment variable.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
Handles synchronous and a-synchronous timer events.
virtual void Start(Long_t milliSec=-1, Bool_t singleShot=kFALSE)
Starts the timer with a milliSec timeout.
void SetObject(TObject *object)
Set the object to be notified at time out.
Long64_t GetTotalEntries() const
virtual void StopProcess(Bool_t abort, Bool_t stoptimer=kFALSE)
Stop process.
Float_t GetInitTime() const
Long64_t GetBytesRead() const
static void output(int code)