72 Info(
"TVirtualPacketizer",
"setting minimum time for a packet to %f",
79 Info(
"TVirtualPacketizer",
"setting maximum packet time for a packet to %f",
94 Error(
"TVirtualPacketizer",
"No progress status");
113 fCircProg =
new TNtupleD(
"CircNtuple",
"Circular progress info",
"tm:ev:mb:rc:al");
131 if (startProgress ==
"yes") {
141 TString saveProgressPerf(
"no");
143 if (
fProgress && saveProgressPerf ==
"yes")
145 "{Active workers, evt rate, MB read} vs processing time",
"tm:aw:er:mb:ns");
163 if (estopt ==
"current")
165 else if (estopt ==
"average")
190 if (!file || (file && file->
IsZombie())) {
191 const char *emsg = (file) ? strerror(file->
GetErrno()) :
"<undef>";
208 Error(
"GetEntries",
"Cannot find tree \"%s\" in %s",
269 Info(
"CreateNewPacket",
"friend: file '%s', obj:'%s'",
287 Info(
"HandleTimer",
"fProgress: %p, isDone: %d",
304 Float_t evtrti = -1., mbrti = -1.;
344 mbrti = (rc > 0 && mbs > ar[2]) ? (
Float_t) (mbs - ar[2]) / rc : 0. ;
350 Info(
"HandleTimer",
"ent:%lld, bytes:%lld, proct:%f, evtrti:%f, mbrti:%f (%f,%f)",
351 estent, estmb, fProcTime, evtrti, mbrti, mbs, ar[2]);
377 Float_t mbsread = estmb / 1024. / 1024.;
384 }
else if (doReport) {
399 fProcTime, evtrti, mbrti, actw, acts, effs);
446 Warning(
"AddWorkers",
"Not implemented for this packetizer");
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
virtual Int_t Fill()
Fill a Ntuple with current values in fArgs.
virtual Float_t GetCurrentRate(Bool_t &all)
virtual TList * GetListOfKeys() const
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
static constexpr double pi
A simple TTree restricted to a list of double variables only.
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
TObject * GetParameter(const char *par) const
Get specified parameter.
Long64_t GetReadCalls() const
Long64_t GetBytesRead() const
TSocket * GetSocket() const
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) 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.
virtual void Progress(Long64_t total, Long64_t processed)=0
Int_t GetProtocol() const
virtual TList * GetListOfFriends() const
Basic time type with millisecond precision.
Bool_t IsTopMaster() const
virtual void SetInitTime()
Set the initialization time.
virtual Bool_t HandleTimer(TTimer *timer)
Send progress message to client.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Double_t * GetArgs() const
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
virtual void StopProcess(Bool_t abort, Bool_t stoptimer=kFALSE)
Stop process.
virtual Int_t GetErrno() const
Method returning errno. Is overriden in TRFIOFile.
Manages an element of a TDSet.
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...
TVirtualPacketizer(TList *input, TProofProgressStatus *st=0)
Constructor.
virtual void Start(Long_t milliSec=-1, Bool_t singleShot=kFALSE)
Starts the timer with a milliSec timeout.
const char * GetDirectory() const
Return directory where to look for object.
virtual Int_t GetEstEntriesProcessed(Float_t, Long64_t &ent, Long64_t &bytes, Long64_t &calls)
Int_t GetActSessions() const
Book space in a file, create I/O buffers, to fill them, (un)compress them.
TProofProgressStatus * fProgressStatus
R__ALWAYS_INLINE Bool_t IsZombie() const
const char * GetObjName() const
Named parameter, streamable and storable.
virtual TTime Now()
Get current time in milliseconds since 0:00 Jan 1 1995.
A simple TTree restricted to a list of float variables only.
R__EXTERN TSystem * gSystem
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Handles synchronous and a-synchronous timer events.
void SetName(const char *name)
virtual ~TVirtualPacketizer()
Destructor.
Long64_t GetEntries(Bool_t tree, TDSetElement *e)
Get entries.
Float_t * GetArgs() const
Float_t GetEffSessions() const
The packetizer is a load balancing object created for each query.
R__EXTERN TProof * gProof
virtual void SetDirectory(TDirectory *dir)
Change the tree's directory.
TVirtualProofPlayer * GetPlayer() const
virtual TKey * GetKey(const char *, Short_t=9999) const
Long64_t GetEntriesProcessed() const
Describe directory structure in memory.
virtual Int_t Fill()
Fill a Ntuple with current values in fArgs.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
virtual TDSetElement * GetNextPacket(TSlave *sl, TMessage *r)
Get next packet.
const char * GetFileName() const
virtual void AddFriend(TDSetElement *friendElement, const char *alias)
Add friend TDSetElement to this set. The friend element will be copied to this object.
virtual Long64_t GetEntries() const
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
R__EXTERN TProofServ * gProofServ
virtual void Add(TObject *obj)
void SetObject(TObject *object)
Set the object to be notified at time out.
virtual Int_t GetActiveWorkers()
virtual void SetCircular(Long64_t maxEntries)
Enable/Disable circularity for this tree.
A TTree object has a header with a name and a title.
virtual Int_t GetSize() const
Class describing a PROOF worker server.
Container class for processing statistics.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
void AbstractMethod(const char *method) const
Use this method to implement an "abstract" method that you don't want to leave purely abstract...
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
const char * Data() const
virtual Int_t AddWorkers(TList *workers)
Adds new workers.