TProofQueryResult.cxx

Go to the documentation of this file.
00001 // @(#)root/proof:$Id: TProofQueryResult.cxx 34755 2010-08-10 10:47:41Z rdm $
00002 // Author: G Ganis Sep 2005
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 //////////////////////////////////////////////////////////////////////////
00013 //                                                                      //
00014 // TProofQueryResult                                                    //
00015 //                                                                      //
00016 // TQueryResult version adapted to PROOF neeeds.                        //
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    // Main constructor.
00036 
00037    fNumWrks = -1;
00038    fStartLog = -1;
00039 
00040    // Add data sets and event lists to the input list
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    // Call when running starts.
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    // Add header to log file
00062    fLogFile->AddLine("+++");
00063    fLogFile->AddLine(Form("+++ Start processing query # %d (log file offset: %d)",
00064                      fSeqNum, startlog));
00065    fLogFile->AddLine("+++");
00066 }

Generated on Tue Jul 5 14:51:40 2011 for ROOT_528-00b_version by  doxygen 1.5.1