ATLAS Offline Software
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 
6 
7 EffectiveRTool::EffectiveRTool(const std::string& myname):
8  JetModifierBase(myname)
9 {}
10 
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