Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

fastjet::ActiveAreaSpec Class Reference

Class that defines the parameters that go into the measurement of active jet areas. More...

#include <ActiveAreaSpec.hh>

Collaboration diagram for fastjet::ActiveAreaSpec:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Class that defines the parameters that go into the measurement of active jet areas.

Definition at line 47 of file ActiveAreaSpec.hh.


Constructor & Destructor Documentation

fastjet::ActiveAreaSpec::ActiveAreaSpec  )  [inline]
 

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();};

fastjet::ActiveAreaSpec::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
[inline, explicit]
 

explicit constructor

Definition at line 56 of file ActiveAreaSpec.hh.


Member Function Documentation

void fastjet::ActiveAreaSpec::_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 }

double fastjet::ActiveAreaSpec::_our_rand  )  const [inline, private]
 

Definition at line 114 of file ActiveAreaSpec.hh.

Referenced by add_ghosts().

00114 {return _random_generator();};

double fastjet::ActiveAreaSpec::actual_ghost_area  )  const [inline]
 

Definition at line 84 of file ActiveAreaSpec.hh.

Referenced by fastjet::ClusterSequenceActiveAreaExplicitGhosts::_add_ghosts().

00084 {return _actual_ghost_area;};

void fastjet::ActiveAreaSpec::add_ghosts std::vector< PseudoJet > &   )  const
 

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 }

double fastjet::ActiveAreaSpec::ghost_area  )  const [inline]
 

Definition at line 77 of file ActiveAreaSpec.hh.

00077 {return _ghost_area   ;};

double fastjet::ActiveAreaSpec::ghost_etamax  )  const [inline]
 

Definition at line 75 of file ActiveAreaSpec.hh.

00075 {return _ghost_maxrap;};

double fastjet::ActiveAreaSpec::ghost_maxrap  )  const [inline]
 

Definition at line 76 of file ActiveAreaSpec.hh.

Referenced by fastjet::ClusterSequenceActiveArea::_initialise_and_run_AA().

00076 {return _ghost_maxrap;};

double fastjet::ActiveAreaSpec::grid_scatter  )  const [inline]
 

Definition at line 78 of file ActiveAreaSpec.hh.

00078 {return _grid_scatter;};

double fastjet::ActiveAreaSpec::kt_scatter  )  const [inline]
 

Definition at line 79 of file ActiveAreaSpec.hh.

00079 {return _kt_scatter  ;};

double fastjet::ActiveAreaSpec::mean_ghost_kt  )  const [inline]
 

Definition at line 80 of file ActiveAreaSpec.hh.

00080 {return _mean_ghost_kt  ;};

int fastjet::ActiveAreaSpec::n_ghosts  )  const [inline]
 

Definition at line 85 of file ActiveAreaSpec.hh.

Referenced by fastjet::ClusterSequenceActiveAreaExplicitGhosts::_add_ghosts().

00085 {return _n_ghosts;};

int fastjet::ActiveAreaSpec::repeat  )  const [inline]
 

Definition at line 81 of file ActiveAreaSpec.hh.

Referenced by fastjet::ClusterSequenceActiveArea::_initialise_and_run_AA().

00081 {return _repeat      ;};

void fastjet::ActiveAreaSpec::set_ghost_area double  val  )  [inline]
 

Definition at line 88 of file ActiveAreaSpec.hh.

00088 {_ghost_area    = val; _initialize();};

void fastjet::ActiveAreaSpec::set_ghost_etamax double  val  )  [inline]
 

Definition at line 89 of file ActiveAreaSpec.hh.

00089 {_ghost_maxrap = val; _initialize();};

void fastjet::ActiveAreaSpec::set_ghost_maxrap double  val  )  [inline]
 

Definition at line 90 of file ActiveAreaSpec.hh.

00090 {_ghost_maxrap = val; _initialize();};

void fastjet::ActiveAreaSpec::set_grid_scatter double  val  )  [inline]
 

Definition at line 91 of file ActiveAreaSpec.hh.

00091 {_grid_scatter   = val; };

void fastjet::ActiveAreaSpec::set_kt_scatter double  val  )  [inline]
 

Definition at line 92 of file ActiveAreaSpec.hh.

00092 {_kt_scatter     = val; };

void fastjet::ActiveAreaSpec::set_mean_ghost_kt double  val  )  [inline]
 

Definition at line 93 of file ActiveAreaSpec.hh.

00093 {_mean_ghost_kt  = val; };

void fastjet::ActiveAreaSpec::set_repeat int  val  )  [inline]
 

Definition at line 94 of file ActiveAreaSpec.hh.

00094 {_repeat         = val; };


Member Data Documentation

double fastjet::ActiveAreaSpec::_actual_ghost_area [private]
 

Definition at line 110 of file ActiveAreaSpec.hh.

Referenced by _initialize().

double fastjet::ActiveAreaSpec::_dphi [private]
 

Definition at line 110 of file ActiveAreaSpec.hh.

Referenced by _initialize(), and add_ghosts().

double fastjet::ActiveAreaSpec::_drap [private]
 

Definition at line 110 of file ActiveAreaSpec.hh.

Referenced by _initialize(), and add_ghosts().

double fastjet::ActiveAreaSpec::_ghost_area [private]
 

Definition at line 104 of file ActiveAreaSpec.hh.

Referenced by _initialize().

double fastjet::ActiveAreaSpec::_ghost_maxrap [private]
 

Definition at line 102 of file ActiveAreaSpec.hh.

Referenced by _initialize().

double fastjet::ActiveAreaSpec::_grid_scatter [private]
 

Definition at line 105 of file ActiveAreaSpec.hh.

Referenced by add_ghosts().

double fastjet::ActiveAreaSpec::_kt_scatter [private]
 

Definition at line 106 of file ActiveAreaSpec.hh.

Referenced by add_ghosts().

double fastjet::ActiveAreaSpec::_mean_ghost_kt [private]
 

Definition at line 107 of file ActiveAreaSpec.hh.

Referenced by add_ghosts().

int fastjet::ActiveAreaSpec::_n_ghosts [private]
 

Definition at line 111 of file ActiveAreaSpec.hh.

Referenced by _initialize().

int fastjet::ActiveAreaSpec::_nphi [private]
 

Definition at line 111 of file ActiveAreaSpec.hh.

Referenced by _initialize(), and add_ghosts().

int fastjet::ActiveAreaSpec::_nrap [private]
 

Definition at line 111 of file ActiveAreaSpec.hh.

Referenced by _initialize(), and add_ghosts().

BasicRandom< double > fastjet::ActiveAreaSpec::_random_generator [static, private]
 

Definition at line 38 of file ActiveAreaSpec.cc.

int fastjet::ActiveAreaSpec::_repeat [private]
 

Definition at line 103 of file ActiveAreaSpec.hh.


The documentation for this class was generated from the following files:
Generated on Sat Mar 3 12:36:33 2007 for fastjet by  doxygen 1.4.2