ATLAS Offline Software
KTSplittingScaleTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
11 {
12 }
13 
15 {
16 
17  fastjet::PseudoJet jet;
18  bool decorate = SetupDecoration(jet,injet);
19 
20  float Split12_value = -999, Split23_value = -999, Split34_value = -999,
21  ZCut12_value = -999, ZCut23_value = -999, ZCut34_value = -999;
22 
23  if (decorate) {
27  Split12_value = split12.result(jet);
28  Split23_value = split23.result(jet);
29  Split34_value = split34.result(jet);
30 
34 
35  ZCut12_value = zcut12.result(jet);
36  ZCut23_value = zcut23.result(jet);
37  ZCut34_value = zcut34.result(jet);
38 
39  }
40 
41 
42  injet.setAttribute(m_prefix+"Split12", Split12_value);
43  injet.setAttribute(m_prefix+"Split23", Split23_value);
44  injet.setAttribute(m_prefix+"Split34", Split34_value);
45 
46 
47  injet.setAttribute(m_prefix+"ZCut12", ZCut12_value);
48  injet.setAttribute(m_prefix+"ZCut23", ZCut23_value);
49  injet.setAttribute(m_prefix+"ZCut34", ZCut34_value);
50 
51  return 0;
52 }
ZCut.h
KTSplittingScaleTool::KTSplittingScaleTool
KTSplittingScaleTool(const std::string &name)
Definition: KTSplittingScaleTool.cxx:9
KtSplittingScale.h
JetSubStructureUtils::KtSplittingScale
Definition: KtSplittingScale.h:11
JetSubStructureUtils::ZCut::result
virtual double result(const fastjet::PseudoJet &jet) const
Definition: ZCut.cxx:13
JetSubStructureUtils::ZCut
Definition: ZCut.h:11
python.DecoratorFactory.decorate
def decorate(hto4l_controller, decorator, **kwargs)
Definition: Hto4lControl/python/DecoratorFactory.py:5
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
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
KTSplittingScaleTool.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
KTSplittingScaleTool::modifyJet
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
Definition: KTSplittingScaleTool.cxx:14
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetSubStructureMomentToolsBase
Definition: JetSubStructureMomentToolsBase.h:18
JetSubStructureUtils::KtSplittingScale::result
virtual double result(const fastjet::PseudoJet &jet) const
Definition: KtSplittingScale.cxx:12