Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

/private/automount/ada1/lpthe/cacciari/physics/voronoi/fastjet/fastjet-release/plugins/usage_examples/run_jet_finder.hh File Reference

#include "fastjet/JetDefinition.hh"
#include "fastjet/PseudoJet.hh"
#include <iostream>

Include dependency graph for run_jet_finder.hh:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void run_jet_finder (const std::vector< fastjet::PseudoJet > &input_particles, const fastjet::JetDefinition &jet_def)
void read_input_particles (std::istream &input, std::vector< fastjet::PseudoJet > &input_particles)
 a function that reads particles from the supplied istream


Function Documentation

void read_input_particles std::istream &  input,
std::vector< fastjet::PseudoJet > &  input_particles
 

a function that reads particles from the supplied istream

Definition at line 73 of file run_jet_finder.cc.

Referenced by main().

00074                                                                      {
00075 
00076   // read in input particles
00077   double px, py , pz, E;
00078   string line;
00079   while (getline(input, line)) {
00080     if (line.substr(0,1) == "#") {continue;}
00081     istringstream linestream(line);
00082     linestream >> px >> py >> pz >> E;
00083   // create a fastjet::PseudoJet with these components and put it onto
00084     // back of the input_particles vector
00085     input_particles.push_back(fastjet::PseudoJet(px,py,pz,E)); 
00086   }
00087   
00088 }

void run_jet_finder const std::vector< fastjet::PseudoJet > &  input_particles,
const fastjet::JetDefinition jet_def
 

Referenced by main().


Generated on Mon Dec 3 11:53:37 2007 for fastjet by doxygen 1.3.4