7 #include "RecoJets/JetAlgorithms/interface/PrunedRecombiner.hh"
15 s <<
"Pruned " << _recombiner->description() <<
", with zcut = " << _zcut <<
" and Rcut = " << _Rcut;
25 void PrunedRecombiner::recombine(
const PseudoJet& pa,
const PseudoJet& pb, PseudoJet& pab)
const {
26 PseudoJet p0(0.0, 0.0, 0.0, 0.0);
28 switch (_pruning_test(pa, pb)) {
30 _pruned_pseudojets.push_back(pb.cluster_hist_index());
31 _recombiner->recombine(pa, p0, pab);
34 _pruned_pseudojets.push_back(pa.cluster_hist_index());
35 _recombiner->recombine(pb, p0, pab);
39 _recombiner->recombine(pa, pb, pab);
51 int PrunedRecombiner::_pruning_test(
const PseudoJet& pa,
const PseudoJet& pb)
const {
55 _recombiner->recombine(pa, pb, newjet);
57 double minpT = pa.perp();
59 double tmp = pb.perp();
65 if (pa.squared_distance(pb) < _Rcut * _Rcut ||
minpT > _zcut * newjet.perp())
72 _pruned_pseudojets.clear();