Fork me on GitHub

source: git/external/fastjet/ClusterSequenceArea.cc@ 5eb063e

Last change on this file since 5eb063e was b7b836a, checked in by Pavel Demin <pavel-demin@…>, 7 years ago

update FastJet library to 3.3.1 and FastJet Contrib library to 1.036

  • Property mode set to 100644
File size: 2.5 KB
Line 
1//FJSTARTHEADER
2// $Id: ClusterSequenceArea.cc 4354 2018-04-22 07:12:37Z salam $
3//
4// Copyright (c) 2006-2018, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
5//
6//----------------------------------------------------------------------
7// This file is part of FastJet.
8//
9// FastJet is free software; you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation; either version 2 of the License, or
12// (at your option) any later version.
13//
14// The algorithms that underlie FastJet have required considerable
15// development. They are described in the original FastJet paper,
16// hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use
17// FastJet as part of work towards a scientific publication, please
18// quote the version you use and include a citation to the manual and
19// optionally also to hep-ph/0512210.
20//
21// FastJet is distributed in the hope that it will be useful,
22// but WITHOUT ANY WARRANTY; without even the implied warranty of
23// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24// GNU General Public License for more details.
25//
26// You should have received a copy of the GNU General Public License
27// along with FastJet. If not, see <http://www.gnu.org/licenses/>.
28//----------------------------------------------------------------------
29//FJENDHEADER
30
31#include "fastjet/ClusterSequenceArea.hh"
32
33FASTJET_BEGIN_NAMESPACE
34
35LimitedWarning ClusterSequenceArea::_range_warnings;
36LimitedWarning ClusterSequenceArea::_explicit_ghosts_repeats_warnings;
37
38/// print a warning if the range is unsuitable for the current
39/// calculation of the area (e.g. because ghosts do not extend
40/// far enough).
41void ClusterSequenceArea::_warn_if_range_unsuitable(const Selector & selector) const {
42 _check_selector_good_for_median(selector);
43
44 bool no_ghosts = (_area_def.area_type() == voronoi_area)
45 || (_area_def.area_type() == passive_area
46 && jet_def().jet_algorithm() == kt_algorithm);
47 if (! no_ghosts) {
48 double rapmin, rapmax;
49 selector.get_rapidity_extent(rapmin, rapmax);
50 if (rapmin < -_area_def.ghost_spec().ghost_maxrap()+0.95*jet_def().R() ||
51 rapmax > _area_def.ghost_spec().ghost_maxrap()-0.95*jet_def().R()) {
52 _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");
53 }
54 }
55}
56
57
58FASTJET_END_NAMESPACE
Note: See TracBrowser for help on using the repository browser.