#include <TEventFormatRegistry.h>
Public Member Functions | |
EventFormat & | getEventFormat (const TFile *file) |
Access the managed EventFormat object. | |
void | merge (const TFile *file, const EventFormat &ef) |
Merge the contents of another EventFormat object into the managed one. | |
Static Public Member Functions | |
static TEventFormatRegistry & | instance () |
Access the only instance of the object in memory. | |
Protected Member Functions | |
TEventFormatRegistry () | |
Hidden constructor. | |
Protected Attributes | |
std::map< const TFile *, EventFormat > | m_eventFormats |
The process-wide event format object. |
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.