Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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:
33  TPBHandleDSType *fType;
34  TString fDestDir;
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