00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #include "fastjet/config.h"
00040 #include "run_jet_finder.hh"
00041
00042
00043 #include "fastjet/config.h"
00044
00045 #ifdef ENABLE_PLUGIN_SISCONE
00046 # include "fastjet/SISConePlugin.hh"
00047 #endif
00048 #ifdef ENABLE_PLUGIN_CDFCONES
00049 # include "fastjet/CDFMidPointPlugin.hh"
00050 # include "fastjet/CDFJetCluPlugin.hh"
00051 #endif
00052 #ifdef ENABLE_PLUGIN_PXCONE
00053 # include "fastjet/PxConePlugin.hh"
00054 #endif
00055
00056 #include<vector>
00057 #include<iostream>
00058 #include "fastjet/PseudoJet.hh"
00059
00060 using namespace std;
00061
00062 int main(int argc, char** argv) {
00063
00064
00065 vector<fastjet::PseudoJet> input_particles;
00066 read_input_particles(cin, input_particles);
00067
00068
00069
00070 vector<fastjet::JetDefinition> jet_defs(6);
00071 vector<fastjet::JetDefinition::Plugin *> plugins(3);
00072
00073
00074 double jet_radius = 0.7;
00075
00076 double overlap_threshold = 0.5;
00077
00078 vector<fastjet::JetDefinition>::const_iterator
00079 jet_def_begin = jet_defs.begin();
00080
00081
00082
00083 #ifdef ENABLE_PLUGIN_PXCONE
00084 double min_jet_energy = 5.0;
00085 bool E_scheme_jets = false;
00086 plugins[0] = new fastjet::PxConePlugin (jet_radius, min_jet_energy,
00087 overlap_threshold, E_scheme_jets);
00088 jet_defs[0] = fastjet::JetDefinition(plugins[0]);
00089 #else
00090 plugins[0] = NULL;
00091
00092 #endif // ENABLE_PLUGIN_PXCONE
00093
00094
00095
00096
00097 #ifdef ENABLE_PLUGIN_CDFCONES
00098 double seed_threshold = 1.0;
00099 double cone_area_fraction = 1.0;
00100 int max_pair_size = 2;
00101 int max_iterations = 100;
00102 plugins[1] = new fastjet::CDFMidPointPlugin (seed_threshold, jet_radius,
00103 cone_area_fraction, max_pair_size,
00104 max_iterations, overlap_threshold);
00105 jet_defs[1] = fastjet::JetDefinition(plugins[1]);
00106 #else
00107 plugins[1] = NULL;
00108 #endif
00109
00110
00111 #ifdef ENABLE_PLUGIN_SISCONE
00112 int npass = 0;
00113 double protojet_ptmin = 0.0;
00114 plugins[2] = new fastjet::SISConePlugin (jet_radius, overlap_threshold,
00115 npass, protojet_ptmin);
00116 jet_defs[2] = fastjet::JetDefinition(plugins[2]);
00117 #else
00118 plugins[2] = NULL;
00119 #endif
00120
00121
00122 jet_defs[3] = fastjet::JetDefinition(fastjet::kt_algorithm, jet_radius);
00123 jet_defs[4] = fastjet::JetDefinition(fastjet::cambridge_algorithm,
00124 jet_radius);
00125 jet_defs[5] = fastjet::JetDefinition(fastjet::antikt_algorithm,
00126 jet_radius);
00127
00128
00129 int index=0;
00130 for (vector<fastjet::JetDefinition>::const_iterator jd_it = jet_def_begin;
00131 jd_it != jet_defs.end(); jd_it++) {
00132
00133 if ((index>=3) || (plugins[index] != NULL))
00134 run_jet_finder(input_particles, *jd_it);
00135 index++;
00136 }
00137
00138
00139 if (plugins[0] != NULL) delete plugins[0];
00140 if (plugins[1] != NULL) delete plugins[1];
00141 if (plugins[2] != NULL) delete plugins[2];
00142 }