Logo ROOT  
Reference Guide
Go to the documentation of this file.
1// @(#)root/proof:$Id$
2// Author: G Ganis Sep 2005
5 * Copyright (C) 1995-2005, 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 *************************************************************************/
12/** \class TProofQueryResult
13\ingroup proofkernel
15TQueryResult version adapted to PROOF neeeds
19#include "TDSet.h"
20#include "TError.h"
21#include "TList.h"
22#include "TProofQueryResult.h"
23#include "TSystem.h"
24#include "TMacro.h"
29/// Main constructor.
32 Long64_t ent, Long64_t fst, TDSet *dset,
33 const char *sel, TObject *elist)
34 : TQueryResult(sn, opt, inlist, ent, fst, sel)
36 fNumWrks = -1;
37 fStartLog = -1;
39 // Add data sets and event lists to the input list
40 if (fInputList && dset)
41 fInputList->Add(dset);
42 if (fInputList && elist)
43 fInputList->Add(elist);
47/// Call when running starts.
49void TProofQueryResult::SetRunning(Int_t startlog, const char *par, Int_t nwrks)
51 Info("SetRunning", "nwrks: %d", nwrks);
54 fNumWrks = nwrks;
55 fStart.Set();
57 fParList = (par && (strlen(par) > 0)) ? par : "-";
58 fStartLog = startlog;
60 // Add header to log file
61 fLogFile->AddLine("+++");
62 fLogFile->AddLine(Form("+++ Start processing query # %d (log file offset: %d)",
63 fSeqNum, startlog));
64 fLogFile->AddLine("+++");
long long Long64_t
Definition: RtypesCore.h:80
#define ClassImp(name)
Definition: Rtypes.h:375
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
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Definition: TString.cxx:2447
This class implements a data set to be used for PROOF processing.
Definition: TDSet.h:153
void Set()
Set Date/Time to current time as reported by the system.
Definition: TDatime.cxx:289
UInt_t Convert(Bool_t toGMT=kFALSE) const
Convert fDatime from TDatime format to the standard time_t format.
Definition: TDatime.cxx:182
A doubly linked list.
Definition: TList.h:38
void Add(TObject *obj) override
Definition: TList.h:81
virtual TObjString * AddLine(const char *text)
Add line with text in the list of lines of this macro.
Definition: TMacro.cxx:141
Mother of all ROOT objects.
Definition: TObject.h:37
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Definition: TObject.cxx:867
TQueryResult version adapted to PROOF neeeds.
void SetRunning(Int_t startlog, const char *par, Int_t nwrks)
Call when running starts.
A container class for query results.
Definition: TQueryResult.h:41
TDatime fStart
time when processing started
Definition: TQueryResult.h:60
TDatime fEnd
time when processing ended
Definition: TQueryResult.h:61
TList * fInputList
input list; contains also data sets, entry list, ...
Definition: TQueryResult.h:64
TString fParList
colon-separated list of PAR loaded at fStart
Definition: TQueryResult.h:72
EQueryStatus fStatus
query status
Definition: TQueryResult.h:59
Int_t fSeqNum
query unique sequential number
Definition: TQueryResult.h:57
TMacro * fLogFile
file with log messages from the query
Definition: TQueryResult.h:68
Int_t fNumWrks
Number of workers at start.
Definition: TQueryResult.h:83