ATLAS Offline Software
AngularityTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 AngularityTool::AngularityTool(const std::string& name) :
10 {
11 }
12 
14 
15  fastjet::PseudoJet jet;
16  bool decorate = SetupDecoration(jet,injet);
17 
18  float Angularity_value = -999;
19 
20  if (decorate) {
22  Angularity_value = angularity.result(jet);
23  ATH_MSG_VERBOSE("Adding jet angularity: " << Angularity_value);
24  }
25 
26  injet.setAttribute(m_prefix+"Angularity", Angularity_value);
27  return 0;
28 }
AngularityTool::modifyJet
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
Definition: AngularityTool.cxx:13
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
Angularity.h
AngularityTool::AngularityTool
AngularityTool(const std::string &name)
Definition: AngularityTool.cxx:8
JetSubStructureUtils::Angularity
Definition: Angularity.h:11
JetSubStructureMomentToolsBase
Definition: JetSubStructureMomentToolsBase.h:18
python.StandardJetMods.angularity
angularity
Definition: StandardJetMods.py:266
AngularityTool.h