46 #include "fastjet/ClusterSequence.hh" 
   57   vector<fastjet::PseudoJet> input_particles;
 
   59   valarray<double> fourvec(4);
 
   61   while (cin >> fourvec[0] >> fourvec[1] >> fourvec[2] >> fourvec[3]) {
 
   69     input_particles.push_back(particle); 
 
   90   vector<fastjet::PseudoJet> inclusive_jets = sorted_by_pt(clust_seq.
inclusive_jets(ptmin));
 
   99   cout << 
"Ran " << jet_def.
description() << endl << endl;
 
  102   printf(
"%5s %15s %15s %15s %15s\n",
"jet #", 
"rapidity", 
"phi", 
"pt", 
"n constituents");
 
  103   printf(
"        indices of constituents\n\n");
 
  106   for (
unsigned int i = 0; i < inclusive_jets.size(); i++) {
 
  108     vector<fastjet::PseudoJet> constituents = inclusive_jets[i].constituents();
 
  110     printf(
"%5u %15.8f %15.8f %15.8f %8u\n",
 
  111            i, inclusive_jets[i].rap(), inclusive_jets[i].phi(),
 
  112            inclusive_jets[i].perp(), (
unsigned int) constituents.size());
 
  115     for (
unsigned int j=0; j<constituents.size(); j++){
 
  116       printf(
"%4u ", constituents[j].user_index());
 
  117       if (j%10==9) printf(
"\n       ");
 
void set_user_index(const int index)
set the user_index, intended to allow the user to add simple identifying information to a particle/je...
 
std::vector< PseudoJet > inclusive_jets(const double ptmin=0.0) const 
return a vector of all jets (in the sense of the inclusive algorithm) with pt >= ptmin. 
 
the longitudinally invariant kt algorithm 
 
std::string description() const 
return a textual description of the current jet definition 
 
int main()
an example program showing how to use fastjet 
 
Class to contain pseudojets, including minimal information of use to jet-clustering routines...
 
class that is intended to hold a full definition of the jet clusterer