ROOT  6.06/09
Reference Guide
TSelHandleDataSet.h
Go to the documentation of this file.
1 // @(#)root/proof:$Id$
2 // Author: Sangsu Ryu 22/06/2010
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TSelHandleDataSet
13 #define ROOT_TSelHandleDataSet
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TSelHandleDataSet //
18 // //
19 // PROOF selector for file cache release. //
20 // List of files to be cleaned for each node is provided by client. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TSelector
25 #include <TSelector.h>
26 #endif
27 #ifndef ROOT_TString
28 #include <TString.h>
29 #endif
30 
31 class TList;
32 class TPBHandleDSType;
33 
34 class TSelHandleDataSet : public TSelector {
35 
36 private:
39  void ReleaseCache(const char *fn);
40  void CheckCache(const char *fn);
41  void RemoveFile(const char *fn);
42  void CopyFile(const char *fn);
43 
44 public :
45 
46  TSelHandleDataSet() : fType(0) { }
47  virtual ~TSelHandleDataSet() { }
48  virtual Int_t Version() const {return 2;}
49  virtual void Begin(TTree *) { }
50  virtual void SlaveBegin(TTree *);
51  virtual void Init(TTree *) { }
52  virtual Bool_t Notify() { return kTRUE; }
53  virtual Bool_t Process(Long64_t entry);
54  virtual void SetOption(const char *option) { fOption = option; }
55  virtual void SetObject(TObject *obj) { fObject = obj; }
56  virtual void SetInputList(TList *input) {fInput = input;}
57  virtual TList *GetOutputList() const { return fOutput; }
58  virtual void SlaveTerminate() { }
59  virtual void Terminate() { }
60 
61  ClassDef(TSelHandleDataSet,0) //PROOF selector for event file generation
62 };
63 
64 #endif
65 
TSelectorList * fOutput
Definition: TSelector.h:50
long long Long64_t
Definition: RtypesCore.h:69
virtual void SlaveBegin(TTree *)
void CheckCache(const char *fn)
Check the memory cache associated with file 'fn'.
virtual TList * GetOutputList() const
virtual Bool_t Notify()
This method must be overridden to handle object notification.
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual void SetInputList(TList *input)
void ReleaseCache(const char *fn)
Release the memory cache associated with file 'fn'.
virtual void Init(TTree *)
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void SetObject(TObject *obj)
TString fOption
Definition: TSelector.h:47
virtual void SlaveTerminate()
void RemoveFile(const char *fn)
Physically remove the file 'fn'.
A doubly linked list.
Definition: TList.h:47
TObject * fObject
Definition: TSelector.h:48
virtual Int_t Version() const
virtual Bool_t Process(Long64_t entry)
The Process() function is called for each entry in the tree (or possibly keyed object in the case of ...
Long64_t entry
virtual void Terminate()
virtual ~TSelHandleDataSet()
Mother of all ROOT objects.
Definition: TObject.h:58
TList * fInput
Current object if processing object (vs. TTree)
Definition: TSelector.h:49
A TTree object has a header with a name and a title.
Definition: TTree.h:94
TPBHandleDSType * fType
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
void CopyFile(const char *fn)
Copy file 'fn' to fDestDir.
TObject * obj
virtual void Begin(TTree *)
virtual void SetOption(const char *option)