ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetSubStructureMomentTools
Root
SubjetFinderTool.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/SubjetFinderTool.h
"
6
#include "
JetEDM/FastJetUtils.h
"
7
#include "
JetSubStructureUtils/SubjetFinder.h
"
8
9
SubjetFinderTool::SubjetFinderTool
(
const
std::string& name) :
10
JetSubStructureMomentToolsBase
(name)
11
{
12
declareProperty
(
"JetAlgorithm"
,
m_jetalg
=
"Kt"
);
13
declareProperty
(
"JetRadius"
,
m_jetrad
= 0.3);
14
declareProperty
(
"PtMin"
,
m_ptmin
= 5000);
15
declareProperty
(
"SubjetRecorder"
,
m_subjetrecorder
);
16
declareProperty
(
"ExclusiveNjets"
,
m_exclusivenjets
= -1);
17
}
18
19
int
SubjetFinderTool::modifyJet
(
xAOD::Jet
&
jet
)
const
{
20
if
(!
checkForConstituents
(
jet
))
return
1;
21
22
// Set up jet algorithm
23
xAOD::JetAlgorithmType::ID
ialg =
xAOD::JetAlgorithmType::algId
(
m_jetalg
);
24
fastjet::JetAlgorithm fjalg =
xAOD::JetAlgorithmType::fastJetDef
(ialg);
25
26
// Run it
27
JetSubStructureUtils::SubjetFinder
subjetFinder(fjalg,
m_jetrad
,
m_ptmin
,
m_exclusivenjets
);
28
std::vector<fastjet::PseudoJet> subjets = subjetFinder.
result
(
jet
);
29
30
// Record
31
m_subjetrecorder
->recordSubjets(subjets,
jet
);
32
33
return
0;
34
}
FastJetUtils.h
SubjetFinderTool.h
SubjetFinder.h
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition
AthCommonDataStore.h:145
JetSubStructureMomentToolsBase::JetSubStructureMomentToolsBase
JetSubStructureMomentToolsBase(const std::string &name)
Definition
JetSubStructureMomentToolsBase.cxx:8
JetSubStructureMomentToolsBase::checkForConstituents
bool checkForConstituents(const xAOD::Jet &jet) const
Definition
JetSubStructureMomentToolsBase.h:33
JetSubStructureUtils::SubjetFinder
Definition
SubjetFinder.h:13
JetSubStructureUtils::SubjetFinder::result
virtual std::vector< fastjet::PseudoJet > result(const fastjet::PseudoJet &jet) const
Definition
SubjetFinder.cxx:20
SubjetFinderTool::SubjetFinderTool
SubjetFinderTool(const std::string &name)
Definition
SubjetFinderTool.cxx:9
SubjetFinderTool::m_jetalg
std::string m_jetalg
Definition
SubjetFinderTool.h:23
SubjetFinderTool::m_ptmin
float m_ptmin
Definition
SubjetFinderTool.h:25
SubjetFinderTool::m_subjetrecorder
ToolHandle< ISubjetRecorderTool > m_subjetrecorder
Definition
SubjetFinderTool.h:27
SubjetFinderTool::modifyJet
int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
Definition
SubjetFinderTool.cxx:19
SubjetFinderTool::m_exclusivenjets
int m_exclusivenjets
Definition
SubjetFinderTool.h:26
SubjetFinderTool::m_jetrad
float m_jetrad
Definition
SubjetFinderTool.h:24
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::JetAlgorithmType::algId
ID algId(const std::string &n)
Converts a string into a JetAlgorithmType::ID.
Definition
JetContainerInfo.cxx:76
xAOD::JetAlgorithmType::fastJetDef
fastjet::JetAlgorithm fastJetDef(ID id)
Definition
FastJetUtils.cxx:20
xAOD::JetAlgorithmType::ID
ID
//////////////////////////////////////// JetAlgorithmType::ID defines most common physics jet finding...
Definition
JetContainerInfo.h:29
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.17.0