59 vector<fastjet::PseudoJet> input_particles;
61 valarray<double> fourvec(4);
63 while (cin >> fourvec[0] >> fourvec[1] >> fourvec[2] >> fourvec[3]) {
71 input_particles.push_back(particle);
92 vector<fastjet::PseudoJet> inclusive_jets = sorted_by_pt(clust_seq.
inclusive_jets(ptmin));
101 cout <<
"Ran " << jet_def.
description() << endl << endl;
104 printf(
"%5s %15s %15s %15s %15s\n",
"jet #",
"rapidity",
"phi",
"pt",
"n constituents");
105 printf(
" indices of constituents\n\n");
108 for (
unsigned int i = 0; i < inclusive_jets.size(); i++) {
110 vector<fastjet::PseudoJet> constituents = inclusive_jets[i].constituents();
112 printf(
"%5u %15.8f %15.8f %15.8f %8u\n",
113 i, inclusive_jets[i].rap(), inclusive_jets[i].phi(),
114 inclusive_jets[i].perp(), (
unsigned int) constituents.size());
117 for (
unsigned int j=0; j<constituents.size(); j++){
118 printf(
"%4u ", constituents[j].user_index());
119 if (j%10==9) printf(
"\n ");