ROOT logo
// @(#)root/proof:$Id: TProofQueryResult.cxx 34755 2010-08-10 10:47:41Z rdm $
// Author: G Ganis Sep 2005

/*************************************************************************
 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TProofQueryResult                                                    //
//                                                                      //
// TQueryResult version adapted to PROOF neeeds.                        //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include "TDSet.h"
#include "TError.h"
#include "TList.h"
#include "TProofQueryResult.h"
#include "TSystem.h"


ClassImp(TProofQueryResult)

//______________________________________________________________________________
TProofQueryResult::TProofQueryResult(Int_t sn, const char *opt, TList *inlist,
                                     Long64_t ent, Long64_t fst, TDSet *dset,
                                     const char *sel, TObject *elist)
                  : TQueryResult(sn, opt, inlist, ent, fst, sel)
{
   // Main constructor.

   fNumWrks = -1;
   fStartLog = -1;

   // Add data sets and event lists to the input list
   if (fInputList && dset)
      fInputList->Add(dset);
   if (fInputList && elist)
      fInputList->Add(elist);
}

//______________________________________________________________________________
void TProofQueryResult::SetRunning(Int_t startlog, const char *par, Int_t nwrks)
{
   // Call when running starts.

   Info("SetRunning", "nwrks: %d", nwrks);

   fStatus = kRunning;
   fNumWrks = nwrks;
   fStart.Set();
   fEnd.Set(fStart.Convert()-1);
   fParList = (par && (strlen(par) > 0)) ? par : "-";
   fStartLog = startlog;

   // Add header to log file
   fLogFile->AddLine("+++");
   fLogFile->AddLine(Form("+++ Start processing query # %d (log file offset: %d)",
                     fSeqNum, startlog));
   fLogFile->AddLine("+++");
}
 TProofQueryResult.cxx:1
 TProofQueryResult.cxx:2
 TProofQueryResult.cxx:3
 TProofQueryResult.cxx:4
 TProofQueryResult.cxx:5
 TProofQueryResult.cxx:6
 TProofQueryResult.cxx:7
 TProofQueryResult.cxx:8
 TProofQueryResult.cxx:9
 TProofQueryResult.cxx:10
 TProofQueryResult.cxx:11
 TProofQueryResult.cxx:12
 TProofQueryResult.cxx:13
 TProofQueryResult.cxx:14
 TProofQueryResult.cxx:15
 TProofQueryResult.cxx:16
 TProofQueryResult.cxx:17
 TProofQueryResult.cxx:18
 TProofQueryResult.cxx:19
 TProofQueryResult.cxx:20
 TProofQueryResult.cxx:21
 TProofQueryResult.cxx:22
 TProofQueryResult.cxx:23
 TProofQueryResult.cxx:24
 TProofQueryResult.cxx:25
 TProofQueryResult.cxx:26
 TProofQueryResult.cxx:27
 TProofQueryResult.cxx:28
 TProofQueryResult.cxx:29
 TProofQueryResult.cxx:30
 TProofQueryResult.cxx:31
 TProofQueryResult.cxx:32
 TProofQueryResult.cxx:33
 TProofQueryResult.cxx:34
 TProofQueryResult.cxx:35
 TProofQueryResult.cxx:36
 TProofQueryResult.cxx:37
 TProofQueryResult.cxx:38
 TProofQueryResult.cxx:39
 TProofQueryResult.cxx:40
 TProofQueryResult.cxx:41
 TProofQueryResult.cxx:42
 TProofQueryResult.cxx:43
 TProofQueryResult.cxx:44
 TProofQueryResult.cxx:45
 TProofQueryResult.cxx:46
 TProofQueryResult.cxx:47
 TProofQueryResult.cxx:48
 TProofQueryResult.cxx:49
 TProofQueryResult.cxx:50
 TProofQueryResult.cxx:51
 TProofQueryResult.cxx:52
 TProofQueryResult.cxx:53
 TProofQueryResult.cxx:54
 TProofQueryResult.cxx:55
 TProofQueryResult.cxx:56
 TProofQueryResult.cxx:57
 TProofQueryResult.cxx:58
 TProofQueryResult.cxx:59
 TProofQueryResult.cxx:60
 TProofQueryResult.cxx:61
 TProofQueryResult.cxx:62
 TProofQueryResult.cxx:63
 TProofQueryResult.cxx:64
 TProofQueryResult.cxx:65
 TProofQueryResult.cxx:66