ROOT  6.06/09
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 #ifndef ROOT_TSelector
23 #include <TSelector.h>
24 #endif
25 #ifndef ROOT_TString
26 #include <TString.h>
27 #endif
28 
29 class TTree;
30 class TFileCollection;
31 
32 class TSelVerifyDataSet : public TSelector {
33 
34 private:
35 
39 
40  // File selection, Reopen and Touch options
47 
48  // File processing options
53 
54  // Run options
58 
60 
63 
68 
69  TFileCollection *fSubDataSet; // Sub-dataset being verified
70 
71  void InitMembers();
72 
73 public :
74 
77  virtual ~TSelVerifyDataSet() {}
78  virtual Int_t Version() const {return 1;}
79  virtual void Begin(TTree *) { }
80  virtual void SlaveBegin(TTree *tree);
81  virtual void Init(TTree *) { }
82  virtual Bool_t Notify() { return kTRUE; }
83  virtual Bool_t Process(Long64_t entry);
84  virtual void SetOption(const char *option) { fOption = option; }
85  virtual void SetObject(TObject *obj) { fObject = obj; }
86  virtual void SetInputList(TList *input) {fInput = input;}
87  virtual TList *GetOutputList() const { return fOutput; }
88  virtual void SlaveTerminate();
89  virtual void Terminate() { }
90 
91  ClassDef(TSelVerifyDataSet,0) //PROOF selector for parallel dataset verification
92 };
93 
94 #endif
TSelectorList * fOutput
Definition: TSelector.h:50
long long Long64_t
Definition: RtypesCore.h:69
virtual TList * GetOutputList() const
virtual void SlaveTerminate()
Worker Terminate.
TFileCollection * fSubDataSet
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual void SetObject(TObject *obj)
virtual void Terminate()
#define ClassDef(name, id)
Definition: Rtypes.h:254
TSelVerifyDataSet()
Constructor.
TString fOption
Definition: TSelector.h:47
virtual ~TSelVerifyDataSet()
A doubly linked list.
Definition: TList.h:47
virtual Int_t Version() const
virtual void SlaveBegin(TTree *tree)
Worker Begin.
TObject * fObject
Definition: TSelector.h:48
void InitMembers()
Initialize members.
Long64_t entry
virtual void Begin(TTree *)
virtual void SetInputList(TList *input)
virtual Bool_t Notify()
This method must be overridden to handle object notification.
virtual Bool_t Process(Long64_t entry)
Process a single entry.
Mother of all ROOT objects.
Definition: TObject.h:58
virtual void Init(TTree *)
TList * fInput
Current object if processing object (vs. TTree)
Definition: TSelector.h:49
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
virtual void SetOption(const char *option)
A TTree object has a header with a name and a title.
Definition: TTree.h:94
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition: TSelector.h:39
const Bool_t kTRUE
Definition: Rtypes.h:91
TObject * obj