68 vector<PhysicsTower> towers;
69 towers.reserve(clust_seq.
jets().size());
74 for (
unsigned i = 0; i < clust_seq.
jets().size(); i++) {
77 LorentzVector fourvect(particle.px(), particle.py(),
78 particle.pz(), particle.E());
79 PhysicsTower tower(fourvect);
82 towers.push_back(tower);
86 JetCluAlgorithm j(seed_threshold(), cone_radius(), adjacency_cut(),
87 max_iterations(), iratch(), overlap_threshold());
90 std::vector<Cluster> jets;
107 for(
int iCDFjets = jets.size()-1; iCDFjets >= 0; iCDFjets--) {
109 const vector<PhysicsTower> & tower_list = jets[iCDFjets].towerList;
110 int ntow = int(tower_list.size());
117 vector<int> jc_indices(ntow);
118 vector<double> fj_indices(ntow);
119 for (
int itow = 0; itow < ntow; itow++) {
120 jc_indices[itow] = itow;
121 fj_indices[itow] = tower_list[itow].fjindex;
123 sort_indices(jc_indices, fj_indices);
125 int jet_k = tower_list[jc_indices[0]].fjindex;
127 for (
int itow = 1; itow < ntow; itow++) {
128 if (tower_list[jc_indices[itow]].Et() > 1e-50) {
133 jet_j = tower_list[jc_indices[itow]].fjindex;
136 assert (jet_j >= 0 && jet_j <
int(towers.size()));
148 double d_iB = clust_seq.
jets()[jet_k].perp2();
void plugin_record_ij_recombination(int jet_i, int jet_j, double dij, int &newjet_k)
record the fact that there has been a recombination between jets()[jet_i] and jets()[jet_k],...