ATLAS Offline Software
JetExternalAssocTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 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 
19 #include "GaudiKernel/ToolHandle.h"
21 
22 #include "xAODJet/JetContainer.h"
23 
24 #include "TObjArray.h"
25 #include "TObjString.h"
26 #include <vector>
27 #include <string>
28 
29 namespace DerivationFramework{
30 
32 
33  public:
34  JetExternalAssocTool(const std::string& t, const std::string& n, const IInterface* p);
35 
38  virtual StatusCode addBranches() const;
39 
40  bool TransferLink(const xAOD::Jet& jet, const xAOD::Jet& jet_external) const;
41 
42  private:
44  std::string m_momentPrefix;
45  std::string m_containerName;
46 
48  std::vector<std::string> m_VectorOfOldLinkNames;
49  std::vector<std::string> m_VectorOfNewLinkNames;
50 
51  bool m_dRMatch;
52  double m_dRCut;
53 
56  typedef std::vector<type_el> type_ghostlink;
57 
58  SG::WriteDecorHandleKeyArray<xAOD::JetContainer> m_dec_keys{this, "DecKeys", {}, "SG keys for external decorations"};
59 
60  };
61 
62 }
63 #endif
DerivationFramework::JetExternalAssocTool::m_momentPrefix
std::string m_momentPrefix
Properties.
Definition: JetExternalAssocTool.h:44
DerivationFramework::JetExternalAssocTool::m_ExternalJetCollectionName
std::string m_ExternalJetCollectionName
Definition: JetExternalAssocTool.h:47
IAugmentationTool.h
DerivationFramework::JetExternalAssocTool::m_dec_keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_dec_keys
Definition: JetExternalAssocTool.h:58
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::JetExternalAssocTool::type_ghostlink
std::vector< type_el > type_ghostlink
Definition: JetExternalAssocTool.h:56
DerivationFramework::JetExternalAssocTool::JetExternalAssocTool
JetExternalAssocTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: JetExternalAssocTool.cxx:14
DerivationFramework::JetExternalAssocTool::TransferLink
bool TransferLink(const xAOD::Jet &jet, const xAOD::Jet &jet_external) const
Definition: JetExternalAssocTool.cxx:160
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::JetExternalAssocTool::type_el
ElementLink< xAOD::IParticleContainer > type_el
decoration pointers
Definition: JetExternalAssocTool.h:55
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DerivationFramework::JetExternalAssocTool::m_VectorOfNewLinkNames
std::vector< std::string > m_VectorOfNewLinkNames
Definition: JetExternalAssocTool.h:49
AthAlgTool.h
DerivationFramework::JetExternalAssocTool::m_dRCut
double m_dRCut
Definition: JetExternalAssocTool.h:52
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::JetExternalAssocTool::m_dRMatch
bool m_dRMatch
Definition: JetExternalAssocTool.h:51
DerivationFramework::JetExternalAssocTool
Definition: JetExternalAssocTool.h:31
DerivationFramework::JetExternalAssocTool::finalize
StatusCode finalize()
Definition: JetExternalAssocTool.cxx:60
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetContainer.h
WriteDecorHandleKeyArray.h
DerivationFramework::JetExternalAssocTool::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: JetExternalAssocTool.cxx:67
DerivationFramework::JetExternalAssocTool::m_VectorOfOldLinkNames
std::vector< std::string > m_VectorOfOldLinkNames
Definition: JetExternalAssocTool.h:48
DerivationFramework::JetExternalAssocTool::m_containerName
std::string m_containerName
Definition: JetExternalAssocTool.h:45
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::JetExternalAssocTool::initialize
StatusCode initialize()
Definition: JetExternalAssocTool.cxx:39