Last change
on this file since 12 was 11, checked in by severine ovyn, 16 years ago |
Fastjet added; CDFCones directory has been changed
|
File size:
1.0 KB
|
Line | |
---|
1 | #include "../include/fastjet/ClusterSequenceArea.hh"
|
---|
2 |
|
---|
3 | FASTJET_BEGIN_NAMESPACE
|
---|
4 |
|
---|
5 | LimitedWarning ClusterSequenceArea::_range_warnings;
|
---|
6 |
|
---|
7 | /// print a warning if the range is unsuitable for the current
|
---|
8 | /// calculation of the area (e.g. because ghosts do not extend
|
---|
9 | /// far enough).
|
---|
10 | void ClusterSequenceArea::_warn_if_range_unsuitable(const RangeDefinition & range) const {
|
---|
11 | bool no_ghosts = (_area_def.area_type() == voronoi_area)
|
---|
12 | || (_area_def.area_type() == passive_area
|
---|
13 | && jet_def().jet_algorithm() == kt_algorithm);
|
---|
14 | if (! no_ghosts) {
|
---|
15 | double rapmin, rapmax;
|
---|
16 | range.get_rap_limits(rapmin, rapmax);
|
---|
17 | if (rapmin < -_area_def.ghost_spec().ghost_maxrap()+0.95*jet_def().R() ||
|
---|
18 | rapmax > _area_def.ghost_spec().ghost_maxrap()-0.95*jet_def().R()) {
|
---|
19 | _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");
|
---|
20 | }
|
---|
21 | }
|
---|
22 | }
|
---|
23 |
|
---|
24 |
|
---|
25 | FASTJET_END_NAMESPACE
|
---|
Note:
See
TracBrowser
for help on using the repository browser.