12 #ifndef ROOT_TProofPlayer 13 #define ROOT_TProofPlayer 138 const char *selector,
Option_t *option =
"",
148 const char *selection,
Option_t *option =
"",
183 {
Progress(total, processed, bytesread, initTime, procTime,
251 const char *selector,
Option_t *option =
"",
301 const char *defpackdata);
302 TList *MergeFeedback();
303 Bool_t MergeOutputFiles();
304 void NotifyMemory(
TObject *obj);
305 void SetLastMergingMsg(
TObject *obj);
306 virtual Bool_t SendSelector(
const char *selector_file);
310 void SetSelectorDataMembersFromOutputList();
314 fFeedbackLists(0), fPacketizer(0),
315 fMergeFiles(
kFALSE), fDSet(0), fErrorHandler(0),
316 fMergeTH1OneByOne(
kTRUE), fProcPackets(0),
317 fProcessMessage(0), fMergeSTW(0), fNumMergers(0)
330 const char *selection,
Option_t *option =
"",
352 {
Progress(total, processed, bytesread, initTime, procTime,
434 initTime, procTime, evtrti, mbrti); }
virtual void SetMerging(Bool_t=kTRUE)
TCleanup(TProofPlayer *p)
TProof * GetProof() const
TProofProgressStatus * fProgressStatus
TProofPlayerSuperMaster(TProof *proof=0)
virtual ~TProofPlayerSuperMaster()
Internal class steering processing in PROOF.
EExitStatus fExitStatus
status of query in progress
static constexpr double pi
Int_t AssertSelector(const char *selector_file)
Make sure that a valid selector object Return -1 in case of problems, 0 otherwise.
void StoreOutput(TList *out)
Store output list (may not be used in this class).
TQueryResult * GetCurrentQuery() const
Int_t GetLearnEntries()
Return the number of entries in the learning phase.
virtual ~TProofPlayerLocal()
Long_t fFeedbackPeriod
timer for sending intermediate results
TQueryResult * GetQueryResult(const char *ref)
Get query result instances referenced 'ref' from the list of results.
virtual Bool_t JoinProcess(TList *workers)
Not implemented: meaningful only in the remote player. Returns kFALSE.
Bool_t CheckMemUsage(Long64_t &mfreq, Bool_t &w80r, Bool_t &w80v, TString &wmsg)
Check the memory usage, if requested.
This class implements a data set to be used for PROOF processing.
Bool_t fSaveResultsPerPacket
TProofPlayer(TProof *proof=0)
Default ctor.
TQueryResult * fPreviousQuery
void AddOutput(TList *out)
Incorporate output list (may not be used in this class).
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
TString fSelectorFileName
Long64_t GetEventsProcessed() const
void RemoveQueryResult(const char *ref)
Remove all query result instances referenced 'ref' from the list of results.
void Progress(TSlave *, TProofProgressInfo *pi)
Array of floats (32 bits per element).
Long64_t GetEntries() const
void SetDispatchTimer(Bool_t on=kTRUE)
Enable/disable the timer to dispatch pening events while processing.
Array of integers (32 bits per element).
TList * GetOutputList() const
Get output list.
Int_t SavePartialResults(Bool_t queryend=kFALSE, Bool_t force=kFALSE)
Save the partial results of this query to a dedicated file under the user data directory.
TMessage * fProcessMessage
Histogram with packets being processed (owned by TPerfStats)
void SetStopTimer(Bool_t on=kTRUE, Bool_t abort=kFALSE, Int_t timeout=0)
Enable/disable the timer to stop/abort processing.
Manages an element of a TDSet.
TProofProgressStatus * GetProgressStatus() const
TProofPlayerSlave(TSocket *socket=0)
void Progress(TSlave *, Long64_t total, Long64_t processed)
#define ClassDef(name, id)
TList * GetInputList() const
void AddEventsProcessed(Long64_t ev)
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
TEventIter * fEvIter
period (ms) for sending intermediate results
This class holds the status of an ongoing operation and collects error messages.
void IncEntries(Long64_t entries=1)
void AddQueryResult(TQueryResult *q)
Add query result to the list, making sure that there are no duplicates.
virtual Bool_t HandleTimer(TTimer *timer)
Execute action in response of a timer timing out.
void DeleteDrawFeedback(TDrawFeedback *f)
Delete draw feedback object.
void Progress(TSlave *, Long64_t total, Long64_t processed)
void SetDrawFeedbackOption(TDrawFeedback *f, Option_t *opt)
Set draw feedback option.
TList * GetListOfResults() const
Long64_t fProcessedRun
Read calls in this run.
virtual Long64_t Process(TDSet *set, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process specified TDSet on PROOF.
virtual void SetupFeedback()
Set up feedback (may not be used in this class).
TClass * fSelectorClass
kTRUE when fSelector has been created locally
void Progress(TSlave *, Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti)
void SetCurrentQuery(TQueryResult *q)
Set current query and save previous value.
void SetupFeedback()
Set up feedback (may not be used in this class).
A container class for query results.
TTimer * fFeedbackTimer
class of the latest selector
void SetOutputFilePath(const char *fp)
TProofPlayerLocal(Bool_t client=kTRUE)
void ClearInput()
Clear input list.
void UpdateAutoBin(const char *name, Double_t &xmin, Double_t &xmax, Double_t &ymin, Double_t &ymax, Double_t &zmin, Double_t &zmax)
Update automatic binning parameters for given object "name".
void HandleGetTreeHeader(TMessage *mess)
Handle tree header request.
void Progress(TProofProgressInfo *pi)
Progress signal.
TDSetElement * GetNextPacket(TSlave *slave, TMessage *r)
Get next packet (may not be used in this class).
TObject * GetOutput(const char *name) const
Get output object by name.
Long64_t Process(TDSet *set, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process specified TDSet on PROOF worker.
Long64_t fReadCallsRun
Bytes read in this run.
void AddInput(TObject *inp)
Add object to input list.
virtual void StopFeedback()
Stop feedback (may not be used in this class).
Long64_t Process(TDSet *set, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process specified TDSet on PROOF worker.
virtual void SetInitTime()
Special iterator class used in TProofPlayer to iterate over events or objects in the packets...
Handles synchronous and a-synchronous timer events.
TArrayL64 fSlaveBytesRead
The ROOT global object gROOT contains a list of all defined classes.
Int_t ReinitSelector(TQueryResult *qr)
Reinitialize fSelector using the selector files in the query result.
void HandleRecvHisto(TMessage *mess)
Receive histo from slave.
TList * fQueryResults
Events processed in this run.
Long64_t Finalize(Bool_t force=kFALSE, Bool_t sync=kFALSE)
Finalize query (may not be used in this class).
TStatus * fSelStatus
iterator on events or objects
void FeedBackCanvas(const char *name, Bool_t create)
Create/destroy a named canvas for feedback.
void Progress(TSlave *, Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti)
void MapOutputListToDataMembers() const
void UpdateProgressInfo()
Update fProgressStatus.
static unsigned int total
void SetMaxDrawQueries(Int_t max)
The packetizer is a load balancing object created for each query.
virtual void MergeOutput(Bool_t savememvalues=kFALSE)
Merge output (may not be used in this class).
Long64_t Process(TDSet *set, TSelector *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process specified TDSet on PROOF worker with TSelector object The return value is -1 in case of error...
void RestorePreviousQuery()
void StopFeedback()
Stop feedback (may not be used in this class).
This class controls a Parallel ROOT Facility, PROOF, cluster.
static THashList * fgDrawInputPars
ErrorHandlerFunc_t fErrorHandler
tdset for current processing
void(* ErrorHandlerFunc_t)(int level, Bool_t abort, const char *location, const char *msg)
Long64_t DrawSelect(TDSet *set, const char *varexp, const char *selection, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Draw (may not be used in this class).
virtual Int_t DrawCanvas(TObject *obj)
Draw the object if it is a canvas.
Mother of all ROOT objects.
void Progress(Long64_t total, Long64_t processed)
Report progress (may not be used in this class).
Int_t AddOutputObject(TObject *obj)
Incorporate output object (may not be used in this class).
Utility class to draw objects in the feedback list during queries.
void Progress(Long64_t total, Long64_t processed)
Progress signal.
Array of long64s (64 bits per element).
TVirtualPacketizer * GetPacketizer() const
void StopProcess(Bool_t abort, Int_t timeout=-1)
Stop the process after this event.
TVirtualPacketizer * fPacketizer
Int_t GetDrawArgs(const char *var, const char *sel, Option_t *opt, TString &selector, TString &objname)
Parse the arguments from var, sel and opt and fill the selector and object name accordingly.
Long64_t Process(TDSet *set, TSelector *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 list (may not be used in this class).
Long64_t GetCacheSize()
Return the size in bytes of the cache.
Bool_t fCreateSelObj
the latest selector
Abstract interface for the PROOF player.
Class describing a PROOF worker server.
Container class for processing statistics.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
TVirtualPacketizer * GetPacketizer() const
void Progress(TSlave *, TProofProgressInfo *pi)
TProofPlayerRemote(TProof *proof=0)
void SetProcessing(Bool_t on=kTRUE)
Set processing bit according to 'on'.
void Progress(Long64_t total, Long64_t processed)
Progress signal.
virtual ~TProofPlayer()
Destructor.
void Progress(Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti)
Progress signal.
EExitStatus GetExitStatus() const
void Feedback(TList *objs)
Set feedback list (may not be used in this class).
void SetExitStatus(EExitStatus st)
TDrawFeedback * CreateDrawFeedback(TProof *p)
Draw feedback creation proxy.
Bool_t fSavePartialResults