ATLAS Offline Software
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
}
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:221
charge
double charge(const T &p)
Definition:
AtlasPID.h:538
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
Generated on Thu Nov 7 2024 21:18:02 for ATLAS Offline Software by
1.8.18