Logo ROOT   6.12/07
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 #include <TSelector.h>
25 #include <TString.h>
26 
27 class TList;
28 class TPBHandleDSType;
29 
30 class TSelHandleDataSet : public TSelector {
31 
32 private:
35  void ReleaseCache(const char *fn);
36  void CheckCache(const char *fn);
37  void RemoveFile(const char *fn);
38  void CopyFile(const char *fn);
39 
40 public :
41 
42  TSelHandleDataSet() : fType(0) { }
43  virtual ~TSelHandleDataSet() { }
44  virtual Int_t Version() const {return 2;}
45  virtual void Begin(TTree *) { }
46  virtual void SlaveBegin(TTree *);
47  virtual void Init(TTree *) { }
48  virtual Bool_t Notify() { return kTRUE; }
49  virtual Bool_t Process(Long64_t entry);
50  virtual void SetOption(const char *option) { fOption = option; }
51  virtual void SetObject(TObject *obj) { fObject = obj; }
52  virtual void SetInputList(TList *input) {fInput = input;}
53  virtual TList *GetOutputList() const { return fOutput; }
54  virtual void SlaveTerminate() { }
55  virtual void Terminate() { }
56 
57  ClassDef(TSelHandleDataSet,0) //PROOF selector for event file generation
58 };
59 
60 #endif
61 
TSelectorList * fOutput
! List of objects created during processing
Definition: TSelector.h:44
long long Long64_t
Definition: RtypesCore.h:69
void CheckCache(const char *fn)
Check the memory cache associated with file &#39;fn&#39;.
virtual Bool_t Notify()
This method must be overridden to handle object notification.
Basic string class.
Definition: TString.h:125
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual Int_t Version() const
virtual void SetInputList(TList *input)
void ReleaseCache(const char *fn)
Release the memory cache associated with file &#39;fn&#39;.
virtual void Init(TTree *)
#define ClassDef(name, id)
Definition: Rtypes.h:320
virtual void SetObject(TObject *obj)
TString fOption
Option given to TTree::Process.
Definition: TSelector.h:41
virtual void SlaveTerminate()
void RemoveFile(const char *fn)
Physically remove the file &#39;fn&#39;.
A doubly linked list.
Definition: TList.h:44
TObject * fObject
! Current object if processing object (vs. TTree)
Definition: TSelector.h:42
virtual TList * GetOutputList() 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 ...
PROOF selector for file cache release.
virtual void SlaveBegin(TTree *)
Init the type from the input parameters.
virtual void Terminate()
virtual ~TSelHandleDataSet()
Mother of all ROOT objects.
Definition: TObject.h:37
TList * fInput
List of objects available during processing.
Definition: TSelector.h:43
A TTree object has a header with a name and a title.
Definition: TTree.h:70
TPBHandleDSType * fType
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition: TSelector.h:33
void CopyFile(const char *fn)
Copy file &#39;fn&#39; to fDestDir.
const Bool_t kTRUE
Definition: RtypesCore.h:87
virtual void Begin(TTree *)
virtual void SetOption(const char *option)