19 return StatusCode::FAILURE;
25 return StatusCode::SUCCESS;
34 if( !incoll.isValid() ) {
37 return StatusCode::SUCCESS;
44 auto extractor = std::make_unique<MuonSegmentExtractor>(incoll.cptr(),
m_label);
45 ATH_MSG_DEBUG(
"Created extractor: " << extractor->toString(0));
48 auto pjcont = std::make_unique<PseudoJetContainer>(std::move(extractor), vpj);
51 ATH_MSG_DEBUG(
"New PseudoJetContainer size " << pjcont->size());
52 ATH_CHECK(outcoll.record(std::move(pjcont)));
54 return StatusCode::SUCCESS;
59std::vector<fastjet::PseudoJet>
62 std::vector<fastjet::PseudoJet> vpj;
69 double xy = sqrt(
x*
x +
y*
y);
70 double r = sqrt(xy*xy +
z*
z);
76 fastjet::PseudoJet psj(px, py, pz, e);
79 vpj.back().set_user_index(
index);
89 ATH_MSG_INFO(
"Properties for MuonSegmentPseudoJetGetter " << name());
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
virtual StatusCode initialize() override final
Athena algorithm's Hooks.
Gaudi::Property< float > m_pt
Gaudi::Property< std::string > m_label
Label for the collection.
std::vector< fastjet::PseudoJet > createPseudoJets(const xAOD::MuonSegmentContainer &ms) const
virtual StatusCode execute(const EventContext &ctx) const override final
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_incoll
Input collection name.
SG::WriteHandleKey< PseudoJetContainer > m_outcoll
Output collection name.
virtual void print() const
Dump to properties to the log.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
MuonSegmentContainer_v1 MuonSegmentContainer
Definition of the current "MuonSegment container version".
MuonSegment_v1 MuonSegment
Reference the current persistent version: