20#define TSelHandleDataSet_cxx
45 TObject *o =
fInput->FindObject(
"PROOF_Benchmark_HandleDSType");
55 Error(
"SlaveBegin",
"could not create dir '%s'",
fDestDir.Data());
59 Error(
"SlaveBegin",
"dir '%s' is not writable by this process",
fDestDir.Data());
61 Info(
"SlaveBegin",
"dir '%s' successfully created",
fDestDir.Data());
79 fd = open(
filename.Data(), O_RDONLY);
82 posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED);
84 Info(
"ReleaseCache",
"file cache for file '%s' cleaned ...",
filename.Data());
86 Error(
"ReleaseCache",
"cannot open file '%s' for cache clean up; errno=%d",
90 Info(
"ReleaseCache",
"dummy function: file '%s' untouched ...", fn);
101 Warning(
"CheckCache",
"cache checker not implemented yet");
112 if (
gSystem->Unlink(fn) != 0) {
113 Error(
"RemoveFile",
"problems removing file '%s' ...", fn);
115 if (!
gSystem->AccessPathName(fn))
116 Warning(
"RemoveFile",
"'unlink' returned success but the file still exists ('%s')", fn);
119 if (!
gSystem->AccessPathName(fn)) {
120 Error(
"RemoveFile",
"file '%s' cannot removed by this process", fn);
122 Error(
"RemoveFile",
"file '%s' does not exists", fn);
136 Error(
"CopyFile",
"destination dir undefined: file '%s' not copied", fn);
143 Error(
"CopyFile",
"problems copying file '%s' to '%s'", fn, dst.
Data());
146 Info(
"CopyFile",
"file '%s' created ...", dst.
Data());
176 (
fInput->FindObject(
"PROOF_CurrentElement")))) {
178 Info(
"Process",
"entry %lld: file: '%s'", entry, fCurrent->
GetName());
180 Error(
"Process",
"entry %lld: no file specified!", entry);
188 TString lfname =
gEnv->GetValue(
"Path.Localroot",
"");
202 "attempt to call ReleaseCache for a non-local file: '%s'", url.
GetUrl());
212 "attempt to call CheckCache for a non-local file: '%s'", url.
GetUrl());
222 Warning(
"Process",
"type: %d is unknown",
fType->GetType());
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
R__EXTERN TSystem * gSystem
Manages an element of a TDSet.
static EFileType GetType(const char *name, Option_t *option="", TString *prefix=nullptr)
Resolve the file type as a function of the protocol field in 'name'.
virtual Bool_t Cp(const char *dst, Bool_t progressbar=kTRUE, UInt_t buffersize=1000000)
Allows to copy this file to the dst URL.
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TObject()
TObject constructor.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Class used by TMap to store (key,value) pairs.
PROOF selector for file cache release.
void RemoveFile(const char *fn)
Physically remove the file 'fn'.
void SlaveBegin(TTree *) override
Init the type from the input parameters.
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'.
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 ...
void CopyFile(const char *fn)
Copy file 'fn' to fDestDir.
TList * fInput
List of objects available during processing.
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
A TTree represents a columnar dataset.
This class represents a WWW compatible URL.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
void SetAnchor(const char *anchor)
const char * GetFileAndOptions() const
Return the file and its options (the string specified behind the ?).
const char * GetFile() const
const char * GetProtocol() const