#include <ActiveAreaSpec.hh>
Collaboration diagram for fastjet::ActiveAreaSpec:

Public Member Functions | |
| ActiveAreaSpec () | |
| default constructor | |
| ActiveAreaSpec (double ghost_maxrap, int repeat=5, double ghost_area=0.01, double grid_scatter=1e-4, double kt_scatter=0.1, double mean_ghost_kt=1e-100) | |
| explicit constructor | |
| void | _initialize () |
| sets the detailed parameters for the ghosts (which may not be quite the same as those requested -- this is in order for things to fit in nicely into 2pi etc. | |
| double | ghost_etamax () const |
| double | ghost_maxrap () const |
| double | ghost_area () const |
| double | grid_scatter () const |
| double | kt_scatter () const |
| double | mean_ghost_kt () const |
| int | repeat () const |
| double | actual_ghost_area () const |
| int | n_ghosts () const |
| void | set_ghost_area (double val) |
| void | set_ghost_etamax (double val) |
| void | set_ghost_maxrap (double val) |
| void | set_grid_scatter (double val) |
| void | set_kt_scatter (double val) |
| void | set_mean_ghost_kt (double val) |
| void | set_repeat (int val) |
| void | add_ghosts (std::vector< PseudoJet > &) const |
| adds the ghost 4-momenta to the vector of PseudoJet's | |
Private Member Functions | |
| double | _our_rand () const |
Private Attributes | |
| double | _ghost_maxrap |
| int | _repeat |
| double | _ghost_area |
| double | _grid_scatter |
| double | _kt_scatter |
| double | _mean_ghost_kt |
| double | _actual_ghost_area |
| double | _dphi |
| double | _drap |
| int | _n_ghosts |
| int | _nphi |
| int | _nrap |
Static Private Attributes | |
| static BasicRandom< double > | _random_generator |
Definition at line 47 of file ActiveAreaSpec.hh.
|
|
default constructor
Definition at line 50 of file ActiveAreaSpec.hh. 00050 : _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();};
|
|
||||||||||||||||||||||||||||
|
explicit constructor
Definition at line 56 of file ActiveAreaSpec.hh. 00061 : 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();};
|
|
|
sets the detailed parameters for the ghosts (which may not be quite the same as those requested -- this is in order for things to fit in nicely into 2pi etc. .. Definition at line 44 of file ActiveAreaSpec.cc. References _actual_ghost_area, _dphi, _drap, _ghost_area, _ghost_maxrap, _n_ghosts, _nphi, _nrap, and fastjet::twopi. 00044 {
00045 // add on area-measuring dummy particles
00046 _drap = sqrt(_ghost_area);
00047 _dphi = _drap;
00048 _nphi = int(ceil(twopi/_dphi)); _dphi = twopi/_nphi;
00049 _nrap = int(ceil(_ghost_maxrap/_drap)); _drap = _ghost_maxrap / _nrap;
00050 _actual_ghost_area = _dphi * _drap;
00051 _n_ghosts = (2*_nrap+1)*_nphi;
00052
00053 //_random_generator.info(cerr);
00054 }
|
|
|
Definition at line 114 of file ActiveAreaSpec.hh. Referenced by add_ghosts(). 00114 {return _random_generator();};
|
|
|
Definition at line 84 of file ActiveAreaSpec.hh. Referenced by fastjet::ClusterSequenceActiveAreaExplicitGhosts::_add_ghosts(). 00084 {return _actual_ghost_area;};
|
|
|
adds the ghost 4-momenta to the vector of PseudoJet's
Definition at line 58 of file ActiveAreaSpec.cc. References _dphi, _drap, _grid_scatter, _kt_scatter, _mean_ghost_kt, _nphi, _nrap, and _our_rand(). Referenced by fastjet::ClusterSequenceActiveAreaExplicitGhosts::_add_ghosts(). 00058 {
00059 // add momenta for ghosts
00060 for (int irap = -_nrap; irap <= _nrap; irap++) {
00061 for (int iphi = 0; iphi < _nphi; iphi++) {
00062 // // include random offsets for all quantities
00063 // double phi = (iphi+0.5) * _dphi + _dphi*rand()*_grid_scatter/RAND_MAX;
00064 // double rap = irap * _drap + _drap*rand()*_grid_scatter/RAND_MAX;
00065 // //double phi = (iphi+0.5) * _dphi* + rand()*_grid_scatter/RAND_MAX;
00066 // //double rap = irap * _drap + rand()*_grid_scatter/RAND_MAX;
00067 // double kt = _mean_ghost_kt*(1+rand()*_kt_scatter/RAND_MAX);
00068
00069 // include random offsets for all quantities
00070 double phi = (iphi+0.5) * _dphi + _dphi*_our_rand()*_grid_scatter;
00071 double rap = irap * _drap + _drap*_our_rand()*_grid_scatter;
00072 //double phi = (iphi+0.5) * _dphi* + _our_rand()*_grid_scatter;
00073 //double rap = irap * _drap + _our_rand()*_grid_scatter;
00074 double kt = _mean_ghost_kt*(1+_our_rand()*_kt_scatter);
00075
00076
00077
00078 double pminus = kt*exp(-rap);
00079 double pplus = kt*exp(+rap);
00080 double px = kt*sin(phi);
00081 double py = kt*cos(phi);
00082 //cout << kt<<" "<<rap<<" "<<phi<<"\n";
00083 //if (phi>=twopi || phi < 0.0) cout << "Hey: "<< phi-twopi<<"\n";
00084 PseudoJet mom(px,py,0.5*(pplus-pminus),0.5*(pplus+pminus));
00085 //mom.set_user_index(1); // for ghost particles (user index now lost...)
00086 event.push_back(mom);
00087 //_is_pure_ghost.push_back(true);
00088 }
00089 }
00090 }
|
|
|
Definition at line 77 of file ActiveAreaSpec.hh. 00077 {return _ghost_area ;};
|
|
|
Definition at line 75 of file ActiveAreaSpec.hh. 00075 {return _ghost_maxrap;};
|
|
|
Definition at line 76 of file ActiveAreaSpec.hh. Referenced by fastjet::ClusterSequenceActiveArea::_initialise_and_run_AA(). 00076 {return _ghost_maxrap;};
|
|
|
Definition at line 78 of file ActiveAreaSpec.hh. 00078 {return _grid_scatter;};
|
|
|
Definition at line 79 of file ActiveAreaSpec.hh. 00079 {return _kt_scatter ;};
|
|
|
Definition at line 80 of file ActiveAreaSpec.hh. 00080 {return _mean_ghost_kt ;};
|
|
|
Definition at line 85 of file ActiveAreaSpec.hh. Referenced by fastjet::ClusterSequenceActiveAreaExplicitGhosts::_add_ghosts(). 00085 {return _n_ghosts;};
|
|
|
Definition at line 81 of file ActiveAreaSpec.hh. Referenced by fastjet::ClusterSequenceActiveArea::_initialise_and_run_AA(). 00081 {return _repeat ;};
|
|
|
Definition at line 88 of file ActiveAreaSpec.hh. 00088 {_ghost_area = val; _initialize();};
|
|
|
Definition at line 89 of file ActiveAreaSpec.hh. 00089 {_ghost_maxrap = val; _initialize();};
|
|
|
Definition at line 90 of file ActiveAreaSpec.hh. 00090 {_ghost_maxrap = val; _initialize();};
|
|
|
Definition at line 91 of file ActiveAreaSpec.hh. 00091 {_grid_scatter = val; };
|
|
|
Definition at line 92 of file ActiveAreaSpec.hh. 00092 {_kt_scatter = val; };
|
|
|
Definition at line 93 of file ActiveAreaSpec.hh. 00093 {_mean_ghost_kt = val; };
|
|
|
Definition at line 94 of file ActiveAreaSpec.hh. 00094 {_repeat = val; };
|
|
|
Definition at line 110 of file ActiveAreaSpec.hh. Referenced by _initialize(). |
|
|
Definition at line 110 of file ActiveAreaSpec.hh. Referenced by _initialize(), and add_ghosts(). |
|
|
Definition at line 110 of file ActiveAreaSpec.hh. Referenced by _initialize(), and add_ghosts(). |
|
|
Definition at line 104 of file ActiveAreaSpec.hh. Referenced by _initialize(). |
|
|
Definition at line 102 of file ActiveAreaSpec.hh. Referenced by _initialize(). |
|
|
Definition at line 105 of file ActiveAreaSpec.hh. Referenced by add_ghosts(). |
|
|
Definition at line 106 of file ActiveAreaSpec.hh. Referenced by add_ghosts(). |
|
|
Definition at line 107 of file ActiveAreaSpec.hh. Referenced by add_ghosts(). |
|
|
Definition at line 111 of file ActiveAreaSpec.hh. Referenced by _initialize(). |
|
|
Definition at line 111 of file ActiveAreaSpec.hh. Referenced by _initialize(), and add_ghosts(). |
|
|
Definition at line 111 of file ActiveAreaSpec.hh. Referenced by _initialize(), and add_ghosts(). |
|
|
Definition at line 38 of file ActiveAreaSpec.cc. |
|
|
Definition at line 103 of file ActiveAreaSpec.hh. |
1.4.2