9#include "fastjet/PseudoJet.hh"
10#include "fastjet/JetDefinition.hh"
11#include "fastjet/Selector.hh"
12#include "fastjet/tools/Filter.hh"
16using fastjet::PseudoJet;
37 return StatusCode::FAILURE;
41 return StatusCode::FAILURE;
43 if (
m_bld.empty() ) {
45 return StatusCode::FAILURE;
48 return StatusCode::SUCCESS;
61 if ( ppjin ==
nullptr ) {
66 fastjet::Filter trimmer(fastjet::JetDefinition(fastjet::kt_algorithm,
m_rclus),
67 fastjet::SelectorPtFractionMin(
m_ptfrac));
68 PseudoJet pjtrim = trimmer(*ppjin);
69 ATH_MSG_VERBOSE(
" Input cluster sequence: " << ppjin->associated_cluster_sequence());
70 ATH_MSG_VERBOSE(
" Trimmed cluster sequence: " << pjtrim.associated_cluster_sequence());
71 int nptrim = pjtrim.pieces().size();
74 if ( pjet ==
nullptr ) {
83 ATH_MSG_DEBUG(
" ncon: " << pjtrim.constituents().size() <<
"/"
84 << ppjin->constituents().size());
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual const IJetPseudojetRetriever * pseudojetRetriever() const
Return the pseudojet retriever associated with this tool.
virtual const fastjet::PseudoJet * pseudojet(const xAOD::Jet &jet) const =0
Retrieve the pseudojet associate with a jet.
StatusCode initialize()
Dummy implementation of the initialisation function.
JetTrimmer(const std::string &name)
void print() const
Print the state of the tool.
ToolHandle< IJetFromPseudojet > m_bld
int groom(const xAOD::Jet &jin, const PseudoJetContainer &, xAOD::JetContainer &jout) const
Transform jet.
void setAttribute(const std::string &name, const T &v)
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".