library: libProof #include "TFileMerger.h" |
TFileMerger
class description - source file - inheritance tree (.pdf)
protected:
void PrintProgress(Long64_t bytesread, Long64_t size)
public:
TFileMerger()
TFileMerger(const TFileMerger&)
virtual ~TFileMerger()
virtual Bool_t AddFile(const char* url)
static TClass* Class()
virtual Bool_t Cp(const char* src, const char* dst, Bool_t progressbar = kTRUE, UInt_t buffersize = 1000000)
virtual const char* GetCWD() const
const char* GetOutputFileName() const
virtual TClass* IsA() const
virtual Bool_t Merge()
virtual Bool_t MergeRecursive(TDirectory* target, TList* sourcelist)
TFileMerger& operator=(const TFileMerger&)
virtual Bool_t OutputFile(const char* url)
virtual void PrintFiles(Option_t* options)
virtual void Reset()
virtual Bool_t SetCWD(const char*)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TStopwatch fWatch stop watch to measure file copy speed
TList* fFileList a list of files, which shall be merged
TFile* fOutputFile the outputfile for merging
TString fOutputFilename the name of the outputfile for merging
TString fOutputFilename1 the name of the temporary outputfile for merging
TFileMerger
This class provides file copy and merging services.
It can be used to copy files (not only ROOT files), using TFile or
any of its remote file access plugins. It is therefore usefull in
a Grid environment where the files might be accessable via Castor,
rfio, dcap, etc.
The merging interface allows files containing histograms and trees
to be merged, like the standalone hadd program.
TFileMerger() : fOutputFile(0)
Create file merger object.
~TFileMerger()
Cleanup.
void PrintProgress(Long64_t bytesread, Long64_t size)
Print file copy progress.
Bool_t Cp(const char *src, const char *dst, Bool_t progressbar,
UInt_t buffersize)
Allows to copy file from src to dst URL.
void Reset()
Reset merger file list.
Bool_t AddFile(const char *url)
Add file to file merger.
Bool_t OutputFile(const char *outputfile)
Open merger output file.
void PrintFiles(Option_t *options)
Print list of files being merged.
Bool_t Merge()
Merge the files. If no output file was specified it will write into
the file "FileMerger.root" in the working directory. Returns true
on success, false in case of error.
Bool_t MergeRecursive(TDirectory *target, TList *sourcelist)
Recursively merge objects in the ROOT files.
Inline Functions
const char* GetOutputFileName() const
Bool_t SetCWD(const char*)
const char* GetCWD() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TFileMerger TFileMerger(const TFileMerger&)
TFileMerger& operator=(const TFileMerger&)
Author: Andreas Peters + Fons Rademakers 26/5/2005
Last update: root/proof:$Name: $:$Id: TFileMerger.cxx,v 1.3 2005/06/10 18:01:36 rdm Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.