|
ATLAS Offline Software
|
Go to the documentation of this file.
19 return StatusCode::FAILURE;
25 return StatusCode::SUCCESS;
33 auto incoll = SG::makeHandle<xAOD::MuonSegmentContainer>(
m_incoll,ctx);
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);
50 auto outcoll = SG::makeHandle<PseudoJetContainer>(
m_outcoll,ctx);
51 ATH_MSG_DEBUG(
"New PseudoJetContainer size " << pjcont->size());
52 ATH_CHECK(outcoll.record(std::move(pjcont)));
54 return StatusCode::SUCCESS;
59 std::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);
Gaudi::Property< std::string > m_label
Label for the collection.
Class describing a MuonSegment.
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
SG::WriteHandleKey< PseudoJetContainer > m_outcoll
Output collection name.
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_incoll
Input collection name.
Gaudi::Property< float > m_pt
virtual StatusCode execute(const EventContext &ctx) const override final
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode initialize() override final
Athena algorithm's Hooks.
#define ATH_MSG_WARNING(x)
virtual void print() const
Dump to properties to the log.
std::vector< fastjet::PseudoJet > createPseudoJets(const xAOD::MuonSegmentContainer &ms) const