6 #include "fastjet/ClusterSequence.hh"
7 #include "fastjet/JetDefinition.hh"
10 #include "fastjet/EECambridgePlugin.hh"
15 SubjetFinder::SubjetFinder(fastjet::JetAlgorithm fj_jetalg,
float jet_radius,
float pt_min,
int exclusive_njets) :
16 m_fj_jetalg(fj_jetalg), m_jetrad(jet_radius), m_ptmin(pt_min), m_exclusivenjets(exclusive_njets)
22 vector<fastjet::PseudoJet> constit_pseudojets =
jet.constituents();
23 vector<fastjet::PseudoJet> subjets;
24 if(constit_pseudojets.empty()) {
25 cout <<
"Warning in SubjetFinder: jet has no constituents" << endl;
35 fastjet::JetDefinition jet_def = fastjet::JetDefinition(
new fastjet::EECambridgePlugin(
m_jetrad));
38 fastjet::JetDefinition jet_def = fastjet::JetDefinition(
m_fj_jetalg,
m_jetrad, fastjet::E_scheme, fastjet::Best);
43 subjets = fastjet::sorted_by_pt(clust_seq->inclusive_jets(
m_ptmin));
46 subjets = fastjet::sorted_by_pt(clust_seq->exclusive_jets_up_to(
m_exclusivenjets));
53 clust_seq->delete_self_when_unused();