forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TSelHandleDataSet.h
61 lines (49 loc) · 2.31 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
// @(#)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. //
// //
//////////////////////////////////////////////////////////////////////////
#include <TSelector.h>
#include <TString.h>
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) { }
~TSelHandleDataSet() override { }
Int_t Version() const override {return 2;}
void Begin(TTree *) override { }
void SlaveBegin(TTree *) override;
void Init(TTree *) override { }
Bool_t Notify() override { return kTRUE; }
Bool_t Process(Long64_t entry) override;
void SetOption(const char *option) override { fOption = option; }
void SetObject(TObject *obj) override { fObject = obj; }
void SetInputList(TList *input) override {fInput = input;}
TList *GetOutputList() const override { return fOutput; }
void SlaveTerminate() override { }
void Terminate() override { }
ClassDefOverride(TSelHandleDataSet,0) //PROOF selector for event file generation
};
#endif