Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TProofQueryResult.cxx
Go to the documentation of this file.
1// @(#)root/proof:$Id$
2// Author: G Ganis Sep 2005
3
4/*************************************************************************
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 *************************************************************************/
11
12/** \class TProofQueryResult
13\ingroup proofkernel
14
15TQueryResult version adapted to PROOF neeeds
16
17*/
18
19#include "TDSet.h"
20#include "TError.h"
21#include "TList.h"
22#include "TProofQueryResult.h"
23#include "TSystem.h"
24#include "TMacro.h"
25
27
28////////////////////////////////////////////////////////////////////////////////
29/// Main constructor.
30
32 Long64_t ent, Long64_t fst, TDSet *dset,
33 const char *sel, TObject *elist)
34 : TQueryResult(sn, opt, inlist, ent, fst, sel)
35{
36 fNumWrks = -1;
37 fStartLog = -1;
38
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);
44}
45
46////////////////////////////////////////////////////////////////////////////////
47/// Call when running starts.
48
49void TProofQueryResult::SetRunning(Int_t startlog, const char *par, Int_t nwrks)
50{
51 Info("SetRunning", "nwrks: %d", nwrks);
52
54 fNumWrks = nwrks;
55 fStart.Set();
57 fParList = (par && (strlen(par) > 0)) ? par : "-";
58 fStartLog = startlog;
59
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("+++");
65}
long long Long64_t
Definition RtypesCore.h:69
#define ClassImp(name)
Definition Rtypes.h:377
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:2489
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:83
virtual TObjString * AddLine(const char *text)
Add line with text in the list of lines of this macro.
Definition TMacro.cxx:138
Mother of all ROOT objects.
Definition TObject.h:41
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Definition TObject.cxx:961
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.
TDatime fStart
time when processing started
TDatime fEnd
time when processing ended
TList * fInputList
input list; contains also data sets, entry list, ...
TString fParList
colon-separated list of PAR loaded at fStart
EQueryStatus fStatus
query status
Int_t fSeqNum
query unique sequential number
TMacro * fLogFile
file with log messages from the query
Int_t fNumWrks
Number of workers at start.