00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "TDSet.h"
00021 #include "TError.h"
00022 #include "TList.h"
00023 #include "TProofQueryResult.h"
00024 #include "TSystem.h"
00025
00026
00027 ClassImp(TProofQueryResult)
00028
00029
00030 TProofQueryResult::TProofQueryResult(Int_t sn, const char *opt, TList *inlist,
00031 Long64_t ent, Long64_t fst, TDSet *dset,
00032 const char *sel, TObject *elist)
00033 : TQueryResult(sn, opt, inlist, ent, fst, sel)
00034 {
00035
00036
00037 fNumWrks = -1;
00038 fStartLog = -1;
00039
00040
00041 if (fInputList && dset)
00042 fInputList->Add(dset);
00043 if (fInputList && elist)
00044 fInputList->Add(elist);
00045 }
00046
00047
00048 void TProofQueryResult::SetRunning(Int_t startlog, const char *par, Int_t nwrks)
00049 {
00050
00051
00052 Info("SetRunning", "nwrks: %d", nwrks);
00053
00054 fStatus = kRunning;
00055 fNumWrks = nwrks;
00056 fStart.Set();
00057 fEnd.Set(fStart.Convert()-1);
00058 fParList = (par && (strlen(par) > 0)) ? par : "-";
00059 fStartLog = startlog;
00060
00061
00062 fLogFile->AddLine("+++");
00063 fLogFile->AddLine(Form("+++ Start processing query # %d (log file offset: %d)",
00064 fSeqNum, startlog));
00065 fLogFile->AddLine("+++");
00066 }