Fork me on GitHub

source: git/external/fastjet/AreaDefinition.cc@ d612dec

Last change on this file since d612dec was cb80e6f, checked in by Pavel Demin <pavel.demin@…>, 4 years ago

update FastJet library to 3.3.4 and FastJet Contrib library to 1.045

  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[35cdc46]1//FJSTARTHEADER
[cb80e6f]2// $Id: AreaDefinition.cc 4442 2020-05-05 07:50:11Z soyez $
[d7d2da3]3//
[cb80e6f]4// Copyright (c) 2005-2020, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
[d7d2da3]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
[35cdc46]15// development. They are described in the original FastJet paper,
16// hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use
[d7d2da3]17// FastJet as part of work towards a scientific publication, please
[35cdc46]18// quote the version you use and include a citation to the manual and
19// optionally also to hep-ph/0512210.
[d7d2da3]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//----------------------------------------------------------------------
[35cdc46]29//FJENDHEADER
[d7d2da3]30
31#include "fastjet/AreaDefinition.hh"
32#include<sstream>
33#include<string>
34
35using namespace std;
36
37FASTJET_BEGIN_NAMESPACE // defined in fastjet/internal/base.hh
38
39string VoronoiAreaSpec::description() const {
40 ostringstream ostr;
41 ostr << "Voronoi area with effective_Rfact = " << effective_Rfact() ;
42 return ostr.str();
43}
44
45
46//----------------------------------------------------------------------
47/// return info about the type of area being used by this defn
48string AreaDefinition::description() const {
49 ostringstream ostr;
50
51 switch(area_type()) {
52 case active_area:
53 ostr << "Active area (hidden ghosts) with " ;
54 ostr << ghost_spec().description();
55 break;
56 case active_area_explicit_ghosts:
57 ostr << "Active area (explicit ghosts) with " ;
58 ostr << ghost_spec().description();
59 break;
60 case one_ghost_passive_area:
61 ostr << "Passive area (one ghost at a time) with " ;
62 ostr << ghost_spec().description();
63 break;
64 case passive_area:
65 ostr << "Passive area (optimal alg. based on jet.def.), where relevant with " ;
66 ostr << ghost_spec().description() ;
67 break;
68 case voronoi_area:
69 ostr << voronoi_spec().description();
70 break;
71 default:
[35cdc46]72 ostr << "Error: unrecognized area_type in AreaDefinition::description():"
[d7d2da3]73 << area_type() << endl;
[35cdc46]74 throw Error(ostr.str());
[d7d2da3]75 }
76 return ostr.str();
77}
78
79FASTJET_END_NAMESPACE // defined in fastjet/internal/base.hh
Note: See TracBrowser for help on using the repository browser.