ATLAS Offline Software
Reconstruction
Jet
JetReclustering
Root
EffectiveRTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
JetReclustering/EffectiveRTool.h
"
6
7
EffectiveRTool::EffectiveRTool
(
const
std::string& myname):
8
JetModifierBase
(myname)
9
{}
10
11
int
EffectiveRTool::modifyJet
(
xAOD::Jet
&
jet
)
const
{
12
13
// get the effective mass scale
14
float
rho
(0.0);
15
bool
rhores =
jet
.getAttribute(
"VariableRMassScale"
,
rho
);
16
// only set if we could retrieve the above attribute
17
// which is only set if JetFinder does VariableR reclustering
18
if
(rhores)
19
jet
.setAttribute(
"EffectiveR"
,
rho
/
jet
.pt());
20
return
0;
21
}
EffectiveRTool::EffectiveRTool
EffectiveRTool(const std::string &myname)
Definition:
EffectiveRTool.cxx:7
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
EffectiveRTool::modifyJet
virtual int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
Definition:
EffectiveRTool.cxx:11
EffectiveRTool.h
xAOD::Jet_v1
Class describing a jet.
Definition:
Jet_v1.h:57
JetModifierBase
Definition:
JetModifierBase.h:22
fitman.rho
rho
Definition:
fitman.py:532
Generated on Mon Dec 23 2024 21:09:42 for ATLAS Offline Software by
1.8.18