17 return StatusCode::FAILURE;
22 return sum_ghosts + (pjckey.key().
find(
"Ghost")!=std::string::npos);
26 ATH_MSG_ERROR(
"List of input pseudojet containers to be merged must have exactly one non-ghost collection!");
27 return StatusCode::FAILURE;
33 return StatusCode::SUCCESS;
39 auto allPseudoJets = std::make_unique<PseudoJetContainer>();
44 ATH_MSG_ERROR(
"Can't retrieve PseudoJetContainer "<< pjcKey.key() );
return StatusCode::FAILURE;
46 allPseudoJets->append( pjcHandle.
get() );
50 ATH_MSG_DEBUG(
"Merged PseudoJetContainer \"" <<
m_outcoll.key() <<
"\" has size " << allPseudoJets->size());
53 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
SG::ReadHandleKeyArray< PseudoJetContainer > m_inputPJC
virtual StatusCode execute(const EventContext &ctx) const override final
virtual StatusCode initialize() override
Initialization.
SG::WriteHandleKey< PseudoJetContainer > m_outcoll
Output collection name.
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
std::string find(const std::string &s)
return a remapped string