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

Public Member Functions | |
| hash_cones (int _Np, double _R2) | |
| constructor with initialisation More... | |
| ~hash_cones () | |
| destructor | |
| int | insert (Cmomentum *v, Cmomentum *parent, Cmomentum *child, bool p_io, bool c_io) |
| insert a new candidate into the hash. More... | |
| int | insert (Cmomentum *v) |
| insert a new candidate into the hash. More... | |
| bool | is_inside (Cmomentum *centre, Cmomentum *v) |
| test if a particle is inside a cone of given centre. More... | |
Public Attributes | |
| 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' | |
list of cones candidates.
We store in this class all the hash_elements and give functions to manipulate them.
| siscone::hash_cones::hash_cones | ( | int | _Np, |
| double | _R2 | ||
| ) |
| int siscone::hash_cones::insert | ( | Cmomentum * | v, |
| Cmomentum * | parent, | ||
| Cmomentum * | 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 102 of file hash.cpp.
References siscone::Cmomentum::build_etaphi(), siscone::hash_element::eta, siscone::Cmomentum::eta, siscone::hash_element::is_stable, siscone::hash_element::next, siscone::hash_element::phi, siscone::Cmomentum::phi, siscone::hash_element::ref, siscone::Creference::ref, and siscone::Cmomentum::ref.
| int siscone::hash_cones::insert | ( | Cmomentum * | 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 171 of file hash.cpp.
References siscone::hash_element::eta, siscone::Cmomentum::eta, siscone::hash_element::is_stable, siscone::hash_element::next, siscone::hash_element::phi, siscone::Cmomentum::phi, siscone::hash_element::ref, siscone::Creference::ref, and siscone::Cmomentum::ref.
test if a particle is inside a cone of given centre.
check if the particle of coordinates 'v' is inside the circle of radius R centered at 'centre'.
| centre | centre of the circle |
| v | particle to test |
Definition at line 219 of file hash.cpp.
References siscone::Cmomentum::eta, and siscone::Cmomentum::phi.
| int siscone::hash_cones::mask |