|
ATLAS Offline Software
|
Go to the documentation of this file.
21 return StatusCode::SUCCESS;
31 if (!inputContainer.
isValid()) {
32 ATH_MSG_ERROR(
"Could not get pileup PRD_MultiTruthCollection " << inputContainer.
name() <<
" from store " << inputContainer.
store());
33 return StatusCode::FAILURE;
35 ATH_MSG_DEBUG(
"Found pileup PRD_MultiTruthCollection " << inputContainer.
name() <<
" in store " << inputContainer.
store());
39 ATH_CHECK(outputContainer.
record(std::make_unique<PRD_MultiTruthCollection>()));
40 if (!outputContainer.
isValid()) {
41 ATH_MSG_ERROR(
"Could not record output PRD_MultiTruthCollection " << outputContainer.
name() <<
" to store " << outputContainer.
store());
42 return StatusCode::FAILURE;
44 ATH_MSG_DEBUG(
"Recorded output PRD_MultiTruthCollection container " << outputContainer.
name() <<
" in store " << outputContainer.
store());
46 for(
const std::pair<const Identifier, HepMcParticleLink>& element : *inputContainer){
47 outputContainer->insert(std::make_pair(element.first,element.second));
49 return StatusCode::SUCCESS;
const std::string & name() const
Return the StoreGate ID for the referenced object.
CopyPRD_MultiTruthCollection(const std::string &name, ISvcLocator *pSvcLocator)
#define ATH_MSG_VERBOSE(x)
An algorithm that can be simultaneously executed in multiple threads.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< PRD_MultiTruthCollection > m_inputKey
std::string store() const
Return the name of the store holding the object we are proxying.
virtual StatusCode execute(const EventContext &ctx) const override
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::WriteHandleKey< PRD_MultiTruthCollection > m_outputKey
virtual StatusCode initialize() override