7 #include "fastjet/ClusterSequence.hh"
8 #include "fastjet/JetDefinition.hh"
15 vector<fastjet::PseudoJet> constit_pseudojets =
jet.constituents();
16 if(constit_pseudojets.empty())
return -1;
19 fastjet::E_scheme, fastjet::Best);
22 if(constit_pseudojets.size() < m_nSubJets) {
26 vector<fastjet::PseudoJet> subjets = kt_clust_seq.exclusive_jets((
int)m_nSubJets);
29 fastjet::PseudoJet *lastSplitSubjet =
nullptr;
30 int max_cluster_hist_index = -1;
31 for(
size_t iSubjet=0; iSubjet < subjets.size(); iSubjet++) {
32 fastjet::PseudoJet parent1, parent2;
33 if(kt_clust_seq.has_parents(subjets[iSubjet], parent1, parent2) &&
34 subjets[iSubjet].cluster_hist_index() > max_cluster_hist_index) {
35 max_cluster_hist_index = subjets[iSubjet].cluster_hist_index();
36 lastSplitSubjet = &subjets[iSubjet];
40 if(lastSplitSubjet ==
nullptr) {
52 zcut = dmin / (dmin + lastSplitSubjet->m2());