forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TSelHandleDataSet.h
65 lines (53 loc) · 2.35 KB
/
TSelHandleDataSet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// @(#)root/proof:$Id$
// Author: Sangsu Ryu 22/06/2010
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TSelHandleDataSet
#define ROOT_TSelHandleDataSet
//////////////////////////////////////////////////////////////////////////
// //
// TSelHandleDataSet //
// //
// PROOF selector for file cache release. //
// List of files to be cleaned for each node is provided by client. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TSelector
#include <TSelector.h>
#endif
#ifndef ROOT_TString
#include <TString.h>
#endif
class TList;
class TPBHandleDSType;
class TSelHandleDataSet : public TSelector {
private:
TPBHandleDSType *fType;
TString fDestDir;
void ReleaseCache(const char *fn);
void CheckCache(const char *fn);
void RemoveFile(const char *fn);
void CopyFile(const char *fn);
public :
TSelHandleDataSet() : fType(0) { }
virtual ~TSelHandleDataSet() { }
virtual Int_t Version() const {return 2;}
virtual void Begin(TTree *) { }
virtual void SlaveBegin(TTree *);
virtual void Init(TTree *) { }
virtual Bool_t Notify() { return kTRUE; }
virtual Bool_t Process(Long64_t entry);
virtual void SetOption(const char *option) { fOption = option; }
virtual void SetObject(TObject *obj) { fObject = obj; }
virtual void SetInputList(TList *input) {fInput = input;}
virtual TList *GetOutputList() const { return fOutput; }
virtual void SlaveTerminate() { }
virtual void Terminate() { }
ClassDef(TSelHandleDataSet,0) //PROOF selector for event file generation
};
#endif