39 #include "siscone_error.h" 59 rerun_allowed =
false;
65 rerun_allowed =
false;
69 std::ostream* Csiscone::_banner_ostr = &cout;
87 int _n_pass_max,
double _ptmin,
88 Esplit_merge_scale _split_merge_scale){
98 if (_banner_ostr != 0){
99 (*_banner_ostr) <<
"#ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo" << endl;
100 (*_banner_ostr) <<
"# SISCone version " << setw(28) << left << siscone_version() <<
"o" << endl;
101 (*_banner_ostr) <<
"# http://projects.hepforge.org/siscone o" << endl;
102 (*_banner_ostr) <<
"# o" << endl;
103 (*_banner_ostr) <<
"# This is SISCone: the Seedless Infrared Safe Cone Jet Algorithm o" << endl;
104 (*_banner_ostr) <<
"# SISCone was written by Gavin Salam and Gregory Soyez o" << endl;
105 (*_banner_ostr) <<
"# It is released under the terms of the GNU General Public License o" << endl;
106 (*_banner_ostr) <<
"# o" << endl;
107 (*_banner_ostr) <<
"# A description of the algorithm is available in the publication o" << endl;
108 (*_banner_ostr) <<
"# JHEP 05 (2007) 086 [arXiv:0704.0292 (hep-ph)]. o" << endl;
109 (*_banner_ostr) <<
"# Please cite it if you use SISCone. o" << endl;
110 (*_banner_ostr) <<
"#ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo" << endl;
111 (*_banner_ostr) << endl;
113 _banner_ostr->flush();
118 if (_radius <= 0.0 || _radius >= 0.5*M_PI) {
119 ostringstream message;
120 message <<
"Illegal value for cone radius, R = " << _radius
121 <<
" (legal values are 0<R<pi/2)";
127 ptcomparison.split_merge_scale = _split_merge_scale;
132 init_particles(_particles);
134 bool finished =
false;
136 rerun_allowed =
false;
137 protocones_list.clear();
139 #ifdef DEBUG_STABLE_CONES 140 nb_hash_cones_total = 0;
141 nb_hash_occupied_total = 0;
151 if (get_stable_cones(_radius)){
156 add_protocones(&protocones, R2, _ptmin);
157 protocones_list.push_back(protocones);
158 #ifdef DEBUG_STABLE_CONES 159 nb_hash_cones_total += nb_hash_cones;
160 nb_hash_occupied_total += nb_hash_occupied;
168 }
while ((!finished) && (n_left>0) && (_n_pass_max!=0));
170 rerun_allowed =
true;
173 return perform(_f, _ptmin);
188 Esplit_merge_scale _split_merge_scale){
192 ptcomparison.split_merge_scale = _split_merge_scale;
200 for (i=0;i<protocones_list.size();i++)
201 add_protocones(&(protocones_list[i]), R2, _ptmin);
204 return perform(_f, _ptmin);
219 string siscone_package_name(){
228 string siscone_version(){
class corresponding to errors that will be thrown by siscone
int compute_jets(std::vector< Cmomentum > &_particles, double _radius, double _f, int _n_pass_max=0, double _ptmin=0.0, Esplit_merge_scale _split_merge_scale=SM_pttilde)
compute the jets from a given particle set.
int recompute_jets(double _f, double _ptmin=0.0, Esplit_merge_scale _split_merge_scale=SM_pttilde)
recompute the jets with a different overlap parameter.
static bool init_done
check random generator initialisation
void init(std::vector< Cmomentum > &_particle_list)
initialisation