ATLAS Offline Software
Loading...
Searching...
No Matches
Reconstruction
Jet
JetSubStructureMomentTools
Root
KtMassDropTool.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/KtMassDropTool.h
"
6
#include "
JetSubStructureUtils/KtMassDrop.h
"
7
8
KtMassDropTool::KtMassDropTool
(
const
std::string& name) :
9
JetSubStructureMomentToolsBase
(name)
10
{
11
}
12
13
int
KtMassDropTool::modifyJet
(
xAOD::Jet
&injet)
const
{
14
15
fastjet::PseudoJet
jet
;
16
bool
decorate =
SetupDecoration
(
jet
,injet);
17
18
double
KtMD_value = -999;
19
20
if
(decorate) {
21
JetSubStructureUtils::KtMassDrop
ktmassdrop;
22
KtMD_value = ktmassdrop.result(
jet
);
23
}
24
25
ATH_MSG_VERBOSE
(
"Adding jet ktMassDrop: "
<< KtMD_value);
26
injet.
setAttribute
(
m_prefix
+
"Mu12"
, KtMD_value);
27
return
0;
28
}
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition
AthMsgStreamMacros.h:28
KtMassDropTool.h
KtMassDrop.h
JetSubStructureMomentToolsBase::JetSubStructureMomentToolsBase
JetSubStructureMomentToolsBase(const std::string &name)
Definition
JetSubStructureMomentToolsBase.cxx:8
JetSubStructureMomentToolsBase::SetupDecoration
bool SetupDecoration(fastjet::PseudoJet &pseudojet, const xAOD::Jet &jet, bool requireJetStructure=false) const
Definition
JetSubStructureMomentToolsBase.cxx:30
JetSubStructureMomentToolsBase::m_prefix
std::string m_prefix
Definition
JetSubStructureMomentToolsBase.h:30
JetSubStructureUtils::KtMassDrop
Definition
KtMassDrop.h:11
KtMassDropTool::modifyJet
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
Definition
KtMassDropTool.cxx:13
KtMassDropTool::KtMassDropTool
KtMassDropTool(const std::string &name)
Definition
KtMassDropTool.cxx:8
xAOD::Jet_v1::setAttribute
void setAttribute(const std::string &name, const T &v)
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