|
SISCone 3.0.5
|
list of cones candidates. More...
#include <hash.h>

Public Member Functions | |
| sph_hash_cones (int _Np, double _radius) | |
| ~sph_hash_cones () | |
| destructor | |
| int | insert (CSphmomentum *v, CSphmomentum *parent, CSphmomentum *child, bool p_io, bool c_io) |
| insert a new candidate into the hash. | |
| int | insert (CSphmomentum *v) |
| insert a new candidate into the hash. | |
Public Attributes | |
| sph_hash_element ** | hash_array |
| the cone data itself | |
| int | n_cones |
| number of elements | |
| int | mask |
| number of occupied cells | |
| double | R2 |
| circle radius (squared) NOTE: need to be set before any call to 'insert' | |
| double | tan2R |
| its squreed tangent | |
list of cones candidates.
We store in this class all the hash_elements and give functions to manipulate them.
| siscone_spherical::sph_hash_cones::sph_hash_cones | ( | int | _Np, |
| double | _radius | ||
| ) |
| siscone_spherical::sph_hash_cones::~sph_hash_cones | ( | ) |
destructor
Definition at line 80 of file hash.cpp.
References hash_array, mask, and siscone_spherical::sph_hash_element::next.
| int siscone_spherical::sph_hash_cones::insert | ( | CSphmomentum * | v | ) |
insert a new candidate into the hash.
| v | 4-momentum of te cone to add Note, in this case, we assume stability. We also assume that eta and phi are computed for v |
Definition at line 169 of file hash.cpp.
References siscone_spherical::sph_hash_element::centre, hash_array, siscone_spherical::sph_hash_element::is_stable, mask, n_cones, siscone_spherical::sph_hash_element::next, siscone::Creference::ref, and siscone_spherical::CSph3vector::ref.
| int siscone_spherical::sph_hash_cones::insert | ( | CSphmomentum * | v, |
| CSphmomentum * | parent, | ||
| CSphmomentum * | child, | ||
| bool | p_io, | ||
| bool | c_io | ||
| ) |
insert a new candidate into the hash.
| v | 4-momentum of te cone to add |
| parent | parent particle defining the cone |
| child | child particle defining the cone |
| p_io | whether the parent has to belong to the cone or not |
| c_io | whether the child has to belong to the cone or not |
Definition at line 105 of file hash.cpp.
References siscone_spherical::sph_hash_element::centre, hash_array, siscone_spherical::sph_hash_element::is_stable, mask, n_cones, siscone_spherical::sph_hash_element::next, siscone::Creference::ref, siscone_spherical::CSph3vector::ref, and tan2R.
| sph_hash_element** siscone_spherical::sph_hash_cones::hash_array |
the cone data itself
Definition at line 91 of file hash.h.
Referenced by insert(), insert(), sph_hash_cones(), and ~sph_hash_cones().
| int siscone_spherical::sph_hash_cones::mask |
number of occupied cells
number of cells-1
Definition at line 102 of file hash.h.
Referenced by insert(), insert(), sph_hash_cones(), and ~sph_hash_cones().
| int siscone_spherical::sph_hash_cones::n_cones |
number of elements
Definition at line 94 of file hash.h.
Referenced by insert(), insert(), and sph_hash_cones().
| double siscone_spherical::sph_hash_cones::R2 |
| double siscone_spherical::sph_hash_cones::tan2R |
its squreed tangent
Definition at line 109 of file hash.h.
Referenced by insert(), and sph_hash_cones().