ATLAS Offline Software
Loading...
Searching...
No Matches
KtDeltaRTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5// KtDeltaRTool.cxx
6
9
10KtDeltaRTool::KtDeltaRTool(const std::string& myname)
12 declareProperty("JetRadius", m_jetrad =0.4);
13}
14
16
17 fastjet::PseudoJet jet;
18 bool decorate = SetupDecoration(jet,injet);
19
20 float ktdr_value = -999;
21
22 if (decorate) {
24 ktdr_value = ktdr.result(jet);
25 }
26
27 injet.setAttribute(m_prefix+"KtDR",ktdr_value);
28
29 return 0;
30}
31
36
#define ATH_MSG_INFO(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
JetSubStructureMomentToolsBase(const std::string &name)
bool SetupDecoration(fastjet::PseudoJet &pseudojet, const xAOD::Jet &jet, bool requireJetStructure=false) const
virtual void print() const
Print the state of the tool.
void print() const
Print the state of the tool.
double m_jetrad
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
KtDeltaRTool(const std::string &t)
void setAttribute(const std::string &name, const T &v)
Jet_v1 Jet
Definition of the current "jet version".