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
00032 #ifndef __FASTJET_ACTIVEAREASPEC_HH__
00033 #define __FASTJET_ACTIVEAREASPEC_HH__
00034
00035 #include<vector>
00036 #include "fastjet/PseudoJet.hh"
00037 #include "fastjet/internal/BasicRandom.hh"
00038
00039
00040 #define STATIC_GENERATOR 1
00041
00042 FASTJET_BEGIN_NAMESPACE
00043
00044
00047 class ActiveAreaSpec {
00048 public:
00050 ActiveAreaSpec(): _ghost_maxrap(6.0), _repeat(5), _ghost_area(0.01),
00051 _grid_scatter(1e-4), _kt_scatter(0.1),
00052 _mean_ghost_kt(1e-100),
00053 _actual_ghost_area(-1.0) {_initialize();};
00054
00056 explicit ActiveAreaSpec(double ghost_maxrap,
00057 int repeat = 5,
00058 double ghost_area=0.01,
00059 double grid_scatter = 1e-4,
00060 double kt_scatter = 0.1,
00061 double mean_ghost_kt = 1e-100):
00062 _ghost_maxrap(ghost_maxrap),
00063 _repeat(repeat),
00064 _ghost_area(ghost_area),
00065 _grid_scatter(grid_scatter),
00066 _kt_scatter(kt_scatter),
00067 _mean_ghost_kt(mean_ghost_kt),
00068 _actual_ghost_area(-1.0) {_initialize();};
00069
00070
00072 void _initialize();
00073
00074
00075 inline double ghost_etamax() const {return _ghost_maxrap;};
00076 inline double ghost_maxrap() const {return _ghost_maxrap;};
00077 inline double ghost_area () const {return _ghost_area ;};
00078 inline double grid_scatter() const {return _grid_scatter;};
00079 inline double kt_scatter () const {return _kt_scatter ;};
00080 inline double mean_ghost_kt() const {return _mean_ghost_kt ;};
00081 inline int repeat () const {return _repeat ;};
00082
00083
00084 inline double actual_ghost_area() const {return _actual_ghost_area;};
00085 inline int n_ghosts() const {return _n_ghosts;};
00086
00087
00088 inline void set_ghost_area (double val) {_ghost_area = val; _initialize();};
00089 inline void set_ghost_etamax(double val) {_ghost_maxrap = val; _initialize();};
00090 inline void set_ghost_maxrap(double val) {_ghost_maxrap = val; _initialize();};
00091 inline void set_grid_scatter(double val) {_grid_scatter = val; };
00092 inline void set_kt_scatter (double val) {_kt_scatter = val; };
00093 inline void set_mean_ghost_kt(double val){_mean_ghost_kt = val; };
00094 inline void set_repeat (int val) {_repeat = val; };
00095
00097 void add_ghosts(std::vector<PseudoJet> & ) const;
00098
00099 private:
00100
00101
00102 double _ghost_maxrap;
00103 int _repeat ;
00104 double _ghost_area ;
00105 double _grid_scatter;
00106 double _kt_scatter ;
00107 double _mean_ghost_kt;
00108
00109
00110 double _actual_ghost_area, _dphi, _drap;
00111 int _n_ghosts, _nphi, _nrap;
00112
00113
00114 inline double _our_rand() const {return _random_generator();};
00115
00116 static BasicRandom<double> _random_generator;
00117
00118
00119
00120 };
00121
00122 FASTJET_END_NAMESPACE
00123
00124 #endif // __FASTJET_ACTIVEAREASPEC_HH__