Fork me on GitHub

source: svn/trunk/Utilities/Fastjet/src/AreaDefinition.cc@ 418

Last change on this file since 418 was 11, checked in by severine ovyn, 16 years ago

Fastjet added; CDFCones directory has been changed

File size: 2.7 KB
RevLine 
[11]1//STARTHEADER
2// $Id: AreaDefinition.cc,v 1.1 2008-11-06 14:32:13 ovyn Exp $
3//
4// Copyright (c) 2005-2007, Matteo Cacciari, Gavin 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, write to the Free Software
26// Foundation, Inc.:
27// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28//----------------------------------------------------------------------
29//ENDHEADER
30
31#include "../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:
72 cerr << "Error: unrecognized area_type in AreaDefinition::description():"
73 << area_type() << endl;
74 exit(-1);
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.