ATLAS Offline Software
TEventFormatRegistry.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef XAODROOTACCESS_TOOLS_TEVENTFORMATREGISTRY_H
8 #define XAODROOTACCESS_TOOLS_TEVENTFORMATREGISTRY_H
9 
10 // EDM include(s):
12 
13 // Forward declaration(s):
14 class TFile;
15 
16 namespace xAOD {
17 
27 
28  public:
30  static const TEventFormatRegistry& instance();
31 
33  EventFormat& getEventFormat( const TFile* file ) const;
34 
36  void merge( const TFile* file, const EventFormat& ef );
37 
38  protected:
41 
43  std::map< const TFile*, EventFormat > m_eventFormats;
44 
45  }; // class TEventFormatRegistry
46 
47 } // namespace xAOD
48 
49 #endif // XAODROOTACCESS_TOOLS_TEVENTFORMATREGISTRY_H
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::TEventFormatRegistry::m_eventFormats
std::map< const TFile *, EventFormat > m_eventFormats
The process-wide event format object.
Definition: TEventFormatRegistry.h:43
xAOD::TEventFormatRegistry
Helper class for managing the event format for output files.
Definition: TEventFormatRegistry.h:26
file
TFile * file
Definition: tile_monitor.h:29
xAOD::TEventFormatRegistry::instance
static const TEventFormatRegistry & instance()
Access the only instance of the object in memory.
Definition: TEventFormatRegistry.cxx:14
EventFormat.h
xAOD::EventFormat_v1
Event format metadata for xAOD files.
Definition: EventFormat_v1.h:38
xAOD::TEventFormatRegistry::getEventFormat
EventFormat & getEventFormat(const TFile *file) const
Access the managed EventFormat object.
Definition: TEventFormatRegistry.cxx:20
xAOD::TEventFormatRegistry::merge
void merge(const TFile *file, const EventFormat &ef)
Merge the contents of another EventFormat object into the managed one.
Definition: TEventFormatRegistry.cxx:28
xAOD::TEventFormatRegistry::TEventFormatRegistry
TEventFormatRegistry()
Hidden constructor.
Definition: TEventFormatRegistry.cxx:45
LheEventFiller_Common.ef
ef
Definition: SFGen_i/share/common/LheEventFiller_Common.py:7