21 #define TSelHandleDataSet_cxx
49 TNamed *
n =
dynamic_cast<TNamed *
>(fInput->FindObject(
"PROOF_Benchmark_DestDir"));
56 Error(
"SlaveBegin",
"could not create dir '%s'", fDestDir.Data());
60 Error(
"SlaveBegin",
"dir '%s' is not writable by this process", fDestDir.Data());
62 Info(
"SlaveBegin",
"dir '%s' successfully created", fDestDir.Data());
80 fd =
open(filename.
Data(), O_RDONLY);
83 posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED);
85 Info(
"ReleaseCache",
"file cache for file '%s' cleaned ...", filename.
Data());
87 Error(
"ReleaseCache",
"cannot open file '%s' for cache clean up; errno=%d",
88 filename.
Data(), errno);
91 Info(
"ReleaseCache",
"dummy function: file '%s' untouched ...", fn);
102 Warning(
"CheckCache",
"cache checker not implemented yet");
114 Error(
"RemoveFile",
"problems removing file '%s' ...", fn);
117 Warning(
"RemoveFile",
"'unlink' returned success but the file still exists ('%s')", fn);
121 Error(
"RemoveFile",
"file '%s' cannot removed by this process", fn);
123 Error(
"RemoveFile",
"file '%s' does not exists", fn);
137 Error(
"CopyFile",
"destination dir undefined: file '%s' not copied", fn);
144 Error(
"CopyFile",
"problems copying file '%s' to '%s'", fn, dst.
Data());
147 Info(
"CopyFile",
"file '%s' created ...", dst.
Data());
176 if (
fInput && (elemPair = dynamic_cast<TPair *>
178 if ((fCurrent = dynamic_cast<TDSetElement *>(elemPair->
Value()))) {
179 Info(
"Process",
"entry %lld: file: '%s'", entry, fCurrent->
GetName());
181 Error(
"Process",
"entry %lld: no file specified!", entry);
192 strcmp(url.GetProtocol(),
"root") && strcmp(url.GetProtocol(),
"xrd"))
193 lfname = url.GetFileAndOptions();
203 "attempt to call ReleaseCache for a non-local file: '%s'", url.GetUrl());
213 "attempt to call CheckCache for a non-local file: '%s'", url.GetUrl());
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual const char * GetTitle() const
Returns title of object.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
This class represents a WWW compatible URL.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
void CheckCache(const char *fn)
Check the memory cache associated with file 'fn'.
static const char * filename()
EHandleDSType GetType() const
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual int mkdir(const char *name, Bool_t recursive=kFALSE)
Make a file system directory.
virtual Bool_t Cp(const char *dst, Bool_t progressbar=kTRUE, UInt_t buffersize=1000000)
Allows to copy this file to the dst URL.
void ReleaseCache(const char *fn)
Release the memory cache associated with file 'fn'.
const char * Data() const
virtual int Unlink(const char *name)
Unlink, i.e. remove, a file.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
The TNamed class is the base class for all named ROOT classes.
static EFileType GetType(const char *name, Option_t *option="", TString *prefix=0)
Resolve the file type as a function of the protocol field in 'name'.
void Info(const char *location, const char *msgfmt,...)
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void Error(const char *location, const char *msgfmt,...)
void RemoveFile(const char *fn)
Physically remove the file 'fn'.
R__EXTERN TSystem * gSystem
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
virtual const char * GetName() const
Returns name of object.
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 ...
Class used by TMap to store (key,value) pairs.
void SetAnchor(const char *anchor)
ClassImp(TSelHandleDataSet) void TSelHandleDataSet
Init the type from the input parameters.
Mother of all ROOT objects.
typedef void((*Func_t)())
TList * fInput
Current object if processing object (vs. TTree)
A TTree object has a header with a name and a title.
void CopyFile(const char *fn)
Copy file 'fn' to fDestDir.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.