ATLAS Offline Software
JetChargeTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // JetChargeTool.cxx
6 
9 
10 JetChargeTool::JetChargeTool(const std::string& name) :
12 {
13  declareProperty("K", m_k = 1.0);
14 }
15 
18  jet.setAttribute("Charge", charge.result(jet));
19  return 0;
20 }
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Charge.h
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
JetChargeTool::modifyJet
int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
Definition: JetChargeTool.cxx:16
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
charge
double charge(const T &p)
Definition: AtlasPID.h:494
JetChargeTool::m_k
double m_k
Definition: JetChargeTool.h:23
JetChargeTool.h
JetSubStructureUtils::Charge
Definition: Charge.h:10
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetChargeTool::JetChargeTool
JetChargeTool(const std::string &name)
Definition: JetChargeTool.cxx:10
JetSubStructureMomentToolsBase
Definition: JetSubStructureMomentToolsBase.h:18