fastjet 2.4.5
Functions
pxcone_example.cc File Reference
#include "run_jet_finder.hh"
#include "fastjet/config.h"
#include <vector>
#include <iostream>
Include dependency graph for pxcone_example.cc:

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 57 of file pxcone_example.cc.

References read_input_particles(), and run_jet_finder().

                                {

  
  // define a plugin point
  fastjet::JetDefinition::Plugin * plugin;

  // allocate a new plugin
  double cone_radius = 0.7;
  double min_jet_energy = 5.0;
  double overlap_threshold = 0.5;
  bool   E_scheme_jets = false;
  plugin = new fastjet::PxConePlugin (cone_radius, min_jet_energy, 
                                      overlap_threshold, E_scheme_jets);

  // create a jet-definition based on the plugin
  fastjet::JetDefinition jet_def(plugin);

  // call the example routine that runs with arbitrary jet definitions
  vector<fastjet::PseudoJet> particles;
  read_input_particles(cin, particles);
  run_jet_finder(particles, jet_def);

  // clean up plugin memory.
  delete plugin;
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines