![]() |
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::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 29 of file EventFormatStreamHelperTool.h.
Definition at line 31 of file EventFormatStreamHelperTool.h.
|
private |
Definition at line 48 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 143 of file EventFormatStreamHelperTool.cxx.
|
override |
Called at the end of execute.
Definition at line 37 of file EventFormatStreamHelperTool.cxx.
|
inlineoverride |
Called at the end of initialize.
Definition at line 48 of file EventFormatStreamHelperTool.h.
|
inlineoverride |
Called at the beginning of execute.
Definition at line 51 of file EventFormatStreamHelperTool.h.
|
inlineoverride |
Called at the beginning of finalize.
Definition at line 57 of file EventFormatStreamHelperTool.h.
|
inlineoverride |
Called at the.
Definition at line 60 of file EventFormatStreamHelperTool.h.
|
private |
Connection to the CLID service.
Definition at line 70 of file EventFormatStreamHelperTool.h.
|
private |
Definition at line 86 of file EventFormatStreamHelperTool.h.
|
mutableprivate |
Mutex for the m_ef variable.
Definition at line 124 of file EventFormatStreamHelperTool.h.
|
private |
StoreGate keys that should be ignored during the metadata collection.
Definition at line 82 of file EventFormatStreamHelperTool.h.
|
private |
Definition at line 73 of file EventFormatStreamHelperTool.h.
|
private |
Use the metadata tool interface to store the EventFormat object.
Definition at line 66 of file EventFormatStreamHelperTool.h.
|
private |
Type names for which a metadata entry should be added.
Definition at line 77 of file EventFormatStreamHelperTool.h.
|
private |
CLIDs about which warnings have already been printed.
Definition at line 119 of file EventFormatStreamHelperTool.h.
|
private |
Mutex for the m_warnedCLIDs variable.
Definition at line 121 of file EventFormatStreamHelperTool.h.