52#include "fastjet/ClusterSequence.hh"
57#include "fastjet/config.h"
58#ifdef FASTJET_ENABLE_PLUGIN_SISCONE
59#include "fastjet/SISConePlugin.hh"
61#warning "SISCone plugin not enabled. Skipping the example"
69#ifdef FASTJET_ENABLE_PLUGIN_SISCONE
73 vector<fastjet::PseudoJet> input_particles;
75 double px, py , pz, E;
76 while (cin >> px >> py >> pz >> E) {
99 double cone_radius = 0.7;
100 double overlap_threshold = 0.75;
113 vector<fastjet::PseudoJet> inclusive_jets =
sorted_by_pt(clust_seq.inclusive_jets(ptmin));
122 cout <<
"Ran " << jet_def.description() << endl;
125 printf(
"%5s %15s %15s %15s\n",
"jet #",
"rapidity",
"phi",
"pt");
128 for (
unsigned int i = 0; i < inclusive_jets.size(); i++) {
129 printf(
"%5u %15.8f %15.8f %15.8f\n",
130 i, inclusive_jets[i].rap(), inclusive_jets[i].phi(),
131 inclusive_jets[i].perp());
int main()
an example program showing how to use fastjet
class that is intended to hold a full definition of the jet clusterer
Class to contain pseudojets, including minimal information of use to jet-clustering routines.
Implementation of the SISCone algorithm (plugin for fastjet v2.1 upwards)
vector< PseudoJet > sorted_by_pt(const vector< PseudoJet > &jets)
return a vector of jets sorted into decreasing kt2