Logo ROOT  
Reference Guide
TSelVerifyDataSet.h
Go to the documentation of this file.
1// Author: Sangsu Ryu 28/06/2011
2
3/*************************************************************************
4 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_TSelVerifyDataSet
12#define ROOT_TSelVerifyDataSet
13
14//////////////////////////////////////////////////////////////////////////
15// //
16// TSelVerifyDataSet //
17// //
18// PROOF selector to parallel-process dataset on workers //
19// //
20//////////////////////////////////////////////////////////////////////////
21
22#include <TSelector.h>
23#include <TString.h>
24
25class TTree;
26class TFileCollection;
27
29
30private:
31
35
36 // File selection, Reopen and Touch options
43
44 // File processing options
49
50 // Run options
54
56
59
64
65 TFileCollection *fSubDataSet; // Sub-dataset being verified
66
67 void InitMembers();
68
69public :
70
73 virtual ~TSelVerifyDataSet() {}
74 virtual Int_t Version() const {return 1;}
75 virtual void Begin(TTree *) { }
76 virtual void SlaveBegin(TTree *tree);
77 virtual void Init(TTree *) { }
78 virtual Bool_t Notify() { return kTRUE; }
79 virtual Bool_t Process(Long64_t entry);
80 virtual void SetOption(const char *option) { fOption = option; }
81 virtual void SetObject(TObject *obj) { fObject = obj; }
82 virtual void SetInputList(TList *input) {fInput = input;}
83 virtual TList *GetOutputList() const { return fOutput; }
84 virtual void SlaveTerminate();
85 virtual void Terminate() { }
86
87 ClassDef(TSelVerifyDataSet,0) //PROOF selector for parallel dataset verification
88};
89
90#endif
bool Bool_t
Definition: RtypesCore.h:61
long long Long64_t
Definition: RtypesCore.h:71
const Bool_t kTRUE
Definition: RtypesCore.h:89
#define ClassDef(name, id)
Definition: Rtypes.h:322
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
A doubly linked list.
Definition: TList.h:44
Mother of all ROOT objects.
Definition: TObject.h:37
Selector to verify dataset in parallel on workers.
virtual void Terminate()
virtual void SetOption(const char *option)
void InitMembers()
Initialize members.
virtual ~TSelVerifyDataSet()
virtual Bool_t Process(Long64_t entry)
Process a single entry.
TSelVerifyDataSet()
Constructor.
virtual void SetObject(TObject *obj)
virtual Bool_t Notify()
This method must be overridden to handle object notification.
virtual void SlaveBegin(TTree *tree)
Worker Begin.
virtual void Init(TTree *)
virtual TList * GetOutputList() const
virtual void SlaveTerminate()
Worker Terminate.
TFileCollection * fSubDataSet
virtual void Begin(TTree *)
virtual void SetInputList(TList *input)
virtual Int_t Version() const
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition: TSelector.h:33
TList * fInput
List of objects available during processing.
Definition: TSelector.h:43
TString fOption
Option given to TTree::Process.
Definition: TSelector.h:41
TSelectorList * fOutput
! List of objects created during processing
Definition: TSelector.h:44
TObject * fObject
! Current object if processing object (vs. TTree)
Definition: TSelector.h:42
Basic string class.
Definition: TString.h:131
A TTree represents a columnar dataset.
Definition: TTree.h:78
Definition: tree.py:1