ATLAS Offline Software
Loading...
Searching...
No Matches
Reconstruction
Jet
JetSubStructureMomentTools
Root
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
7
#include "
JetSubStructureMomentTools/JetChargeTool.h
"
8
#include "
JetSubStructureUtils/Charge.h
"
9
10
JetChargeTool::JetChargeTool
(
const
std::string& name) :
11
JetSubStructureMomentToolsBase
(name)
12
{
13
declareProperty
(
"K"
,
m_k
= 1.0);
14
}
15
16
int
JetChargeTool::modifyJet
(
xAOD::Jet
&
jet
)
const
{
17
JetSubStructureUtils::Charge
charge
(
m_k
);
18
jet
.setAttribute(
"Charge"
,
charge
.result(
jet
));
19
return
0;
20
}
charge
double charge(const T &p)
Definition
AtlasPID.h:997
Charge.h
JetChargeTool.h
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition
AthCommonDataStore.h:145
JetChargeTool::JetChargeTool
JetChargeTool(const std::string &name)
Definition
JetChargeTool.cxx:10
JetChargeTool::modifyJet
int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
Definition
JetChargeTool.cxx:16
JetChargeTool::m_k
double m_k
Definition
JetChargeTool.h:23
JetSubStructureMomentToolsBase::JetSubStructureMomentToolsBase
JetSubStructureMomentToolsBase(const std::string &name)
Definition
JetSubStructureMomentToolsBase.cxx:8
JetSubStructureUtils::Charge
Definition
Charge.h:10
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
Generated on
for ATLAS Offline Software by
1.14.0