39 : fSeqNum(seqnum), fStatus(kSubmitted), fUsedCPU(0.), fOptions(opt),
40 fEntries(entries),
fFirst(first),
41 fBytes(0), fParList(
"-"), fOutputList(nullptr),
42 fFinalized(false), fArchived(false), fResultFile(
"-"),
43 fPrepTime(0.), fInitTime(0.), fProcTime(0.), fMergeTime(0.),
44 fRecvTime(-1), fTermTime(-1), fNumWrks(-1), fNumMergers(-1)
75 if (!strcmp(o->
GetName(),
"varexp")) {
80 varsel.
Form(
"\"%s\";", varsel.
Data());
82 if (!strcmp(o->
GetName(),
"selection"))
86 Info(
"TQueryResult",
"selec: %s, varsel: %s", selec, varsel.
Data());
89 selec, varsel.
Data()));
103 fLibList = (pl && (strlen(pl) > 0)) ? pl :
"-";
188 if (aclicMode.
Length() > 0)
199 Info(
"SaveSelector",
"precompiled selector: just save the name");
212 "could not locate selector implementation file (%s)", selec.
Data());
221 char *
p = (
char *) strrchr(selc,
'.');
223 strlcpy(
p+1,
"h",strlen(
p));
227 "bad formatted name (%s): could not build header file name", selc);
236 "could not locate selector header file (%s)", selc);
262 Info(
"RecordEnd",
"output list cloned successfully!");
264 Warning(
"RecordEnd",
"unable to clone output list!!!");
307 if (archfile && (strlen(archfile) > 0))
318 const char *qst[] = {
319 "aborted ",
"submitted",
"running ",
"stopped ",
"completed"
329 bool full = ((strchr(opt,
'F') || strchr(opt,
'f'))) ? true :
false;
346 if (!full && (last > -1))
351 const char *fin =
fFinalized ?
"finalized" : qst[st];
352 const char *arc =
fArchived ?
"(A)" :
"";
353 Printf(
"+++ #:%d ref:\"%s:%s\" sel:%s %9s%s %s",
357 Printf(
"+++ #:%d ref:\"%s:%s\" varsel:%s %s",
372 Printf(
"+++ process: %.3f sec (CPU time: %.1f sec)", elapsed,
fUsedCPU);
389 Printf(
"+++ rate: %.1f evts/sec", rate);
403 res.
Insert(0,
"<PROOF_SandBox>/");
468 while ((o = nxoo())) {
481 out->SetOwner(
false);
522 if (!strncmp(o->
ClassName(), classname, strlen(classname)))
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
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 bytes
bool operator==(const TQueryResult &qr1, const TQueryResult &qr2)
Compare two query result instances for equality.
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
R__EXTERN TSystem * gSystem
Using a TBrowser one can browse all ROOT objects.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
TObject * Clone(const char *newname="") const override
Make a clone of an collection using the Streamer facility.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
void Set()
Set Date/Time to current time as reported by the system.
UInt_t Convert(Bool_t toGMT=kFALSE) const
Convert fDatime from TDatime format to the standard time_t format.
const char * AsString() const
Return the date & time as a string (ctime() format).
void Add(TObject *obj) override
TObject * Remove(TObject *obj) override
Remove object from the list.
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
Class supporting a collection of lines with C++ code.
virtual TObjString * AddLine(const char *text)
Add line with text in the list of lines of this macro.
virtual Int_t ReadFile(const char *filename)
Read lines in filename in this macro.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual const char * GetTitle() const
Returns title of object.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
A container class for query results.
bool fArchived
whether the query has been archived
virtual void RecordEnd(EQueryStatus status, TList *outlist=nullptr)
End of query settings.
TString fOptions
processing options + aclic mode (< opt >#< aclic_mode >)
void AddLogLine(const char *logline)
Fill log file.
TDatime fStart
time when processing started
Long64_t fFirst
first entry processed
TDatime fEnd
time when processing ended
TMacro * fSelecHdr
selector header file
void SetArchived(const char *archfile)
Set (or update) query in archived state.
TMacro * GetSelecImp() const
TQueryResult * CloneInfo()
Return an instance of TQueryResult containing only the local info fields, i.e.
void SaveSelector(const char *selec)
Save the selector header and implementation into the dedicated TMacro instances.
TList * fInputList
input list; contains also data sets, entry list, ...
virtual void SetProcessInfo(Long64_t ent, Float_t cpu=0., Long64_t siz=-1, Float_t inittime=0., Float_t proctime=0.)
Set processing info.
Float_t fProcTime
Processing time (seconds) (millisec precision)
bool fDraw
true if draw action query
Int_t fNumMergers
Number of submergers.
void Browse(TBrowser *b=nullptr) override
To support browsing of the results.
virtual bool IsDone() const
virtual void SetOutputList(TList *out, bool adopt=true)
Set / change the output list.
TObject * GetInputObject(const char *classname) const
Return first instance of class 'classname' in the input list.
TString fParList
colon-separated list of PAR loaded at fStart
TMacro * GetSelecHdr() const
bool Matches(const char *ref)
Return TRUE if reference ref matches.
Float_t fRecvTime
Transfer-to-client time (seconds) (millisec precision)
TList * fOutputList
output list
Float_t fTermTime
Terminate time (seconds) (millisec precision)
Float_t fPrepTime
Prepare time (seconds) (millisec precision)
void AddInput(TObject *obj)
Add obj to the input list.
EQueryStatus fStatus
query status
~TQueryResult() override
Destructor.
Float_t fUsedCPU
real CPU time used (seconds)
Int_t fSeqNum
query unique sequential number
TMacro * fSelecImp
selector implementation file
Long64_t fBytes
number of bytes processed
void Print(Option_t *opt="") const override
Print query content. Use opt = "F" for a full listing.
virtual void SetInputList(TList *in, bool adopt=true)
Set / change the input list.
TString fResultFile
URL of the file where results have been archived.
TMacro * fLogFile
file with log messages from the query
Long64_t fEntries
number of entries processed
Float_t fMergeTime
Merging time (seconds) (millisec precision)
Int_t fNumWrks
Number of workers at start.
TString fLibList
blank-separated list of libs loaded at fStart
bool fFinalized
whether Terminate has been run
Float_t fInitTime
Initialization time (seconds) (millisec precision)
static const char * GetMacroPath()
Get macro search path. Static utility function.
Regular expression class.
static bool IsStandardDraw(const char *selec)
Find out if this is a standard selection used for Draw actions (either TSelectorDraw,...
TString & Insert(Ssiz_t pos, const char *s)
Int_t Atoi() const
Return integer value of string.
const char * Data() const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
TString & Remove(Ssiz_t pos)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
virtual int GetPid()
Get process id.
virtual TString SplitAclicMode(const char *filename, TString &mode, TString &args, TString &io) const
This method split a filename of the form:
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual char * Which(const char *search, const char *file, EAccessMode mode=kFileExists)
Find location of file in a search path.
virtual const char * GetLibraries(const char *regexp="", const char *option="", Bool_t isRegexp=kTRUE)
Return a space separated list of loaded shared libraries.
The TTimeStamp encapsulates seconds and ns since EPOCH.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Returns x raised to the power y.