40 #include "fastjet/ClusterSequence.hh"
41 #include "fastjet/Selector.hh"
52 vector<PseudoJet> input_particles;
54 double px, py , pz, E;
55 while (cin >> px >> py >> pz >> E) {
58 input_particles.push_back(
PseudoJet(px,py,pz,E));
68 cout << input_particles.size() <<
" particles before selector" << endl;
69 input_particles = particle_selector(input_particles);
70 cout << input_particles.size() <<
" particles after selector" << endl;
96 vector<PseudoJet> inclusive_jets =
sorted_by_pt(jet_selector(clust_seq.inclusive_jets()));
106 double rapmin, rapmax;
108 cout <<
"Ran " << jet_def.description() << endl;
110 cout <<
"Selected particles: " << particle_selector.
description() << endl;
112 cout <<
" with a total rapidity range of [" << rapmin <<
", " << rapmax <<
"]" << endl;
114 cout <<
"Selected jets: " << jet_selector.
description() << endl;
116 cout <<
" with a total rapidity range of [" << rapmin <<
", " << rapmax <<
"]" << endl;
119 printf(
"%5s %15s %15s %15s\n",
"jet #",
"rapidity",
"phi",
"pt");
122 for (
unsigned int i = 0; i < inclusive_jets.size(); i++) {
123 printf(
"%5u %15.8f %15.8f %15.8f\n",
124 i, inclusive_jets[i].rap(), inclusive_jets[i].phi(),
125 inclusive_jets[i].perp());