ATLAS Offline Software
|
Tool creating xAOD::FileMetaData information. More...
#include <FileMetaDataCreatorTool.h>
Public Member Functions | |
AlgTool Methods | |
Called by AthenaOutputStream::initialize() (via ToolSvc retrieve()). | |
StatusCode | initialize () override |
StatusCode | finalize () override |
Called at the end of AthenaOutputStream::finalize() (via release()). More... | |
Methods inherited by IAthenaOutputTool | |
Called at the end of AthenaOutputStream::initialize(). | |
StatusCode | postInitialize () override |
StatusCode | preExecute () override |
Called at the beginning of AthenaOutputStream::execute(). More... | |
StatusCode | preStream () override |
Called before actually streaming objects. More... | |
StatusCode | postExecute () override |
Fill the FileMetaData with event information. More... | |
StatusCode | preFinalize () override |
Write the FileMetaData object to the MetaDataStore via the MetaDataSvc. More... | |
IIncidentListener methods | |
Gaudi::Property< std::string > | m_key |
output key for produced xAOD::FileMetaData in MetaDataStore More... | |
Gaudi::Property< std::string > | m_tagInfoKey |
Read tag information. More... | |
Gaudi::Property< std::string > | m_simInfoKey |
Read simulation parameters. More... | |
Gaudi::Property< std::string > | m_eventInfoKey |
Key for xAOD::EventInfo to update MC channel number. More... | |
Gaudi::Property< std::string > | m_dataHeaderKey |
Key for DataHeader in StoreGateSvc. More... | |
ServiceHandle< StoreGateSvc > | m_eventStore {"StoreGateSvc", name()} |
DataHeader is produced by another OutputTool, so need StoreGateSvc. More... | |
ServiceHandle< IAthMetaDataSvc > | m_metaDataSvc {"MetaDataSvc", name()} |
Use MetaDataSvc store interface to support output in EventService. More... | |
ServiceHandle< StoreGateSvc > | m_inputMetaDataStore |
Access to the input metadata store. More... | |
ServiceHandle< ITagInfoMgr > | m_tagInfoMgr |
Access to TagInfoMgr for tags. More... | |
std::unique_ptr< xAOD::FileMetaData > | m_info |
The object created for this output stream. More... | |
std::unique_ptr< xAOD::FileMetaDataAuxInfo > | m_aux |
The auxiliary containing the created object. More... | |
bool | m_filledNonEvent {false} |
FileMetaData has been filled with non-event info. More... | |
bool | m_filledEvent {false} |
FileMetaData has been filled with event information. More... | |
std::mutex | m_toolMutex |
creation of FileMetaData should happen on a single thread More... | |
void | handle (const Incident &) override |
Handle BeginInputFile incident after MetaDataSvc. More... | |
StatusCode | updateFromNonEvent () |
Update from Simulation Parameters and TagInfo. More... | |
void | set (const xAOD::FileMetaData::MetaDataType, bool) |
helper method to update FileMetaDataProperty with some checks More... | |
void | set (const xAOD::FileMetaData::MetaDataType, uint32_t) |
void | set (const xAOD::FileMetaData::MetaDataType, float) |
void | set (const xAOD::FileMetaData::MetaDataType, const std::string &) |
void | addUniqueValue (const std::string &type, uint32_t value) |
helper function to add values to lists More... | |
Tool creating xAOD::FileMetaData information.
This Athena-only tool can be used to create xAOD::FileMetaData information out of the non-ROOT-readable metadata available in the input. The FileMetaDataTool may have copied a xAOD::FileMetaData object to the MetaDataStore. If such a xAOD::FileMetaData object is found it is updated to reflect the current data type and MC channel number.
Definition at line 44 of file FileMetaDataCreatorTool.h.
|
private |
|
override |
Called at the end of AthenaOutputStream::finalize() (via release()).
Definition at line 141 of file FileMetaDataCreatorTool.cxx.
|
override |
Handle BeginInputFile incident after MetaDataSvc.
Calls updateFromNonEvent on BeginInputFile
Definition at line 62 of file FileMetaDataCreatorTool.cxx.
|
override |
Definition at line 28 of file FileMetaDataCreatorTool.cxx.
|
override |
Fill the FileMetaData with event information.
Use information from xAOD::EventInfo
to fill xAOD::FileMetaData::mcProcID and DataHeader
to set xAOD::FileMetaData::dataType
Definition at line 146 of file FileMetaDataCreatorTool.cxx.
|
override |
Definition at line 73 of file FileMetaDataCreatorTool.cxx.
|
override |
Called at the beginning of AthenaOutputStream::execute().
Definition at line 78 of file FileMetaDataCreatorTool.cxx.
|
override |
Write the FileMetaData object to the MetaDataStore via the MetaDataSvc.
Definition at line 88 of file FileMetaDataCreatorTool.cxx.
|
override |
Called before actually streaming objects.
Definition at line 83 of file FileMetaDataCreatorTool.cxx.
|
private |
helper method to update FileMetaDataProperty with some checks
Definition at line 346 of file FileMetaDataCreatorTool.cxx.
|
private |
Definition at line 392 of file FileMetaDataCreatorTool.cxx.
|
private |
Definition at line 377 of file FileMetaDataCreatorTool.cxx.
|
private |
Definition at line 362 of file FileMetaDataCreatorTool.cxx.
|
private |
Update from Simulation Parameters and TagInfo.
Definition at line 203 of file FileMetaDataCreatorTool.cxx.
|
private |
The auxiliary containing the created object.
Definition at line 159 of file FileMetaDataCreatorTool.h.
|
private |
Key for DataHeader in StoreGateSvc.
Definition at line 122 of file FileMetaDataCreatorTool.h.
|
private |
Key for xAOD::EventInfo to update MC channel number.
Definition at line 114 of file FileMetaDataCreatorTool.h.
|
private |
DataHeader is produced by another OutputTool, so need StoreGateSvc.
Definition at line 130 of file FileMetaDataCreatorTool.h.
|
private |
FileMetaData has been filled with event information.
Definition at line 165 of file FileMetaDataCreatorTool.h.
|
private |
FileMetaData has been filled with non-event info.
Definition at line 162 of file FileMetaDataCreatorTool.h.
|
private |
The object created for this output stream.
Definition at line 156 of file FileMetaDataCreatorTool.h.
|
private |
Access to the input metadata store.
Definition at line 136 of file FileMetaDataCreatorTool.h.
|
private |
output key for produced xAOD::FileMetaData in MetaDataStore
Definition at line 90 of file FileMetaDataCreatorTool.h.
|
private |
Use MetaDataSvc store interface to support output in EventService.
Definition at line 133 of file FileMetaDataCreatorTool.h.
|
private |
Read simulation parameters.
Definition at line 106 of file FileMetaDataCreatorTool.h.
|
private |
Read tag information.
Definition at line 98 of file FileMetaDataCreatorTool.h.
|
private |
Access to TagInfoMgr for tags.
Definition at line 140 of file FileMetaDataCreatorTool.h.
|
private |
creation of FileMetaData should happen on a single thread
Definition at line 168 of file FileMetaDataCreatorTool.h.