ATLAS Offline Software
JetExternalAssocTool.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 // JetExternalAssocTool.h
6 
7 #ifndef DerivationFramework_JetExternalAssocTool_H
8 #define DerivationFramework_JetExternalAssocTool_H
9 
16 
21 #include "xAODJet/JetContainer.h"
22 
23 
24 #include <vector>
25 #include <string>
26 
27 namespace DerivationFramework{
28 
29  class JetExternalAssocTool : public extends<AthAlgTool, IAugmentationTool> {
30 
31  public:
32  JetExternalAssocTool(const std::string& t, const std::string& n, const IInterface* p);
33 
34  virtual StatusCode initialize() override final;
35  virtual StatusCode addBranches(const EventContext& ctx) const override final;
36 
37  private:
38  StatusCode TransferLink(const xAOD::Jet& jet, const xAOD::Jet& jet_external, const EventContext& ctx) const;
39 
43  Gaudi::Property<std::string> m_momentPrefix{this, "MomentPrefix", ""};
44  Gaudi::Property<std::vector<std::string>> m_VectorOfOldLinkNames{this, "ListOfOldLinkNames", {}};
45  Gaudi::Property<std::vector<std::string>> m_VectorOfNewLinkNames{this, "ListOfNewLinkNames", {}};
46  SG::WriteDecorHandleKeyArray<xAOD::JetContainer> m_dec_keys{this, "DecKeys", {}, "SG keys for external decorations"};
47 
48  Gaudi::Property<bool> m_dRMatch{this, "DeltaRMatch", false};
49  Gaudi::Property<double> m_dRCut{this, "DeltaRCut", 0.01};
50 
53  typedef std::vector<type_el> type_ghostlink;
54  };
55 
56 }
57 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::JetExternalAssocTool::m_ExternalJetCollectionName
SG::ReadHandleKey< xAOD::JetContainer > m_ExternalJetCollectionName
Definition: JetExternalAssocTool.h:42
DerivationFramework::JetExternalAssocTool::m_momentPrefix
Gaudi::Property< std::string > m_momentPrefix
Definition: JetExternalAssocTool.h:43
IAugmentationTool.h
DerivationFramework::JetExternalAssocTool::m_containerName
SG::ReadHandleKey< xAOD::JetContainer > m_containerName
Properties.
Definition: JetExternalAssocTool.h:41
DerivationFramework::JetExternalAssocTool::m_dec_keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_dec_keys
Definition: JetExternalAssocTool.h:46
DerivationFramework::JetExternalAssocTool::m_dRMatch
Gaudi::Property< bool > m_dRMatch
Definition: JetExternalAssocTool.h:48
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:45
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::JetExternalAssocTool::type_ghostlink
std::vector< type_el > type_ghostlink
Definition: JetExternalAssocTool.h:53
SG::ReadHandleKey< xAOD::JetContainer >
DerivationFramework::JetExternalAssocTool::initialize
virtual StatusCode initialize() override final
Definition: JetExternalAssocTool.cxx:21
DerivationFramework::JetExternalAssocTool::JetExternalAssocTool
JetExternalAssocTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: JetExternalAssocTool.cxx:14
DerivationFramework::JetExternalAssocTool::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: JetExternalAssocTool.cxx:45
DerivationFramework::JetExternalAssocTool::type_el
ElementLink< xAOD::IParticleContainer > type_el
decoration pointers
Definition: JetExternalAssocTool.h:52
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
DerivationFramework::JetExternalAssocTool::m_VectorOfNewLinkNames
Gaudi::Property< std::vector< std::string > > m_VectorOfNewLinkNames
Definition: JetExternalAssocTool.h:45
beamspotman.n
n
Definition: beamspotman.py:727
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::JetExternalAssocTool::TransferLink
StatusCode TransferLink(const xAOD::Jet &jet, const xAOD::Jet &jet_external, const EventContext &ctx) const
Definition: JetExternalAssocTool.cxx:137
DerivationFramework::JetExternalAssocTool::m_VectorOfOldLinkNames
Gaudi::Property< std::vector< std::string > > m_VectorOfOldLinkNames
Definition: JetExternalAssocTool.h:44
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::JetExternalAssocTool
Definition: JetExternalAssocTool.h:29
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetContainer.h
WriteDecorHandleKeyArray.h
DerivationFramework::JetExternalAssocTool::m_dRCut
Gaudi::Property< double > m_dRCut
Definition: JetExternalAssocTool.h:49