![]() |
ATLAS Offline Software
|
Tool creating and maintaining xAOD::EventFormat at the end-of-events.
More...
#include <EventFormatStreamHelperTool.h>
Public Types | |
| using | sgkey_t = SG::sgkey_t |
Public Member Functions | |
Interface inherited from @c AthAlgTool | |
| StatusCode | initialize () override |
| Initialise the tool. | |
Interface inherited from @c IAthenaOutputTool | |
| StatusCode | postInitialize () override |
| Called at the end of initialize. | |
| StatusCode | preExecute () override |
| Called at the beginning of execute. | |
| StatusCode | postExecute () override |
| Called at the end of execute. | |
| StatusCode | preFinalize () override |
| Called at the beginning of finalize. | |
| StatusCode | preStream () override |
| Called at the. | |
Private Member Functions | |
| StatusCode | collectFormatMetadata () |
| sgkey_t | lookUpHash (CLID primaryClassID, const std::set< CLID > &classIDs, const std::vector< sgkey_t > &hashes) const |
| look up hash corresponding to primary class ID | |
Private Attributes | |
| ServiceHandle< IAthMetaDataSvc > | m_metadataStore |
| Use the metadata tool interface to store the EventFormat object. | |
| ServiceHandle< IClassIDSvc > | m_clidSvc |
| Connection to the CLID service. | |
| Gaudi::Property< std::string > | m_key |
| Gaudi::Property< std::vector< std::string > > | m_typeNames |
| Type names for which a metadata entry should be added. | |
| Gaudi::Property< std::vector< std::string > > | m_ignoreKeys |
| StoreGate keys that should be ignored during the metadata collection. | |
| Gaudi::Property< std::string > | m_dataHeaderKey |
| std::vector< std::regex > | m_ignoreKeyRegexes |
m_ignoreKeys, compiled once in initialize() | |
| std::vector< std::regex > | m_typeNameRegexes |
m_typeNames, compiled once in initialize() | |
| std::set< CLID > | m_warnedCLIDs |
| CLIDs about which warnings have already been printed. | |
| std::mutex | m_warnedCLIDsMutex |
Mutex for the m_warnedCLIDs variable. | |
| std::mutex | m_efMutex |
Mutex for the m_ef variable. | |
Tool creating and maintaining xAOD::EventFormat at the end-of-events.
This tool is meant to be added to every xAOD output stream, so that it would maintain xAOD::EventFormat object every time a new event is written out.
Definition at line 30 of file EventFormatStreamHelperTool.h.
Definition at line 32 of file EventFormatStreamHelperTool.h.
|
private |
Definition at line 57 of file EventFormatStreamHelperTool.cxx.
|
override |
Initialise the tool.
Definition at line 21 of file EventFormatStreamHelperTool.cxx.
|
private |
look up hash corresponding to primary class ID
We can retrieve the list of all class IDs and hashes corresponding to an element in the output stream. The two collections should be of the same size. Element one of the classIDs corresponds to element one of the hashes and so on. This function steps through the two collections and returns the hash corresponding to the classID matching the primaryClassID.
| [in] | primaryClassID | the primary class ID |
| [in] | classIDs | the set of classIDs associated with a DataHeaderElement |
| [in] | hashes | the vector of hashes associated with a DataHeaderElement |
| std::runtime_error | classIDs and hashes not the same size |
| std::range_error | primaryClassID not found in classIDs |
Definition at line 152 of file EventFormatStreamHelperTool.cxx.
|
override |
Called at the end of execute.
Definition at line 46 of file EventFormatStreamHelperTool.cxx.
|
inlineoverride |
Called at the end of initialize.
Definition at line 49 of file EventFormatStreamHelperTool.h.
|
inlineoverride |
Called at the beginning of execute.
Definition at line 52 of file EventFormatStreamHelperTool.h.
|
inlineoverride |
Called at the beginning of finalize.
Definition at line 58 of file EventFormatStreamHelperTool.h.
|
inlineoverride |
Called at the.
Definition at line 61 of file EventFormatStreamHelperTool.h.
|
private |
Connection to the CLID service.
Definition at line 71 of file EventFormatStreamHelperTool.h.
|
private |
Definition at line 87 of file EventFormatStreamHelperTool.h.
|
mutableprivate |
Mutex for the m_ef variable.
Definition at line 130 of file EventFormatStreamHelperTool.h.
|
private |
m_ignoreKeys, compiled once in initialize()
Definition at line 93 of file EventFormatStreamHelperTool.h.
|
private |
StoreGate keys that should be ignored during the metadata collection.
Definition at line 83 of file EventFormatStreamHelperTool.h.
|
private |
Definition at line 74 of file EventFormatStreamHelperTool.h.
|
private |
Use the metadata tool interface to store the EventFormat object.
Definition at line 67 of file EventFormatStreamHelperTool.h.
|
private |
m_typeNames, compiled once in initialize()
Definition at line 95 of file EventFormatStreamHelperTool.h.
|
private |
Type names for which a metadata entry should be added.
Definition at line 78 of file EventFormatStreamHelperTool.h.
|
private |
CLIDs about which warnings have already been printed.
Definition at line 125 of file EventFormatStreamHelperTool.h.
|
private |
Mutex for the m_warnedCLIDs variable.
Definition at line 127 of file EventFormatStreamHelperTool.h.