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      
 
double dij_min(int &iA, int &iB)
return the dij_min and indices iA, iB, for the corresponding jets. 
 
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 
 
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...