ATLAS Offline Software
Reconstruction
Jet
JetSubStructureMomentTools
Root
DipolarityTool.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/DipolarityTool.h
"
6
#include "
JetSubStructureUtils/Dipolarity.h
"
7
8
DipolarityTool::DipolarityTool
(
const
std::string&
name
) :
9
JetSubStructureMomentToolsBase
(
name
)
10
{
11
declareProperty
(
"SubJetRadius"
,
m_SubJetRadius
= 0.3);
12
}
13
14
int
DipolarityTool::modifyJet
(
xAOD::Jet
&injet)
const
15
{
16
17
fastjet::PseudoJet
jet
;
18
bool
decorate
=
SetupDecoration
(
jet
,injet);
19
20
float
Dip12_value = -999, Dip13_value = -999,
21
Dip23_value = -999, DipExcl12_value = -999;
22
23
if
(
decorate
) {
24
25
JetSubStructureUtils::Dipolarity
dip12(1, 2,
false
,
m_SubJetRadius
);
26
JetSubStructureUtils::Dipolarity
dip13(1, 3,
false
,
m_SubJetRadius
);
27
JetSubStructureUtils::Dipolarity
dip23(2, 3,
false
,
m_SubJetRadius
);
28
JetSubStructureUtils::Dipolarity
dipexcl12(1, 2,
true
,
m_SubJetRadius
);
29
30
Dip12_value = dip12.
result
(
jet
);
31
Dip13_value = dip13.
result
(
jet
);
32
Dip23_value = dip23.
result
(
jet
);
33
DipExcl12_value = dipexcl12.
result
(
jet
);
34
35
}
36
37
injet.
setAttribute
(
m_prefix
+
"Dip12"
, Dip12_value);
38
injet.
setAttribute
(
m_prefix
+
"Dip13"
, Dip13_value);
39
injet.
setAttribute
(
m_prefix
+
"Dip23"
, Dip23_value);
40
injet.
setAttribute
(
m_prefix
+
"DipExcl12"
, DipExcl12_value);
41
42
return
0;
43
}
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition:
AthCommonDataStore.h:145
JetSubStructureUtils::Dipolarity::result
virtual double result(const fastjet::PseudoJet &jet) const
Definition:
Dipolarity.cxx:26
DipolarityTool::DipolarityTool
DipolarityTool(const std::string &name)
Definition:
DipolarityTool.cxx:8
python.DecoratorFactory.decorate
def decorate(hto4l_controller, decorator, **kwargs)
Definition:
Hto4lControl/python/DecoratorFactory.py:5
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
Dipolarity.h
xAOD::Jet_v1::setAttribute
void setAttribute(const std::string &name, const T &v)
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
DipolarityTool::modifyJet
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
Definition:
DipolarityTool.cxx:14
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
xAOD::Jet_v1
Class describing a jet.
Definition:
Jet_v1.h:57
DipolarityTool.h
JetSubStructureMomentToolsBase
Definition:
JetSubStructureMomentToolsBase.h:18
JetSubStructureUtils::Dipolarity
Definition:
Dipolarity.h:12
DipolarityTool::m_SubJetRadius
double m_SubJetRadius
Definition:
DipolarityTool.h:21
Generated on Thu Nov 7 2024 21:13:42 for ATLAS Offline Software by
1.8.18