Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
32  Int_t fFopt;
33  Int_t fSopt;
34  Int_t fRopt;
35 
36  // File selection, Reopen and Touch options
37  Bool_t fAllf;
38  Bool_t fCheckstg;
39  Bool_t fNonStgf;
40  Bool_t fReopen;
41  Bool_t fTouch;
42  Bool_t fStgf;
43 
44  // File processing options
45  Bool_t fNoaction;
46  Bool_t fFullproc;
47  Bool_t fLocateonly;
48  Bool_t fStageonly;
49 
50  // Run options
51  Bool_t fDoall;
52  Bool_t fGetlistonly;
53  Bool_t fScanlist;
54 
55  Bool_t fDbg;
56 
57  TString fMss;
58  TString fStageopts;
59 
60  Bool_t fChangedDs;
61  Int_t fTouched;
62  Int_t fOpened;
63  Int_t fDisappeared;
64 
65  TFileCollection *fSubDataSet; // Sub-dataset being verified
66 
67  void InitMembers();
68 
69 public :
70 
71  TSelVerifyDataSet(TTree *);
72  TSelVerifyDataSet();
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