cdfmidpoint_example.cc File Reference

#include "run_jet_finder.hh"
#include "fastjet/config.h"
#include <vector>
#include <iostream>

Include dependency graph for cdfmidpoint_example.cc:

run_jet_finder.hhfastjet/JetDefinition.hhfastjet/PseudoJet.hhfastjet/internal/numconsts.hhfastjet/internal/base.hh

Go to the source code of this file.

Functions

int main (int argc, char **argv)


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 55 of file cdfmidpoint_example.cc.

References read_input_particles(), and run_jet_finder().

00055                                 {
00056 
00057   
00058   // define a plugin pointer
00059   fastjet::JetDefinition::Plugin * plugin;
00060 
00061   // allocate a new plugin
00062   double seed_threshold = 1.0;
00063   double cone_radius = 0.7;
00064   double cone_area_fraction = 1.0;
00065   int    max_pair_size = 2;
00066   int    max_iterations = 100;
00067   double overlap_threshold = 0.5;
00068   plugin = new fastjet::CDFMidPointPlugin (seed_threshold, cone_radius, 
00069                                            cone_area_fraction, max_pair_size,
00070                                            max_iterations, overlap_threshold);
00071 
00072   // create a jet-definition based on the plugin
00073   fastjet::JetDefinition jet_def(plugin);
00074 
00075   // call the example routine that runs with arbitrary jet definitions
00076   vector<fastjet::PseudoJet> particles;
00077   read_input_particles(cin, particles);
00078   run_jet_finder(particles, jet_def);
00079 
00080   // clean up plugin memory.
00081   delete plugin;
00082 }


Generated on Tue Dec 18 17:05:30 2007 for fastjet by  doxygen 1.5.2