ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
9SubjetFinderTool::SubjetFinderTool(const std::string& 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
20 if(!checkForConstituents(jet)) return 1;
21
22 // Set up jet algorithm
24 fastjet::JetAlgorithm fjalg = xAOD::JetAlgorithmType::fastJetDef(ialg);
25
26 // Run it
28 std::vector<fastjet::PseudoJet> subjets = subjetFinder.result(jet);
29
30 // Record
31 m_subjetrecorder->recordSubjets(subjets, jet);
32
33 return 0;
34}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
JetSubStructureMomentToolsBase(const std::string &name)
bool checkForConstituents(const xAOD::Jet &jet) const
virtual std::vector< fastjet::PseudoJet > result(const fastjet::PseudoJet &jet) const
SubjetFinderTool(const std::string &name)
ToolHandle< ISubjetRecorderTool > m_subjetrecorder
int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
ID algId(const std::string &n)
Converts a string into a JetAlgorithmType::ID.
fastjet::JetAlgorithm fastJetDef(ID id)
ID
//////////////////////////////////////// JetAlgorithmType::ID defines most common physics jet finding...
Jet_v1 Jet
Definition of the current "jet version".