Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TVirtualProofPlayer.h
Go to the documentation of this file.
1// @(#)root/proof:$Id$
2// Author: Fons Rademakers 15/03/07
3
4/*************************************************************************
5 * Copyright (C) 1995-2007, 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_TVirtualProofPlayer
13#define ROOT_TVirtualProofPlayer
14
15
16//////////////////////////////////////////////////////////////////////////
17// //
18// TVirtualProofPlayer //
19// //
20// Abstract interface for the PROOF player. //
21// See the concrete implementations under 'proofplayer' for details. //
22// //
23//////////////////////////////////////////////////////////////////////////
24
25#include "TObject.h"
26#include "TQObject.h"
27
28class TDSet;
29class TDSetElement;
30class TEventList;
31class TQueryResult;
32class TDrawFeedback;
33class TList;
34class TSlave;
35class TMessage;
36class TProof;
37class TSocket;
41class TSelector;
42
43class TVirtualProofPlayer : public TObject, public TQObject {
44
45public:
47 // TDSet status bits
49
51 ~TVirtualProofPlayer() override { }
52
53 virtual Long64_t Process(TDSet *set,
54 const char *selector, Option_t *option = "",
55 Long64_t nentries = -1, Long64_t firstentry = 0) = 0;
56 virtual Long64_t Process(TDSet *set,
57 TSelector *selector, Option_t *option = "",
58 Long64_t nentries = -1, Long64_t firstentry = 0) = 0;
59 virtual Bool_t JoinProcess(TList *workers) = 0;
60 virtual Long64_t Finalize(Bool_t force = kFALSE, Bool_t sync = kFALSE) = 0;
61 virtual Long64_t Finalize(TQueryResult *qr) = 0;
62 virtual Long64_t DrawSelect(TDSet *set, const char *varexp,
63 const char *selection, Option_t *option = "",
64 Long64_t nentries = -1, Long64_t firstentry = 0) = 0;
65 virtual Int_t GetDrawArgs(const char *var, const char *sel, Option_t *opt,
66 TString &selector, TString &objname) = 0;
67 virtual void HandleGetTreeHeader(TMessage *mess) = 0;
68 virtual void HandleRecvHisto(TMessage *mess) = 0;
69
70 virtual void StopProcess(Bool_t abort, Int_t timeout = -1) = 0;
71 virtual void AddInput(TObject *inp) = 0;
72 virtual void ClearInput() = 0;
73 virtual TObject *GetOutput(const char *name) const = 0;
74 virtual TList *GetOutputList() const = 0;
75 virtual TList *GetInputList() const = 0;
76 virtual TList *GetListOfResults() const = 0;
77 virtual void AddQueryResult(TQueryResult *q) = 0;
78 virtual TQueryResult *GetCurrentQuery() const = 0;
79 virtual TQueryResult *GetQueryResult(const char *ref) = 0;
80 virtual void RemoveQueryResult(const char *ref) = 0;
81 virtual void SetCurrentQuery(TQueryResult *q) = 0;
82 virtual void SetMaxDrawQueries(Int_t max) = 0;
83 virtual void RestorePreviousQuery() =0 ;
84 virtual Int_t AddOutputObject(TObject *obj) = 0;
85 virtual void AddOutput(TList *out) = 0; // Incorporate a list
86 virtual void StoreOutput(TList *out) = 0; // Adopts the list
87 virtual void StoreFeedback(TObject *slave, TList *out) = 0; // Adopts the list
88 virtual void Progress(Long64_t total, Long64_t processed) = 0; // *SIGNAL*
89 virtual void Progress(TSlave *, Long64_t total, Long64_t processed) = 0;
90 virtual void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
91 Float_t initTime, Float_t procTime,
92 Float_t evtrti, Float_t mbrti) = 0; // *SIGNAL*
93 virtual void Progress(TSlave *, Long64_t total, Long64_t processed,
94 Long64_t bytesread, Float_t initTime, Float_t procTime,
95 Float_t evtrti, Float_t mbrti) = 0; // *SIGNAL*
96 virtual void Progress(TProofProgressInfo *) = 0; // *SIGNAL*
97 virtual void Progress(TSlave *, TProofProgressInfo *) = 0; // *SIGNAL*
98 virtual void Feedback(TList *objs) = 0; // *SIGNAL*
99
103
105
107
108 virtual void UpdateAutoBin(const char *name,
111 Double_t& zmin, Double_t& zmax) = 0;
112
113 virtual void MergeOutput(Bool_t = kFALSE) = 0;
114
115 virtual Bool_t IsClient() const = 0;
116
117 virtual EExitStatus GetExitStatus() const = 0;
118 virtual void SetExitStatus(EExitStatus) = 0;
119 virtual Long64_t GetEventsProcessed() const = 0;
120 virtual void AddEventsProcessed(Long64_t ev) = 0;
122
123 virtual void SetDispatchTimer(Bool_t on = kTRUE) = 0;
124 virtual void SetStopTimer(Bool_t on = kTRUE,
125 Bool_t abort = kFALSE, Int_t timeout = 0) = 0;
126 virtual void SetInitTime() = 0;
127
128 virtual void SetMerging(Bool_t on = kTRUE) = 0;
129
130 virtual Long64_t GetCacheSize() = 0;
131 virtual Int_t GetLearnEntries() = 0;
132
133 virtual void UpdateProgressInfo() = 0;
134
135 virtual TVirtualPacketizer *GetPacketizer() const { return 0; }
136
137 virtual void SetOutputFilePath(const char *fp) = 0;
138 virtual Int_t SavePartialResults(Bool_t queryend = kFALSE, Bool_t force = kFALSE) = 0;
139
140 static TVirtualProofPlayer *Create(const char *player, TProof *p, TSocket *s = 0);
141
142 ClassDefOverride(TVirtualProofPlayer,0) // Abstract PROOF player
143};
144
145#endif
#define f(i)
Definition RSha256.hxx:104
float Float_t
Definition RtypesCore.h:57
constexpr Bool_t kFALSE
Definition RtypesCore.h:94
long long Long64_t
Definition RtypesCore.h:69
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
const char Option_t
Definition RtypesCore.h:66
#define BIT(n)
Definition Rtypes.h:85
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
static unsigned int total
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t option
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
char name[80]
Definition TGX11.cxx:110
float xmin
int nentries
float * q
float ymin
float xmax
float ymax
Manages an element of a TDSet.
Definition TDSet.h:66
This class implements a data set to be used for PROOF processing.
Definition TDSet.h:153
Utility class to draw objects in the feedback list during queries.
<div class="legacybox"><h2>Legacy Code</h2> TEventList is a legacy interface: there will be no bug fi...
Definition TEventList.h:31
A doubly linked list.
Definition TList.h:38
Mother of all ROOT objects.
Definition TObject.h:41
void ResetBit(UInt_t f)
Definition TObject.h:198
Container class for processing statistics.
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition TProof.h:316
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
Definition TQObject.h:48
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...
Definition TSelector.h:31
Class describing a PROOF worker server.
Definition TSlave.h:46
Basic string class.
Definition TString.h:139
The packetizer is a load balancing object created for each query.
Abstract interface for the PROOF player.
virtual TDSetElement * GetNextPacket(TSlave *slave, TMessage *r)=0
virtual void AddEventsProcessed(Long64_t ev)=0
virtual void AddInput(TObject *inp)=0
virtual TQueryResult * GetCurrentQuery() const =0
virtual Int_t GetDrawArgs(const char *var, const char *sel, Option_t *opt, TString &selector, TString &objname)=0
virtual void AddOutput(TList *out)=0
virtual Int_t GetLearnEntries()=0
virtual void Progress(TSlave *, Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti)=0
virtual void SetExitStatus(EExitStatus)=0
virtual TList * GetInputList() const =0
virtual TObject * GetOutput(const char *name) const =0
virtual Long64_t Process(TDSet *set, TSelector *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)=0
virtual void UpdateProgressInfo()=0
virtual void SetDrawFeedbackOption(TDrawFeedback *f, Option_t *opt)=0
virtual void SetMaxDrawQueries(Int_t max)=0
virtual Long64_t GetEventsProcessed() const =0
virtual Long64_t DrawSelect(TDSet *set, const char *varexp, const char *selection, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)=0
virtual TQueryResult * GetQueryResult(const char *ref)=0
virtual Int_t ReinitSelector(TQueryResult *qr)=0
virtual void Progress(TSlave *, TProofProgressInfo *)=0
virtual void SetDispatchTimer(Bool_t on=kTRUE)=0
virtual void Feedback(TList *objs)=0
virtual void SetMerging(Bool_t on=kTRUE)=0
virtual EExitStatus GetExitStatus() const =0
virtual Bool_t IsClient() const =0
virtual void Progress(Long64_t total, Long64_t processed)=0
virtual void AddQueryResult(TQueryResult *q)=0
virtual void MergeOutput(Bool_t=kFALSE)=0
virtual void Progress(TSlave *, Long64_t total, Long64_t processed)=0
static TVirtualProofPlayer * Create(const char *player, TProof *p, TSocket *s=0)
Create a PROOF player.
virtual void UpdateAutoBin(const char *name, Double_t &xmin, Double_t &xmax, Double_t &ymin, Double_t &ymax, Double_t &zmin, Double_t &zmax)=0
virtual Int_t AddOutputObject(TObject *obj)=0
virtual Bool_t JoinProcess(TList *workers)=0
virtual Long64_t Finalize(TQueryResult *qr)=0
virtual void Progress(Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti)=0
virtual void Progress(TProofProgressInfo *)=0
virtual TList * GetListOfResults() const =0
virtual void ClearInput()=0
virtual void HandleRecvHisto(TMessage *mess)=0
virtual void HandleGetTreeHeader(TMessage *mess)=0
virtual void RemoveQueryResult(const char *ref)=0
virtual Int_t SavePartialResults(Bool_t queryend=kFALSE, Bool_t force=kFALSE)=0
virtual void StopProcess(Bool_t abort, Int_t timeout=-1)=0
virtual Long64_t Finalize(Bool_t force=kFALSE, Bool_t sync=kFALSE)=0
virtual void SetStopTimer(Bool_t on=kTRUE, Bool_t abort=kFALSE, Int_t timeout=0)=0
virtual Long64_t Process(TDSet *set, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)=0
virtual TProofProgressStatus * GetProgressStatus() const =0
virtual void StoreFeedback(TObject *slave, TList *out)=0
virtual TDrawFeedback * CreateDrawFeedback(TProof *p)=0
virtual TVirtualPacketizer * GetPacketizer() const
virtual void StoreOutput(TList *out)=0
virtual void RestorePreviousQuery()=0
virtual void SetOutputFilePath(const char *fp)=0
virtual void DeleteDrawFeedback(TDrawFeedback *f)=0
virtual TList * GetOutputList() const =0
virtual void SetInitTime()=0
virtual void SetCurrentQuery(TQueryResult *q)=0
virtual Long64_t GetCacheSize()=0