ATLAS Offline Software
Loading...
Searching...
No Matches
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
7EffectiveRTool::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}
virtual int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
EffectiveRTool(const std::string &myname)
JetModifierBase(const std::string &myname)
Ctor.
Jet_v1 Jet
Definition of the current "jet version".