8 #include "RecoJets/JetAlgorithms/interface/PrunedRecombiner.hh"
12 using namespace fastjet;
17 s <<
"Pruned " << _recombiner->description()
18 <<
", with zcut = " << _zcut <<
" and Rcut = " << _Rcut;
28 void PrunedRecombiner::recombine(
const PseudoJet & pa,
const PseudoJet & pb,
29 PseudoJet & pab)
const
31 PseudoJet p0(0.0, 0.0, 0.0, 0.0);
33 switch ( _pruning_test(pa, pb) ) {
35 _pruned_pseudojets.push_back(pb.cluster_hist_index());
36 _recombiner->recombine(pa, p0, pab);
39 _pruned_pseudojets.push_back(pa.cluster_hist_index());
40 _recombiner->recombine(pb, p0, pab);
44 _recombiner->recombine(pa, pb, pab);
57 int PrunedRecombiner::_pruning_test(
const PseudoJet & pa,
const PseudoJet & pb)
const
62 _recombiner->recombine(pa, pb, newjet);
64 double minpT = pa.perp();
66 double tmp = pb.perp();
72 if ( pa.squared_distance(pb) < _Rcut*_Rcut
73 || minpT > _zcut * newjet.perp() )
82 _pruned_pseudojets.clear();
std::vector< std::vector< double > > tmp
void reset(double vett[256])