ATLAS Offline Software
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 
10 KtDeltaRTool::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 
32 void KtDeltaRTool::print() const {
34  ATH_MSG_INFO("JetRadius: " << m_jetrad);
35 }
36 
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
JetSubStructureMomentToolsBase::print
virtual void print() const
Print the state of the tool.
Definition: JetSubStructureMomentToolsBase.cxx:67
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
KtDeltaRTool::modifyJet
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
Definition: KtDeltaRTool.cxx:15
KtDeltaRTool::print
void print() const
Print the state of the tool.
Definition: KtDeltaRTool.cxx:32
python.DecoratorFactory.decorate
def decorate(hto4l_controller, decorator, **kwargs)
Definition: Hto4lControl/python/DecoratorFactory.py:5
KtDeltaRTool::KtDeltaRTool
KtDeltaRTool(const std::string &t)
Definition: KtDeltaRTool.cxx:10
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
JetSubStructureUtils::KtDeltaR
Definition: KtDeltaR.h:11
KtDeltaR.h
KtDeltaRTool::m_jetrad
double m_jetrad
Definition: KtDeltaRTool.h:25
python.StandardJetMods.ktdr
ktdr
Definition: StandardJetMods.py:244
xAOD::Jet_v1::setAttribute
void setAttribute(const std::string &name, const T &v)
JetSubStructureMomentToolsBase::m_prefix
std::string m_prefix
Definition: JetSubStructureMomentToolsBase.h:30
JetSubStructureMomentToolsBase::SetupDecoration
bool SetupDecoration(fastjet::PseudoJet &pseudojet, const xAOD::Jet &jet, bool requireJetStructure=false) const
Definition: JetSubStructureMomentToolsBase.cxx:30
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
KtDeltaRTool.h
JetSubStructureMomentToolsBase
Definition: JetSubStructureMomentToolsBase.h:18