ATLAS Offline Software
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 
6 #include "JetEDM/FastJetUtils.h"
8 
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 }
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
SubjetFinderTool::m_subjetrecorder
ToolHandle< ISubjetRecorderTool > m_subjetrecorder
Definition: SubjetFinderTool.h:27
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
SubjetFinderTool::m_jetalg
std::string m_jetalg
Definition: SubjetFinderTool.h:23
xAOD::JetAlgorithmType::fastJetDef
fastjet::JetAlgorithm fastJetDef(ID id)
Definition: FastJetUtils.cxx:20
SubjetFinderTool.h
xAOD::JetAlgorithmType::ID
ID
//////////////////////////////////////// JetAlgorithmType::ID defines most common physics jet finding...
Definition: JetContainerInfo.h:29
SubjetFinderTool::m_jetrad
float m_jetrad
Definition: SubjetFinderTool.h:24
JetSubStructureMomentToolsBase::checkForConstituents
bool checkForConstituents(const xAOD::Jet &jet) const
Definition: JetSubStructureMomentToolsBase.h:33
JetSubStructureUtils::SubjetFinder
Definition: SubjetFinder.h:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
SubjetFinderTool::m_exclusivenjets
int m_exclusivenjets
Definition: SubjetFinderTool.h:26
SubjetFinder.h
xAOD::JetAlgorithmType::algId
ID algId(const std::string &n)
Converts a string into a JetAlgorithmType::ID.
Definition: JetContainerInfo.cxx:76
SubjetFinderTool::SubjetFinderTool
SubjetFinderTool(const std::string &name)
Definition: SubjetFinderTool.cxx:9
JetSubStructureMomentToolsBase
Definition: JetSubStructureMomentToolsBase.h:18
SubjetFinderTool::modifyJet
int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
Definition: SubjetFinderTool.cxx:19
FastJetUtils.h
JetSubStructureUtils::SubjetFinder::result
virtual std::vector< fastjet::PseudoJet > result(const fastjet::PseudoJet &jet) const
Definition: SubjetFinder.cxx:20
SubjetFinderTool::m_ptmin
float m_ptmin
Definition: SubjetFinderTool.h:25