xAOD::TFileMerger Class Reference

#include <TFileMerger.h>

List of all members.

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.

Detailed Description

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.

Author:
Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
Revision
676314
Date
2015-06-18 14:07:05 +0200 (Thu, 18 Jun 2015)

Member Enumeration Documentation

Types of merging that can be done

Non-xAOD trees are always merged using fast TTree merging. It's only the method for the xAOD tree merging that can be controlled here.

Enumerator:
kSlowMerge 

Merging is done using TEvent.

kFastMerge 

Merging is done using fast TTree merge.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1