31 #include "fastjet/RangeDefinition.hh" 33 FASTJET_BEGIN_NAMESPACE
37 LimitedWarning RangeDefinition::_warnings_deprecated;
41 void RangeDefinition::_numerical_total_area(
double rapmax,
int npoints) {
44 double deltaphi = twopi/double(npoints);
45 double deltarap = 2.0*rapmax/double(npoints);
47 for(
int i = 0; i < npoints; i++) {
49 for (
int j = 0; j < npoints; j++) {
50 if ( is_in_range(rap,phi) ) { count++; }
56 _total_area = double(count)/double(npoints*npoints)*2.0*twopi*rapmax;
65 void RangeDefinition::_warn_deprecated()
const{
66 _warnings_deprecated.warn(
"The use of RangeDefinition is deprecated since FastJet version 3.0 onwards. Please consider using Selector (defined in fastjet/Selector.hh) instead. There is no guarantee that support for RangeDefinition will be provided in future releases of FastJet.");