30 #include "fastjet/ClusterSequence.hh"
31 #include "fastjet/JadePlugin.hh"
34 #include "fastjet/NNH.hh"
46 FASTJET_BEGIN_NAMESPACE
53 void init(
const PseudoJet & jet) {
54 double norm = 1.0/sqrt(jet.modp2());
58 rt2E = sqrt(2.0)*jet.E();
61 double distance(
const JadeBriefJet * jet)
const {
62 double dij = 1 - nx*jet->nx
65 dij *= rt2E*jet->rt2E;
69 double beam_distance()
const {
70 return numeric_limits<double>::max();
74 double rt2E, nx, ny, nz;
79 string JadePlugin::description ()
const {
81 desc <<
"e+e- JADE algorithm plugin";
87 int njets = cs.
jets().size();
100 nnh.merge_jets(i, j, cs.
jets()[k], k);
102 double diB = cs.
jets()[i].E()*cs.
jets()[i].E();
110 FASTJET_END_NAMESPACE