ATLAS Offline Software
Reconstruction
Jet
JetSubStructureMomentTools
Root
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
5
#include "
JetSubStructureMomentTools/SoftDropObservablesTool.h
"
6
#include "
JetSubStructureUtils/SoftDropObservables.h
"
7
8
SoftDropObservablesTool::SoftDropObservablesTool
(
const
std::string&
name
) :
9
JetSubStructureMomentToolsBase
(
name
)
10
{
11
}
12
13
int
SoftDropObservablesTool::modifyJet
(
xAOD::Jet
&injet)
const
{
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) {
23
JetSubStructureUtils::SoftDropObservables
zgGetter(
"zg"
);
24
JetSubStructureUtils::SoftDropObservables
rgGetter(
"rg"
);
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
}
SoftDropObservablesTool::modifyJet
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
Definition:
SoftDropObservablesTool.cxx:13
python.DecoratorFactory.decorate
def decorate(hto4l_controller, decorator, **kwargs)
Definition:
Hto4lControl/python/DecoratorFactory.py:5
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
SoftDropObservablesTool::SoftDropObservablesTool
SoftDropObservablesTool(const std::string &name)
Definition:
SoftDropObservablesTool.cxx:8
xAOD::Jet_v1::setAttribute
void setAttribute(const std::string &name, const T &v)
SoftDropObservables.h
JetSubStructureMomentToolsBase::m_prefix
std::string m_prefix
Definition:
JetSubStructureMomentToolsBase.h:30
JetSubStructureMomentToolsBase::SetupDecoration
bool SetupDecoration(fastjet::PseudoJet &pseudojet, const xAOD::Jet &jet, bool requireJetStructure=false) const
Definition:
JetSubStructureMomentToolsBase.cxx:30
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
JetSubStructureUtils::SoftDropObservables::result
virtual double result(const fastjet::PseudoJet &jet) const
Definition:
SoftDropObservables.h:21
xAOD::Jet_v1
Class describing a jet.
Definition:
Jet_v1.h:57
JetSubStructureMomentToolsBase
Definition:
JetSubStructureMomentToolsBase.h:18
SoftDropObservablesTool.h
xAOD::Jet_v1::numConstituents
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
JetSubStructureUtils::SoftDropObservables
Definition:
SoftDropObservables.h:13
Generated on Fri Jan 10 2025 21:17:55 for ATLAS Offline Software by
1.8.18