|
ATLAS Offline Software
|
Go to the documentation of this file.
20 ATH_CHECK( m_jetInContainerKey.initialize() );
21 ATH_CHECK( m_jetOutContainerKey.initialize() );
23 return StatusCode::SUCCESS;
29 return StatusCode::SUCCESS;
37 if (!inputJetsHandle.
isValid() ) {
38 ATH_MSG_ERROR(
"evtStore() does not contain jet Collection with name "<< m_jetInContainerKey);
39 return StatusCode::FAILURE;
46 std::unique_ptr<JetContainer> copiedjets(shallowcopy.first);
47 std::unique_ptr<xAOD::ShallowAuxContainer> shallowaux(shallowcopy.second);
49 if(copiedjets.get() ==
nullptr || shallowaux.get() ==
nullptr) {
50 ATH_MSG_ERROR(
"Failed to make shallow copy of "<<m_jetInContainerKey<<
".");
51 return StatusCode::FAILURE;
53 ATH_CHECK( jetsOut.
record(std::move(copiedjets), std::move(shallowaux)) );
55 return StatusCode::SUCCESS;
StatusCode initialize() override
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StatusCode finalize() override
An algorithm that can be simultaneously executed in multiple threads.
::StatusCode StatusCode
StatusCode definition for legacy code.
L1JetCopyAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadHandleKey< JetContainer > m_jetInContainerKey
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, [[maybe_unused]] const EventContext &ctx)
Function making a shallow copy of a constant container.
StatusCode execute(const EventContext &ctx) const override
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::WriteHandleKey< JetContainer > m_jetOutContainerKey