SISCone
2.0.6
|
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 | ||
) |
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, siscone_spherical::sph_hash_element::is_stable, siscone_spherical::sph_hash_element::next, siscone::Creference::ref, and siscone_spherical::CSph3vector::ref.
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, siscone_spherical::sph_hash_element::is_stable, siscone_spherical::sph_hash_element::next, siscone::Creference::ref, and siscone_spherical::CSph3vector::ref.
int siscone_spherical::sph_hash_cones::mask |