00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #include "fastjet/AreaDefinition.hh"
00032 #include<sstream>
00033 #include<string>
00034
00035 using namespace std;
00036
00037 FASTJET_BEGIN_NAMESPACE
00038
00039 string VoronoiAreaSpec::description() const {
00040 ostringstream ostr;
00041 ostr << "Voronoi area with effective_Rfact = " << effective_Rfact() ;
00042 return ostr.str();
00043 }
00044
00045
00046
00048 string AreaDefinition::description() const {
00049 ostringstream ostr;
00050
00051 switch(area_type()) {
00052 case active_area:
00053 ostr << "Active area (hidden ghosts) with " ;
00054 ostr << ghost_spec().description();
00055 break;
00056 case active_area_explicit_ghosts:
00057 ostr << "Active area (explicit ghosts) with " ;
00058 ostr << ghost_spec().description();
00059 break;
00060 case one_ghost_passive_area:
00061 ostr << "Passive area (one ghost at a time) with " ;
00062 ostr << ghost_spec().description();
00063 break;
00064 case passive_area:
00065 ostr << "Passive area (optimal alg. based on jet.def.), where relevant with " ;
00066 ostr << ghost_spec().description() ;
00067 break;
00068 case voronoi_area:
00069 ostr << voronoi_spec().description();
00070 break;
00071 default:
00072 cerr << "Error: unrecognized area_type in AreaDefinition::description():"
00073 << area_type() << endl;
00074 exit(-1);
00075 }
00076 return ostr.str();
00077 }
00078
00079 FASTJET_END_NAMESPACE