32 #include "fastjet/ClusterSequence.hh"
33 #include "fastjet/JadePlugin.hh"
36 #include "fastjet/NNH.hh"
48 FASTJET_BEGIN_NAMESPACE
55 void init(
const PseudoJet & jet) {
56 double norm = 1.0/sqrt(jet.modp2());
60 rt2E = sqrt(2.0)*jet.E();
63 double distance(
const JadeBriefJet * jet)
const {
64 double dij = 1 - nx*jet->nx
67 dij *= rt2E*jet->rt2E;
71 double beam_distance()
const {
72 return numeric_limits<double>::max();
76 double rt2E, nx, ny, nz;
81 string JadePlugin::description ()
const {
83 desc <<
"e+e- JADE algorithm plugin";
89 int njets = cs.
jets().size();
102 nnh.merge_jets(i, j, cs.
jets()[k], k);
104 double diB = cs.
jets()[i].E()*cs.
jets()[i].E();
112 FASTJET_END_NAMESPACE