Logo ROOT   6.12/07
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 
25 class TTree;
26 class TFileCollection;
27 
28 class TSelVerifyDataSet : public TSelector {
29 
30 private:
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 
69 public :
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
TSelectorList * fOutput
! List of objects created during processing
Definition: TSelector.h:44
long long Long64_t
Definition: RtypesCore.h:69
virtual Int_t Version() const
virtual void SlaveTerminate()
Worker Terminate.
TFileCollection * fSubDataSet
Basic string class.
Definition: TString.h:125
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:320
TSelVerifyDataSet()
Constructor.
TString fOption
Option given to TTree::Process.
Definition: TSelector.h:41
virtual ~TSelVerifyDataSet()
A doubly linked list.
Definition: TList.h:44
virtual void SlaveBegin(TTree *tree)
Worker Begin.
TObject * fObject
! Current object if processing object (vs. TTree)
Definition: TSelector.h:42
void InitMembers()
Initialize members.
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.
virtual TList * GetOutputList() const
Mother of all ROOT objects.
Definition: TObject.h:37
virtual void Init(TTree *)
TList * fInput
List of objects available during processing.
Definition: TSelector.h:43
Class that contains a list of TFileInfo&#39;s and accumulated meta data information about its entries...
virtual void SetOption(const char *option)
Definition: tree.py:1
A TTree object has a header with a name and a title.
Definition: TTree.h:70
Selector to verify dataset in parallel on workers.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition: TSelector.h:33
const Bool_t kTRUE
Definition: RtypesCore.h:87