#include <TFileMerger.h>
Public Types | |
| enum | EMergeMode { kSlowMerge = 0, kFastMerge = 1 } |
Public Member Functions | |
| TFileMerger () | |
| Default constructor. | |
| ~TFileMerger () | |
| Destructor. | |
| TReturnCode | setOutputFileName (const std::string &name, const std::string &mode="RECREATE") |
| Set the name of the output file that should be created. | |
| TReturnCode | addFile (const std::string &name, bool copyLocally=false) |
| Add a file to the list to be merged, by name. | |
| TReturnCode | addMetaDataTool (const std::string &typeName) |
| Add a metadata tool to be used during the merging. | |
| TReturnCode | merge (EMergeMode mode=kFastMerge,::Long64_t entries=kBigNumber) |
| Execute the file merge itself. | |
| TEvent::EAuxMode | accessMode () const |
| The access mode used for slow and metadata merging. | |
| void | setAccessMode (TEvent::EAuxMode mode) |
| Set the access mode used for slow and metadata merging. | |
| int | verbosity () const |
| The current verbosity level. | |
| void | setVerbosity (int value) |
| Set verbosity level (meant for debugging mainly). | |
| const std::set< std::string > & | treesSkipped () const |
| Get the names of the trees that will be skipped from the merge. | |
| void | addTreeToSkip (const std::string &name) |
| Add a tree name that should be skipped during the merging. | |
Static Public Attributes | |
| static const ::Long64_t | kBigNumber = 1234567890 |
| Number of entries that are assumed to be never exceeded in a file. | |
Helper class for merging xAOD files
This is a slightly dubmed down version of ROOT's TFileMerger class in some respects, and is a bit smarter in other respects. It can be used by user code to merge xAOD files in a user friendly way from C++ code. It is also used by the xAODMerge application to do the heavy lifting during the merge.
1.6.1