ATLAS Offline Software
Loading...
Searching...
No Matches
JetLinkMatcherAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JET_LINKMATCHER_ALG_H
6#define JET_LINKMATCHER_ALG_H
7
9
14
15namespace ftag {
16
18 {
19 public:
20 JetLinkMatcherAlg(const std::string& name, ISvcLocator* pSvcLocator);
21
22 // these are the functions inherited from Algorithm
23 virtual StatusCode initialize () override;
24 virtual StatusCode execute (const EventContext&) const override;
25 virtual StatusCode finalize () override;
26 private:
29 using IPLV = std::vector<IPL>;
30 using TPLV = std::vector<ElementLink<xAOD::TrackParticleContainer>>;
41 this, "targetJet", "", "target jet"
42 };
44 this, "sourceJets", {}, "source jets"
45 };
47 this, "linkName", m_targetJet, "", "name of link to match"
48 };
50 this, "isMatched", m_targetJet, "",
51 "1 if matched, 0 if not. If unspecified fail on no match"};
52 using JV = std::vector<const xAOD::IParticle*>;
53 };
54
55} // end namespace ftag
56
57#endif
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
SG::ReadHandleKeyArray< JC > m_sourceJets
virtual StatusCode execute(const EventContext &) const override
ElementLink< xAOD::IParticleContainer > IPL
VariableMule< int, JC > m_ints
virtual StatusCode initialize() override
VariableMule< double, JC > m_doubles
std::vector< IPL > IPLV
VariableMule< float, JC > m_floats
SG::ReadDecorHandleKey< JC > m_link
std::vector< ElementLink< xAOD::TrackParticleContainer > > TPLV
std::vector< const xAOD::IParticle * > JV
VariableMule< char, JC > m_chars
SG::WriteDecorHandleKey< JC > m_matchDecorator
VariableMule< TPLV, JC > m_trackLinks
SG::ReadHandleKey< JC > m_targetJet
VariableMule< uint, JC > m_uints
VariableMule< ulong, JC > m_ulongs
virtual StatusCode finalize() override
VariableMule< std::vector< char >, JC > m_charVectors
VariableMule< IPLV, JC > m_iparticles
JetLinkMatcherAlg(const std::string &name, ISvcLocator *pSvcLocator)
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
JetContainer_v1 JetContainer
Definition of the current "jet container version".