ATLAS Offline Software
Loading...
Searching...
No Matches
SoftDropObservablesTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
7
12
14 fastjet::PseudoJet jet;
15
16 bool decorate = SetupDecoration(jet,injet,true);
17
18 // Groomed jet moments
19 float zg_value = -999, rg_value = -999;
20
21 //For these variables, the jet needs at least two constituents
22 if (decorate && injet.numConstituents() > 1) {
25
26 zg_value = zgGetter.result(jet);
27 rg_value = rgGetter.result(jet);
28 }
29
30 // Groomed jet moments
31 injet.setAttribute(m_prefix+"zg", zg_value);
32 injet.setAttribute(m_prefix+"rg", rg_value);
33
34
35 return 0;
36}
JetSubStructureMomentToolsBase(const std::string &name)
bool SetupDecoration(fastjet::PseudoJet &pseudojet, const xAOD::Jet &jet, bool requireJetStructure=false) const
virtual double result(const fastjet::PseudoJet &jet) const
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
SoftDropObservablesTool(const std::string &name)
void setAttribute(const std::string &name, const T &v)
size_t numConstituents() const
Number of constituents in this jets (this is valid even when reading a file where the constituents ha...
Definition Jet_v1.cxx:153
Jet_v1 Jet
Definition of the current "jet version".