74 Info(
"TVirtualPacketizer",
"setting minimum time for a packet to %f",
76 fMinPacketTime = (
Int_t) minPacketTime;
81 Info(
"TVirtualPacketizer",
"setting maximum packet time for a packet to %f",
83 fMaxPacketTime = (
Int_t) maxPacketTime;
89 fConfigParams =
new TList;
90 fConfigParams->
SetName(
"PROOF_PacketizerConfigParams");
95 if (!fProgressStatus) {
96 Error(
"TVirtualPacketizer",
"No progress status");
115 fCircProg =
new TNtupleD(
"CircNtuple",
"Circular progress info",
"tm:ev:mb:rc:al");
118 fCircProg->SetCircular(fCircN);
119 fCircProg->SetDirectory(0);
133 if (startProgress ==
"yes") {
138 fProgress->Start(period,
kFALSE);
143 TString saveProgressPerf(
"no");
145 if (fProgress && saveProgressPerf ==
"yes")
146 fProgressPerf =
new TNtuple(
"PROOF_ProgressPerfNtuple",
147 "{Active workers, evt rate, MB read} vs processing time",
"tm:aw:er:mb:ns");
164 fUseEstOpt = kEstOff;
165 if (estopt ==
"current")
166 fUseEstOpt = kEstCurrent;
167 else if (estopt ==
"average")
168 fUseEstOpt = kEstAverage;
192 if (!file || (file && file->
IsZombie())) {
193 const char *emsg = (file) ? strerror(file->
GetErrno()) :
"<undef>";
210 Error(
"GetEntries",
"Cannot find tree \"%s\" in %s",
271 Info(
"CreateNewPacket",
"friend: file '%s', obj:'%s'",
289 Info(
"HandleTimer",
"fProgress: %p, isDone: %d",
306 Float_t evtrti = -1., mbrti = -1.;
346 mbrti = (rc > 0 && mbs > ar[2]) ? (
Float_t) (mbs - ar[2]) / rc : 0. ;
352 Info(
"HandleTimer",
"ent:%lld, bytes:%lld, proct:%f, evtrti:%f, mbrti:%f (%f,%f)",
353 estent, estmb, fProcTime, evtrti, mbrti, mbs, ar[2]);
379 Float_t mbsread = estmb / 1024. / 1024.;
386 }
else if (doReport) {
401 fProcTime, evtrti, mbrti, actw, acts, effs);
448 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()
[fNvar] Array of variables
virtual Float_t GetCurrentRate(Bool_t &all)
virtual Int_t GetErrno() const
Method returning errno. Is overriden in TRFIOFile.
A simple TTree restricted to a list of double variables only.
virtual TList * GetListOfKeys() const
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
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
Basic time type with millisecond precision.
Int_t GetActSessions() 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)
Long64_t GetEntriesProcessed() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
const char * GetObjName() const
virtual void StopProcess(Bool_t abort, Bool_t stoptimer=kFALSE)
Stop process.
const char * Data() const
virtual TKey * GetKey(const char *, Short_t=9999) 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...
Float_t GetEffSessions() const
Long64_t GetBytesRead() const
TVirtualProofPlayer * GetPlayer() const
Float_t * GetArgs() const
virtual Int_t GetEstEntriesProcessed(Float_t, Long64_t &ent, Long64_t &bytes, Long64_t &calls)
void Info(const char *location, const char *msgfmt,...)
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void Error(const char *location, const char *msgfmt,...)
TObject * GetParameter(const char *par) const
Get specified parameter.
TProofProgressStatus * fProgressStatus
Named parameter, streamable and storable.
TSocket * GetSocket() const
virtual TList * GetListOfFriends() const
virtual TTime Now()
Get current time in milliseconds since 0:00 Jan 1 1995.
const char * GetFileName() const
A simple TTree restricted to a list of float variables only.
R__EXTERN TSystem * gSystem
Double_t * GetArgs() const
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
Bool_t TestBit(UInt_t f) const
void AbstractMethod(const char *method) const
Use this method to implement an "abstract" method that you don't want to leave purely abstract...
Handles synchronous and a-synchronous timer events.
Long64_t GetReadCalls() const
Int_t GetProtocol() const
void SetName(const char *name)
virtual ~TVirtualPacketizer()
Destructor.
Long64_t GetEntries(Bool_t tree, TDSetElement *e)
Get entries.
R__EXTERN TProof * gProof
virtual Int_t GetSize() const
ClassImp(TVirtualPacketizer) TVirtualPacketizer
Constructor.
Describe directory structure in memory.
virtual Int_t Fill()
[fNvar] Array of variables
virtual TDSetElement * GetNextPacket(TSlave *sl, TMessage *r)
Get next packet.
virtual void AddFriend(TDSetElement *friendElement, const char *alias)
Add friend TDSetElement to this set. The friend element will be copied to this object.
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
void SetObject(TObject *object)
Set the object to be notified at time out.
Bool_t IsTopMaster() const
virtual Int_t GetActiveWorkers()
virtual Long64_t GetEntries() const
A TTree object has a header with a name and a title.
const char * GetDirectory() const
Return directory where to look for object.
virtual Int_t AddWorkers(TList *workers)
Adds new workers.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.