00001 #include "fastjet/ClusterSequenceArea.hh" 00002 00003 FASTJET_BEGIN_NAMESPACE 00004 00005 LimitedWarning ClusterSequenceArea::_range_warnings; 00006 00010 void ClusterSequenceArea::_warn_if_range_unsuitable(const RangeDefinition & range) const { 00011 bool no_ghosts = (_area_def.area_type() == voronoi_area) 00012 || (_area_def.area_type() == passive_area 00013 && jet_def().jet_algorithm() == kt_algorithm); 00014 if (! no_ghosts) { 00015 double rapmin, rapmax; 00016 range.get_rap_limits(rapmin, rapmax); 00017 if (rapmin < -_area_def.ghost_spec().ghost_maxrap()+0.95*jet_def().R() || 00018 rapmax > _area_def.ghost_spec().ghost_maxrap()-0.95*jet_def().R()) { 00019 _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"); 00020 } 00021 } 00022 } 00023 00024 00025 FASTJET_END_NAMESPACE