23 return StatusCode::SUCCESS;
29 return StatusCode::SUCCESS;
37 if (!inputJetsHandle.
isValid() ) {
39 return StatusCode::FAILURE;
47 if(copiedjets.get() ==
nullptr || shallowaux.get() ==
nullptr) {
49 return StatusCode::FAILURE;
51 ATH_CHECK( jetsOut.
record(std::move(copiedjets), std::move(shallowaux)) );
53 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
An algorithm that can be simultaneously executed in multiple threads.
StatusCode initialize() override
SG::ReadHandleKey< JetContainer > m_jetInContainerKey
StatusCode execute(const EventContext &ctx) const override
StatusCode finalize() override
L1JetCopyAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandleKey< JetContainer > m_jetOutContainerKey
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.
ShallowCopyResult_t< T > shallowCopy(const T &cont, const EventContext &ctx)
Create a shallow copy of an existing container.