ATLAS Offline Software
QwTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 QwTool::QwTool(const std::string& myname)
10 }
11 
12 int QwTool::modifyJet(xAOD::Jet& injet) const {
13 
14  fastjet::PseudoJet jet;
15  bool decorate = SetupDecoration(jet,injet);
16  float qw_value = -999;
17 
18  if (decorate) {
19  static const JetSubStructureUtils::Qw qw;
20  qw_value = qw.result(jet);
21  }
22 
23  injet.setAttribute(m_prefix+"Qw", qw_value);
24  return 0;
25 }
QwTool::modifyJet
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
Definition: QwTool.cxx:12
python.DecoratorFactory.decorate
def decorate(hto4l_controller, decorator, **kwargs)
Definition: Hto4lControl/python/DecoratorFactory.py:5
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
QwTool::QwTool
QwTool(const std::string &t)
Definition: QwTool.cxx:8
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
python.StandardJetMods.qw
qw
Definition: StandardJetMods.py:268
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
Qw.h
QwTool.h
JetSubStructureUtils::Qw
Definition: Qw.h:34
JetSubStructureMomentToolsBase
Definition: JetSubStructureMomentToolsBase.h:18