32 #include "fastjet/ClusterSequence.hh"
33 #include "fastjet/EECambridgePlugin.hh"
34 #include "fastjet/NNH.hh"
40 FASTJET_BEGIN_NAMESPACE
48 void init(
const PseudoJet & jet) {
49 double norm = 1.0/sqrt(jet.modp2());
55 double distance(
const EECamBriefJet * jet)
const {
56 double dij = 1 - nx*jet->nx
62 double beam_distance()
const {
63 return numeric_limits<double>::max();
71 string EECambridgePlugin::description ()
const {
73 desc <<
"EECambridge plugin with ycut = " << ycut() ;
78 int njets = cs.
jets().size();
88 double vij = nnh.dij_min(i, j);
95 double scale = min(cs.
jets()[i].E(), cs.
jets()[j].E());
96 dij = 2 * vij * scale * scale;
97 if (dij > Q2 * ycut()) {
99 if (cs.
jets()[i].E() > cs.
jets()[j].E()) std::swap(i,j);
109 nnh.merge_jets(i, j, cs.
jets()[k], k);
119 FASTJET_END_NAMESPACE
const std::vector< PseudoJet > & jets() const
allow the user to access the internally stored _jets() array, which contains both the initial particl...
double norm(const VPoint p)
norm of a vector
double Q2() const
return Q()^2
Help solve closest pair problems with generic interparticle and beam distance.
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], with the specified dij, and return the index (newjet_k) allocated to the new jet, whose momentum is assumed to be the 4-vector sum of that of jet_i and jet_j
void plugin_record_iB_recombination(int jet_i, double diB)
record the fact that there has been a recombination between jets()[jet_i] and the beam...