FastJet 3.0.2
|
00001 #include "fastjet/ClusterSequenceArea.hh" 00002 00003 FASTJET_BEGIN_NAMESPACE 00004 00005 LimitedWarning ClusterSequenceArea::_range_warnings; 00006 LimitedWarning ClusterSequenceArea::_explicit_ghosts_repeats_warnings; 00007 00008 /// print a warning if the range is unsuitable for the current 00009 /// calculation of the area (e.g. because ghosts do not extend 00010 /// far enough). 00011 void ClusterSequenceArea::_warn_if_range_unsuitable(const Selector & selector) const { 00012 _check_selector_good_for_median(selector); 00013 00014 bool no_ghosts = (_area_def.area_type() == voronoi_area) 00015 || (_area_def.area_type() == passive_area 00016 && jet_def().jet_algorithm() == kt_algorithm); 00017 if (! no_ghosts) { 00018 double rapmin, rapmax; 00019 selector.get_rapidity_extent(rapmin, rapmax); 00020 if (rapmin < -_area_def.ghost_spec().ghost_maxrap()+0.95*jet_def().R() || 00021 rapmax > _area_def.ghost_spec().ghost_maxrap()-0.95*jet_def().R()) { 00022 _range_warnings.warn("rapidity range for median (rho) extends beyond +-(ghost_maxrap - 0.95*R); this is likely to cause the results to be unreliable; safest option is to increase ghost_maxrap in the area definition"); 00023 } 00024 } 00025 } 00026 00027 00028 FASTJET_END_NAMESPACE