ATLAS Offline Software
|
Factor out the pieces dealing with writing to meta data. More...
Public Member Functions | |
StatusCode | initialize (ServiceHandle< StoreGateSvc > &metaStore, const std::string &metaName) |
StatusCode | maybeWrite (uint32_t mcChannelNumber, const HepMC::GenEvent &genEvt, const MetadataFields &metaFields) |
Private Types | |
typedef std::lock_guard< std::mutex > | lock_t |
Private Attributes | |
std::mutex | m_mutex |
Mutex to control access to meta data writing. More... | |
xAOD::TruthMetaDataContainer * | m_tmd = nullptr |
The meta data container to be written out. More... | |
std::unordered_set< uint32_t > | m_existingMetaDataChan |
Set for tracking the mc channels for which we already added meta data. More... | |
Factor out the pieces dealing with writing to meta data.
This will be non-const, so need to protect with a mutex.
Definition at line 94 of file xAODTruthCnvAlg.h.
|
private |
Definition at line 106 of file xAODTruthCnvAlg.h.
StatusCode xAODMaker::xAODTruthCnvAlg::MetaDataWriter::initialize | ( | ServiceHandle< StoreGateSvc > & | metaStore, |
const std::string & | metaName | ||
) |
Definition at line 610 of file xAODTruthCnvAlg.cxx.
StatusCode xAODMaker::xAODTruthCnvAlg::MetaDataWriter::maybeWrite | ( | uint32_t | mcChannelNumber, |
const HepMC::GenEvent & | genEvt, | ||
const MetadataFields & | metaFields | ||
) |
Definition at line 629 of file xAODTruthCnvAlg.cxx.
|
private |
Set for tracking the mc channels for which we already added meta data.
Definition at line 112 of file xAODTruthCnvAlg.h.
|
private |
Mutex to control access to meta data writing.
Definition at line 105 of file xAODTruthCnvAlg.h.
|
private |
The meta data container to be written out.
Definition at line 109 of file xAODTruthCnvAlg.h.