71 Info(
"TVirtualPacketizer",
"setting minimum time for a packet to %f",
78 Info(
"TVirtualPacketizer",
"setting maximum packet time for a packet to %f",
93 Error(
"TVirtualPacketizer",
"No progress status");
112 fCircProg =
new TNtupleD(
"CircNtuple",
"Circular progress info",
"tm:ev:mb:rc:al");
130 if (startProgress ==
"yes") {
140 TString saveProgressPerf(
"no");
142 if (
fProgress && saveProgressPerf ==
"yes")
144 "{Active workers, evt rate, MB read} vs processing time",
"tm:aw:er:mb:ns");
162 if (estopt ==
"current")
164 else if (estopt ==
"average")
190 const char *emsg = (
file) ? strerror(
file->GetErrno()) :
"<undef>";
191 Error(
"GetEntries",
"Cannot open file: %s (%s)",
e->GetFileName(), emsg);
196 if ( !
file->cd(
e->GetDirectory()) ) {
197 Error(
"GetEntries",
"Cannot cd to: %s",
e->GetDirectory() );
207 Error(
"GetEntries",
"Cannot find tree \"%s\" in %s",
208 e->GetObjName(),
e->GetFileName() );
268 Info(
"CreateNewPacket",
"friend: file '%s', obj:'%s'",
286 Info(
"HandleTimer",
"fProgress: %p, isDone: %d",
303 Float_t evtrti = -1., mbrti = -1.;
343 mbrti = (rc > 0 && mbs > ar[2]) ? (
Float_t) (mbs - ar[2]) / rc : 0. ;
349 Info(
"HandleTimer",
"ent:%lld, bytes:%lld, proct:%f, evtrti:%f, mbrti:%f (%f,%f)",
350 estent, estmb,
fProcTime, evtrti, mbrti, mbs, ar[2]);
376 Float_t mbsread = estmb / 1024. / 1024.;
383 }
else if (doReport) {
398 fProcTime, evtrti, mbrti, actw, acts, effs);
445 Warning(
"AddWorkers",
"Not implemented for this packetizer");
R__EXTERN TProofServ * gProofServ
R__EXTERN TProof * gProof
R__EXTERN TSystem * gSystem
void SetName(const char *name)
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Manages an element of a TDSet.
const char * GetObjName() const
virtual TList * GetListOfFriends() const
const char * GetDirectory() const
Return directory where to look for object.
virtual void AddFriend(TDSetElement *friendElement, const char *alias)
Add friend TDSetElement to this set. The friend element will be copied to this object.
const char * GetFileName() const
Describe directory structure in memory.
virtual TKey * GetKey(const char *, Short_t=9999) const
virtual TList * GetListOfKeys() const
virtual Bool_t cd(const char *path=nullptr)
Change current directory to "this" directory.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual void Add(TObject *obj)
A simple TTree restricted to a list of double variables only.
Double_t * GetArgs() const
virtual Int_t Fill()
Fill a Ntuple with current values in fArgs.
A simple TTree restricted to a list of float variables only.
Float_t * GetArgs() const
virtual Int_t Fill()
Fill a Ntuple with current values in fArgs.
void AbstractMethod(const char *method) const
Use this method to implement an "abstract" method that you don't want to leave purely abstract.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
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.
Named parameter, streamable and storable.
Container class for processing statistics.
Int_t GetActSessions() const
Float_t GetEffSessions() const
TSocket * GetSocket() const
Int_t GetProtocol() const
Bool_t IsTopMaster() const
TVirtualProofPlayer * GetPlayer() const
TObject * GetParameter(const char *par) const
Get specified parameter.
Class describing a PROOF worker server.
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
const char * Data() const
virtual TTime Now()
Get current time in milliseconds since 0:00 Jan 1 1995.
Basic time type with millisecond precision.
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.
A TTree represents a columnar dataset.
virtual void SetCircular(Long64_t maxEntries)
Enable/Disable circularity for this tree.
virtual void SetDirectory(TDirectory *dir)
Change the tree's directory.
virtual Long64_t GetEntries() const
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all branches of entry and return total number of bytes read.
The packetizer is a load balancing object created for each query.
Long64_t GetEntries(Bool_t tree, TDSetElement *e)
Get entries.
virtual Int_t GetEstEntriesProcessed(Float_t, Long64_t &ent, Long64_t &bytes, Long64_t &calls)
virtual Int_t AddWorkers(TList *workers)
Adds new workers.
virtual ~TVirtualPacketizer()
Destructor.
TProofProgressStatus * fProgressStatus
virtual Bool_t HandleTimer(TTimer *timer)
Send progress message to client.
Long64_t GetReadCalls() const
virtual Float_t GetCurrentRate(Bool_t &all)
Long64_t GetEntriesProcessed() const
virtual void StopProcess(Bool_t abort, Bool_t stoptimer=kFALSE)
Stop process.
virtual void SetInitTime()
Set the initialization time.
TVirtualPacketizer(TList *input, TProofProgressStatus *st=0)
Constructor.
virtual Int_t GetActiveWorkers()
Long64_t GetBytesRead() const
TDSetElement * CreateNewPacket(TDSetElement *base, Long64_t first, Long64_t num)
Creates a new TDSetElement from from base packet starting from the first entry with num entries.
virtual TDSetElement * GetNextPacket(TSlave *sl, TMessage *r)
Get next packet.
virtual void Progress(Long64_t total, Long64_t processed)=0
LongDouble_t Power(LongDouble_t x, LongDouble_t y)