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();
 
   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);
 
  119 FASTJET_END_NAMESPACE      
 
  
double norm(const VPoint p)
norm of a vector
 
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,...
 
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...
 
void remove_jet(int iA)
remove the jet pointed to by index iA
 
Help solve closest pair problems with generic interparticle and beam distance (generic case)
 
double Q2() const
return Q()^2
 
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],...
 
void merge_jets(int iA, int iB, const PseudoJet &jet, int jet_index)
merge the jets pointed to by indices A and B and replace them with jet, assigning it an index jet_ind...