Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
27class TList;
28class TPBHandleDSType;
29
31
32private:
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
40public :
41
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
bool Bool_t
Definition RtypesCore.h:63
long long Long64_t
Definition RtypesCore.h:80
const Bool_t kTRUE
Definition RtypesCore.h:100
#define ClassDef(name, id)
Definition Rtypes.h:325
A doubly linked list.
Definition TList.h:38
Mother of all ROOT objects.
Definition TObject.h:41
PROOF selector for file cache release.
virtual void Terminate()
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 ...
void RemoveFile(const char *fn)
Physically remove the file 'fn'.
virtual void SlaveBegin(TTree *)
Init the type from the input parameters.
virtual void SetObject(TObject *obj)
virtual void SetInputList(TList *input)
virtual void Begin(TTree *)
virtual void SlaveTerminate()
TPBHandleDSType * fType
void ReleaseCache(const char *fn)
Release the memory cache associated with file 'fn'.
void CheckCache(const char *fn)
Check the memory cache associated with file 'fn'.
virtual void Init(TTree *)
virtual Int_t Version() const
virtual void SetOption(const char *option)
virtual TList * GetOutputList() const
virtual Bool_t Notify()
This method must be overridden to handle object notification.
void CopyFile(const char *fn)
Copy file 'fn' to fDestDir.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition TSelector.h:31
TList * fInput
List of objects available during processing.
Definition TSelector.h:41
TString fOption
Option given to TTree::Process.
Definition TSelector.h:39
TSelectorList * fOutput
! List of objects created during processing
Definition TSelector.h:42
TObject * fObject
! Current object if processing object (vs. TTree)
Definition TSelector.h:40
Basic string class.
Definition TString.h:136
A TTree represents a columnar dataset.
Definition TTree.h:79