 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "fastjet/PseudoJet.hh"
10 #include "fastjet/JetDefinition.hh"
11 #include "fastjet/Selector.hh"
12 #include "fastjet/tools/Filter.hh"
16 using fastjet::PseudoJet;
22 : AsgTool(
name), m_bld(
"",this) {
35 if ( m_rclus < 0.0 || m_rclus > 10.0 ) {
37 return StatusCode::FAILURE;
39 if ( m_ptfrac < 0.0 || m_ptfrac > 1.0 ) {
41 return StatusCode::FAILURE;
43 if (
m_bld.empty() ) {
45 return StatusCode::FAILURE;
48 return StatusCode::SUCCESS;
61 if ( ppjin ==
nullptr ) {
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());
virtual const IJetPseudojetRetriever * pseudojetRetriever() const
Return the pseudojet retriever associated with this tool.
#define ATH_MSG_VERBOSE(x)
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
int groom(const xAOD::Jet &jin, const PseudoJetContainer &, xAOD::JetContainer &jout) const
Transform jet.
JetTrimmer(const std::string &name)
void setAttribute(const std::string &name, const T &v)
virtual const fastjet::PseudoJet * pseudojet(const xAOD::Jet &jet) const =0
Retrieve the pseudojet associate with a jet.
void print() const
Print the state of the tool.
#define ATH_MSG_WARNING(x)
StatusCode initialize()
Dummy implementation of the initialisation function.
JetContainer_v1 JetContainer
Definition of the current "jet container version".
ToolHandle< IJetFromPseudojet > m_bld