fastjet 2.4.5
ClusterSequenceArea.cc
Go to the documentation of this file.
00001 #include "fastjet/ClusterSequenceArea.hh"
00002 
00003 FASTJET_BEGIN_NAMESPACE
00004 
00005 LimitedWarning ClusterSequenceArea::_range_warnings;
00006 LimitedWarning ClusterSequenceArea::_explicit_ghosts_repeats_warnings;
00007 
00011 void ClusterSequenceArea::_warn_if_range_unsuitable(const RangeDefinition & range) const {
00012   bool no_ghosts = (_area_def.area_type() == voronoi_area)
00013     || (_area_def.area_type() == passive_area
00014         && jet_def().jet_algorithm() == kt_algorithm);
00015   if (! no_ghosts) {
00016     double rapmin, rapmax;
00017     range.get_rap_limits(rapmin, rapmax);
00018     if (rapmin < -_area_def.ghost_spec().ghost_maxrap()+0.95*jet_def().R() ||
00019         rapmax >  _area_def.ghost_spec().ghost_maxrap()-0.95*jet_def().R()) {
00020       _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");
00021     }
00022   }
00023 }
00024 
00025 
00026 FASTJET_END_NAMESPACE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines