ATLAS Offline Software
Loading...
Searching...
No Matches
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.h
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::EffectiveRTool
EffectiveRTool(const std::string &myname)
Definition
EffectiveRTool.cxx:7
JetModifierBase::JetModifierBase
JetModifierBase(const std::string &myname)
Ctor.
Definition
JetModifierBase.cxx:9
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