12#ifndef ROOT_TProofPlayer
13#define ROOT_TProofPlayer
300 Long64_t first,
const char *defpackunit,
301 const char *defpackdata);
434 initTime, procTime, evtrti, mbrti); }
virtual RooAbsTestStatistic * create(const char *name, const char *title, RooAbsReal &real, RooAbsData &data, const RooArgSet &projDeps, Configuration const &cfg)=0
#define ClassDefOverride(name, id)
void(* ErrorHandlerFunc_t)(int level, Bool_t abort, const char *location, const char *msg)
static unsigned int total
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Array of floats (32 bits per element).
Array of integers (32 bits per element).
Array of long64s (64 bits per element).
TClass instances represent classes, structs and namespaces in the ROOT type system.
Manages an element of a TDSet.
This class implements a data set to be used for PROOF processing.
Utility class to draw objects in the feedback list during queries.
Special iterator class used in TProofPlayer to iterate over events or objects in the packets.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
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...
Mother of all ROOT objects.
Long64_t Process(TDSet *set, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0) override
Process specified TDSet on PROOF worker.
void SetupFeedback() override
Set up feedback (may not be used in this class).
void StopFeedback() override
Stop feedback (may not be used in this class).
~TProofPlayerLocal() override
Bool_t IsClient() const override
Long64_t Process(TDSet *set, TSelector *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0) override
Process specified TDSet on PROOF worker with TSelector object The return value is -1 in case of error...
Long64_t Process(const char *selector, Long64_t nentries=-1, Option_t *option="")
Process the specified TSelector file 'nentries' times.
TProofPlayerLocal(Bool_t client=kTRUE)
~TProofPlayerRemote() override
Destructor.
ErrorHandlerFunc_t fErrorHandler
tdset for current processing
void Progress(TSlave *, TProofProgressInfo *pi) override
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.
Long64_t Finalize(Bool_t force=kFALSE, Bool_t sync=kFALSE) override
Finalize query (may not be used in this class).
void NotifyMemory(TObject *obj)
Printout the memory record after merging object 'obj' This record is used by the memory monitor.
Long64_t Process(TDSet *set, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0) override
Process specified TDSet on PROOF.
TObject * HandleHistogram(TObject *obj, Bool_t &merged)
Low statistic histograms need a special treatment when using autobin.
TList * MergeFeedback()
Merge feedback lists.
TVirtualPacketizer * fPacketizer
Bool_t JoinProcess(TList *workers) override
Prepares the given list of new workers to join a progressing process.
void AddOutput(TList *out) override
Incorporate the content of the received output list 'out' into the final output list fOutput.
void Progress(TSlave *, Long64_t total, Long64_t processed) override
TDSetElement * GetNextPacket(TSlave *slave, TMessage *r) override
Get next packet for specified slave.
Long64_t DrawSelect(TDSet *set, const char *varexp, const char *selection, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0) override
Draw (support for TChain::Draw()).
void RedirectOutput(Bool_t on=kTRUE)
Control output redirection to TProof::fLogFileW.
void SetInitTime() override
Set init time.
TString fSelectorFileName
Bool_t HandleTimer(TTimer *timer) override
Send feedback objects to client.
void Feedback(TList *objs) override
Feedback signal.
TMessage * fProcessMessage
Histogram with packets being processed (owned by TPerfStats)
Bool_t MergeOutputFiles()
Merge output in files.
Int_t Incorporate(TObject *obj, TList *out, Bool_t &merged)
Incorporate object 'newobj' in the list 'outlist'.
void StopProcess(Bool_t abort, Int_t timeout=-1) override
Stop process after this event.
Bool_t IsClient() const override
Is the player running on the client?
void SetSelectorDataMembersFromOutputList()
Set the selector's data members: find the mapping of data members to otuput list entries in the outpu...
TProofPlayerRemote(TProof *proof=0)
void Progress(Long64_t total, Long64_t processed) override
Progress signal.
Bool_t HistoSameAxis(TH1 *h0, TH1 *h1)
Return kTRUE is the histograms 'h0' and 'h1' have the same binning and ranges on the axis (i....
TProof * GetProof() const
void StoreOutput(TList *out) override
Store received output list.
void Progress(TSlave *, Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti) override
Int_t AddOutputObject(TObject *obj) override
Incorporate the received object 'obj' into the output list fOutput.
void StopFeedback() override
Stop reporting of feedback objects.
TVirtualPacketizer * GetPacketizer() const override
void SetLastMergingMsg(TObject *obj)
Set the message to be notified in case of exception.
void MergeOutput(Bool_t savememvalues=kFALSE) override
Merge objects in output the lists.
void SetMerging(Bool_t on=kTRUE) override
Switch on/off merge timer.
virtual Bool_t SendSelector(const char *selector_file)
Send the selector file(s) to master or worker nodes.
void SetupFeedback() override
Setup reporting of feedback objects.
void StoreFeedback(TObject *slave, TList *out) override
Store feedback results from the specified slave.
void StopFeedback() override
Stop feedback.
Bool_t HandleTimer(TTimer *timer) override
Handle timer event.
void SetupFeedback() override
Setup feedback.
void HandleGetTreeHeader(TMessage *mess) override
Handle tree header request.
TProofPlayerSlave(TSocket *socket=0)
Bool_t HandleTimer(TTimer *timer) override
Send progress and feedback to client.
TArrayL64 fSlaveBytesRead
void Progress(TProofProgressInfo *pi) override
Progress signal.
TProofPlayerSuperMaster(TProof *proof=0)
Long64_t Process(TDSet *set, TSelector *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0) override
Process specified TDSet on PROOF.
void Progress(Long64_t total, Long64_t processed) override
Progress signal.
Long64_t Process(TDSet *set, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0) override
Process specified TDSet on PROOF.
void SetupFeedback() override
Setup reporting of feedback objects and progress messages.
~TProofPlayerSuperMaster() override
void Progress(Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti) override
Progress signal.
TCleanup(TProofPlayer *p)
Internal class steering processing in PROOF.
Long64_t fReadCallsRun
Bytes read in this run.
TVirtualPacketizer * GetPacketizer() const override
Bool_t fCreateSelObj
the latest selector
TQueryResult * GetQueryResult(const char *ref) override
Get query result instances referenced 'ref' from the list of results.
Int_t SavePartialResults(Bool_t queryend=kFALSE, Bool_t force=kFALSE) override
Save the partial results of this query to a dedicated file under the user data directory.
virtual void StopFeedback()
Stop feedback (may not be used in this class).
void DeleteDrawFeedback(TDrawFeedback *f) override
Delete draw feedback object.
virtual Int_t DrawCanvas(TObject *obj)
Draw the object if it is a canvas.
void SetInitTime() override
static THashList * fgDrawInputPars
void StopProcess(Bool_t abort, Int_t timeout=-1) override
Stop the process after this event.
TEventIter * fEvIter
period (ms) for sending intermediate results
void ClearInput() override
Clear input list.
TTimer * fFeedbackTimer
class of the latest selector
Bool_t JoinProcess(TList *workers) override
Not implemented: meaningful only in the remote player. Returns kFALSE.
Int_t ReinitSelector(TQueryResult *qr) override
Reinitialize fSelector using the selector files in the query result.
Long64_t GetEventsProcessed() const override
TList * GetOutputList() const override
Get output list.
void StoreOutput(TList *out) override
Store output list (may not be used in this class).
void HandleGetTreeHeader(TMessage *mess) override
Handle tree header request.
Long64_t Process(TDSet *set, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0) override
Process specified TDSet on PROOF worker.
void Progress(TSlave *, Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti) override
TList * GetInputList() const override
EExitStatus GetExitStatus() const override
Bool_t IsClient() const override
void StoreFeedback(TObject *slave, TList *out) override
Store feedback list (may not be used in this class).
void Feedback(TList *objs) override
Set feedback list (may not be used in this class).
TObject * GetOutput(const char *name) const override
Get output object by name.
TDSetElement * GetNextPacket(TSlave *slave, TMessage *r) override
Get next packet (may not be used in this class).
void AddInput(TObject *inp) override
Add object to input list.
void AddOutput(TList *out) override
Incorporate output list (may not be used in this class).
void HandleRecvHisto(TMessage *mess) override
Receive histo from slave.
EExitStatus fExitStatus
status of query in progress
Long_t fFeedbackPeriod
timer for sending intermediate results
TList * fQueryResults
Events processed in this run.
void SetDispatchTimer(Bool_t on=kTRUE) override
Enable/disable the timer to dispatch pening events while processing.
void MapOutputListToDataMembers() const
void FeedBackCanvas(const char *name, Bool_t create)
Create/destroy a named canvas for feedback.
Int_t AddOutputObject(TObject *obj) override
Incorporate output object (may not be used in this class).
void SetMaxDrawQueries(Int_t max) override
void AddQueryResult(TQueryResult *q) override
Add query result to the list, making sure that there are no duplicates.
void MergeOutput(Bool_t savememvalues=kFALSE) override
Merge output (may not be used in this class).
void Progress(Long64_t total, Long64_t processed) override
Report progress (may not be used in this class).
Bool_t fSaveResultsPerPacket
Long64_t fProcessedRun
Read calls in this run.
Int_t GetDrawArgs(const char *var, const char *sel, Option_t *opt, TString &selector, TString &objname) override
Parse the arguments from var, sel and opt and fill the selector and object name accordingly.
Long64_t Finalize(Bool_t force=kFALSE, Bool_t sync=kFALSE) override
Finalize query (may not be used in this class).
TProofProgressStatus * GetProgressStatus() const override
void SetOutputFilePath(const char *fp) override
Bool_t fSavePartialResults
void SetDrawFeedbackOption(TDrawFeedback *f, Option_t *opt) override
Set draw feedback option.
TStatus * fSelStatus
iterator on events or objects
TClass * fSelectorClass
kTRUE when fSelector has been created locally
void SetCurrentQuery(TQueryResult *q) override
Set current query and save previous value.
void SetMerging(Bool_t=kTRUE) override
void Progress(TSlave *, Long64_t total, Long64_t processed) override
void RemoveQueryResult(const char *ref) override
Remove all query result instances referenced 'ref' from the list of results.
TQueryResult * fPreviousQuery
void RestorePreviousQuery() override
Int_t GetLearnEntries() override
Return the number of entries in the learning phase.
void UpdateProgressInfo() override
Update fProgressStatus.
Long64_t GetCacheSize() override
Return the size in bytes of the cache.
Long64_t DrawSelect(TDSet *set, const char *varexp, const char *selection, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0) override
Draw (may not be used in this class).
TList * GetListOfResults() const override
TProofProgressStatus * fProgressStatus
void AddEventsProcessed(Long64_t ev) override
void SetExitStatus(EExitStatus st) override
void Progress(TSlave *, TProofProgressInfo *pi) override
virtual void SetupFeedback()
Set up feedback (may not be used in this class).
void SetStopTimer(Bool_t on=kTRUE, Bool_t abort=kFALSE, Int_t timeout=0) override
Enable/disable the timer to stop/abort processing.
TDrawFeedback * CreateDrawFeedback(TProof *p) override
Draw feedback creation proxy.
void SetProcessing(Bool_t on=kTRUE)
Set processing bit according to 'on'.
TQueryResult * GetCurrentQuery() const override
Bool_t CheckMemUsage(Long64_t &mfreq, Bool_t &w80r, Bool_t &w80v, TString &wmsg)
Check the memory usage, if requested.
void UpdateAutoBin(const char *name, Double_t &xmin, Double_t &xmax, Double_t &ymin, Double_t &ymax, Double_t &zmin, Double_t &zmax) override
Update automatic binning parameters for given object "name".
void * GetSender() override
~TProofPlayer() override
Destructor.
Int_t AssertSelector(const char *selector_file)
Make sure that a valid selector object Return -1 in case of problems, 0 otherwise.
Container class for processing statistics.
Long64_t GetEntries() const
void IncEntries(Long64_t entries=1)
This class controls a Parallel ROOT Facility, PROOF, cluster.
A container class for query results.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Class describing a PROOF worker server.
This class holds the status of an ongoing operation and collects error messages.
Handles synchronous and a-synchronous timer events.
The packetizer is a load balancing object created for each query.
Abstract interface for the PROOF player.