ATLAS Offline Software
Loading...
Searching...
No Matches
JetPullTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5// JetPullTool.cxx
6
9
10JetPullTool::JetPullTool(const std::string& name) :
12 declareProperty("UseEtaInsteadOfY", m_useEtaInsteadOfY = false);
13 declareProperty("IncludeTensorMoments", m_includeTensorMoments = false);
14}
15
17
18 fastjet::PseudoJet jet;
19 bool decorate = SetupDecoration(jet,injet);
20
21 std::map<std::string,double> values;
22 values["PullMag"] = -999;
23 values["PullPhi"] = -999;
24 values["Pull_C00"] = -999;
25 values["Pull_C01"] = -999;
26 values["Pull_C10"] = -999;
27 values["Pull_C11"] = -999;
28
29 if (decorate) {
31 values = pull.result(jet);
32 }
33
34 injet.setAttribute(m_prefix+"PullMag", values["PullMag"]);
35 injet.setAttribute(m_prefix+"PullPhi", values["PullPhi"]);
36
38 injet.setAttribute(m_prefix+"Pull_C00", values["Pull_C00"]);
39 injet.setAttribute(m_prefix+"Pull_C01", values["Pull_C01"]);
40 injet.setAttribute(m_prefix+"Pull_C10", values["Pull_C10"]);
41 injet.setAttribute(m_prefix+"Pull_C11", values["Pull_C11"]);
42 }
43
44 return 0;
45}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
bool m_includeTensorMoments
Definition JetPullTool.h:24
JetPullTool(const std::string &name)
bool m_useEtaInsteadOfY
Definition JetPullTool.h:23
JetSubStructureMomentToolsBase(const std::string &name)
bool SetupDecoration(fastjet::PseudoJet &pseudojet, const xAOD::Jet &jet, bool requireJetStructure=false) const
void setAttribute(const std::string &name, const T &v)
Jet_v1 Jet
Definition of the current "jet version".