SISCone  3.0.5
Public Member Functions | Public Attributes | List of all members
siscone_spherical::sph_hash_cones Class Reference

list of cones candidates. More...

#include <hash.h>

Collaboration diagram for siscone_spherical::sph_hash_cones:
Collaboration graph
[legend]

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. More...
 
int insert (CSphmomentum *v)
 insert a new candidate into the hash. More...
 

Public Attributes

sph_hash_element ** hash_array
 the cone data itself
 
int n_cones
 number of elements
 
int mask
 number of occupied cells More...
 
double R2
 circle radius (squared) NOTE: need to be set before any call to 'insert'
 
double tan2R
 its squreed tangent
 

Detailed Description

list of cones candidates.

We store in this class all the hash_elements and give functions to manipulate them.

Definition at line 61 of file hash.h.

Constructor & Destructor Documentation

◆ sph_hash_cones()

siscone_spherical::sph_hash_cones::sph_hash_cones ( int  _Np,
double  _radius 
)
Parameters
_Npnumber of particles
_radiuscone radius

Definition at line 49 of file hash.cpp.

Member Function Documentation

◆ insert() [1/2]

int siscone_spherical::sph_hash_cones::insert ( CSphmomentum v)

insert a new candidate into the hash.

Parameters
v4-momentum of te cone to add Note, in this case, we assume stability. We also assume that eta and phi are computed for v
Returns
0 on success, 1 on error

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.

◆ insert() [2/2]

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.

Parameters
v4-momentum of te cone to add
parentparent particle defining the cone
childchild particle defining the cone
p_iowhether the parent has to belong to the cone or not
c_iowhether the child has to belong to the cone or not
Returns
0 on success, 1 on error

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.

Member Data Documentation

◆ mask

int siscone_spherical::sph_hash_cones::mask

number of occupied cells

number of cells-1

Definition at line 102 of file hash.h.


The documentation for this class was generated from the following files: