ATLAS Offline Software
|
Helper class for managing the event format for output files. More...
#include <TEventFormatRegistry.h>
Public Member Functions | |
EventFormat & | getEventFormat (const TFile *file) const |
Access the managed EventFormat object. More... | |
void | merge (const TFile *file, const EventFormat &ef) |
Merge the contents of another EventFormat object into the managed one. More... | |
Static Public Member Functions | |
static const TEventFormatRegistry & | instance () |
Access the only instance of the object in memory. More... | |
Protected Member Functions | |
TEventFormatRegistry () | |
Hidden constructor. More... | |
Protected Attributes | |
std::map< const TFile *, EventFormat > | m_eventFormats |
The process-wide event format object. More... | |
Helper class for managing the event format for output files.
If the user wants to write a single output file with multiple event-level trees, we need to keep the output EventFormat objects of the multiple TEvent instances in sync. This singleton class helps out in this.
Definition at line 26 of file TEventFormatRegistry.h.
|
protected |
Hidden constructor.
Definition at line 45 of file TEventFormatRegistry.cxx.
EventFormat & xAOD::TEventFormatRegistry::getEventFormat | ( | const TFile * | file | ) | const |
|
static |
Access the only instance of the object in memory.
Definition at line 14 of file TEventFormatRegistry.cxx.
void xAOD::TEventFormatRegistry::merge | ( | const TFile * | file, |
const EventFormat & | ef | ||
) |
Merge the contents of another EventFormat object into the managed one.
Definition at line 28 of file TEventFormatRegistry.cxx.
|
protected |
The process-wide event format object.
Definition at line 43 of file TEventFormatRegistry.h.