Fork me on GitHub

source: svn/trunk/external/fastjet/AreaDefinition.cc@ 1236

Last change on this file since 1236 was 859, checked in by Pavel Demin, 12 years ago

update fastjet to version 3.0.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision Date
File size: 2.5 KB
Line 
1//STARTHEADER
2// $Id: AreaDefinition.cc 859 2012-11-28 01:49:23Z pavel $
3//
4// Copyright (c) 2005-2011, 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 and are described in hep-ph/0512210. If you use
16// FastJet as part of work towards a scientific publication, please
17// include a citation to the FastJet paper.
18//
19// FastJet is distributed in the hope that it will be useful,
20// but WITHOUT ANY WARRANTY; without even the implied warranty of
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22// GNU General Public License for more details.
23//
24// You should have received a copy of the GNU General Public License
25// along with FastJet. If not, see <http://www.gnu.org/licenses/>.
26//----------------------------------------------------------------------
27//ENDHEADER
28
29#include "fastjet/AreaDefinition.hh"
30#include<sstream>
31#include<string>
32
33using namespace std;
34
35FASTJET_BEGIN_NAMESPACE // defined in fastjet/internal/base.hh
36
37string VoronoiAreaSpec::description() const {
38 ostringstream ostr;
39 ostr << "Voronoi area with effective_Rfact = " << effective_Rfact() ;
40 return ostr.str();
41}
42
43
44//----------------------------------------------------------------------
45/// return info about the type of area being used by this defn
46string AreaDefinition::description() const {
47 ostringstream ostr;
48
49 switch(area_type()) {
50 case active_area:
51 ostr << "Active area (hidden ghosts) with " ;
52 ostr << ghost_spec().description();
53 break;
54 case active_area_explicit_ghosts:
55 ostr << "Active area (explicit ghosts) with " ;
56 ostr << ghost_spec().description();
57 break;
58 case one_ghost_passive_area:
59 ostr << "Passive area (one ghost at a time) with " ;
60 ostr << ghost_spec().description();
61 break;
62 case passive_area:
63 ostr << "Passive area (optimal alg. based on jet.def.), where relevant with " ;
64 ostr << ghost_spec().description() ;
65 break;
66 case voronoi_area:
67 ostr << voronoi_spec().description();
68 break;
69 default:
70 cerr << "Error: unrecognized area_type in AreaDefinition::description():"
71 << area_type() << endl;
72 exit(-1);
73 }
74 return ostr.str();
75}
76
77FASTJET_END_NAMESPACE // defined in fastjet/internal/base.hh
Note: See TracBrowser for help on using the repository browser.