![]() |
ATLAS Offline Software
|
Tool taking care of copying the event format object from file to file. More...
#include <EventFormatMetaDataTool.h>
Public Member Functions | |
EventFormatMetaDataTool (const std::string &type, const std::string &name, const IInterface *parent) | |
Regular AlgTool constructor. More... | |
virtual StatusCode | initialize () override |
Function initialising the tool. More... | |
virtual StatusCode | beginInputFile (const SG::SourceID &) override |
Function collecting the metadata from a new input file. More... | |
virtual StatusCode | endInputFile (const SG::SourceID &) override |
Function collecting the metadata from a new input file. More... | |
virtual StatusCode | metaDataStop (const SG::SourceID &) |
Wait for metadata write operations to finish, then returns SUCCESS. More... | |
virtual StatusCode | beginInputFile () |
Function called when a new input file is opened. More... | |
virtual StatusCode | endInputFile () |
Function called when the currently open input file got completely processed. More... | |
virtual StatusCode | metaDataStop () override |
Wait for metadata write operations to finish, then return SUCCESS. More... | |
Private Member Functions | |
StatusCode | collectMetaData () |
Function collecting the event format metadata from the input file. More... | |
Private Attributes | |
ServiceHandle< ::StoreGateSvc > | m_inputMetaStore |
Connection to the input metadata store. More... | |
ServiceHandle< IAthMetaDataSvc > | m_outputMetaStore |
Connection to the output metadata store. More... | |
Gaudi::Property< std::vector< std::string > > | m_keys |
(optional) list of keys to copy, all if empty, default: empty More... | |
std::mutex | m_outputMutex |
MetaDataStop need to wait for ongoing writes. More... | |
Tool taking care of copying the event format object from file to file.
This tool does the heavy lifting when fast-merging DxAOD files to make sure that the xAOD::EventFormat metadata object is propagated correctly from the input files to the output.
Definition at line 35 of file EventFormatMetaDataTool.h.
xAODMaker::EventFormatMetaDataTool::EventFormatMetaDataTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Regular AlgTool constructor.
Definition at line 20 of file EventFormatMetaDataTool.cxx.
|
virtual |
Function called when a new input file is opened.
Definition at line 47 of file EventFormatMetaDataTool.cxx.
|
inlineoverridevirtual |
Function collecting the metadata from a new input file.
Definition at line 46 of file EventFormatMetaDataTool.h.
|
private |
Function collecting the event format metadata from the input file.
Definition at line 68 of file EventFormatMetaDataTool.cxx.
|
inlinevirtual |
Function called when the currently open input file got completely processed.
Definition at line 59 of file EventFormatMetaDataTool.h.
|
inlineoverridevirtual |
Function collecting the metadata from a new input file.
Definition at line 49 of file EventFormatMetaDataTool.h.
|
overridevirtual |
|
overridevirtual |
Wait for metadata write operations to finish, then return SUCCESS.
Definition at line 60 of file EventFormatMetaDataTool.cxx.
|
inlinevirtual |
Wait for metadata write operations to finish, then returns SUCCESS.
Definition at line 52 of file EventFormatMetaDataTool.h.
|
private |
Connection to the input metadata store.
Definition at line 69 of file EventFormatMetaDataTool.h.
|
private |
(optional) list of keys to copy, all if empty, default: empty
Definition at line 77 of file EventFormatMetaDataTool.h.
|
private |
Connection to the output metadata store.
Definition at line 73 of file EventFormatMetaDataTool.h.
|
private |
MetaDataStop need to wait for ongoing writes.
Definition at line 81 of file EventFormatMetaDataTool.h.