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 ~TSelHandleDataSet() override { }
44 Int_t Version() const override {return 2;}
45 void Begin(TTree *) override { }
46 void SlaveBegin(TTree *) override;
47 void Init(TTree *) override { }
48 Bool_t Notify() override { return kTRUE; }
49 Bool_t Process(Long64_t entry) override;
50 void SetOption(const char *option) override { fOption = option; }
51 void SetObject(TObject *obj) override { fObject = obj; }
52 void SetInputList(TList *input) override {fInput = input;}
53 TList *GetOutputList() const override { return fOutput; }
54 void SlaveTerminate() override { }
55 void Terminate() override { }
56
57 ClassDefOverride(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:69
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
A doubly linked list.
Definition TList.h:38
Mother of all ROOT objects.
Definition TObject.h:41
PROOF selector for file cache release.
void RemoveFile(const char *fn)
Physically remove the file 'fn'.
void SetInputList(TList *input) override
void SlaveBegin(TTree *) override
Init the type from the input parameters.
void SetOption(const char *option) override
void Terminate() override
TList * GetOutputList() const override
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'.
void Init(TTree *) override
void Begin(TTree *) override
void SlaveTerminate() override
Bool_t Process(Long64_t entry) override
The Process() function is called for each entry in the tree (or possibly keyed object in the case of ...
~TSelHandleDataSet() override
Int_t Version() const override
void CopyFile(const char *fn)
Copy file 'fn' to fDestDir.
Bool_t Notify() override
This method must be overridden to handle object notification (the base implementation is no-op).
void SetObject(TObject *obj) override
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:139
A TTree represents a columnar dataset.
Definition TTree.h:79