siscone is hosted by Hepforge, IPPP Durham

The SISCone Jet Algorithm

Version 3.0.6



SISCone 3.0.6
siscone_spherical::sph_hash_cones Class Reference

list of cones candidates. More...

#include <hash.h>

Collaboration diagram for siscone_spherical::sph_hash_cones:

Public Member Functions

 sph_hash_cones (int _Np, double _radius)
 
 ~sph_hash_cones ()
 destructor More...
 
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 More...
 
int n_cones
 number of elements More...
 
int mask
 number of occupied cells More...
 
double R2
 circle radius (squared) NOTE: need to be set before any call to 'insert' More...
 
double tan2R
 its squreed tangent More...
 

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.

References hash_array, mask, n_cones, and tan2R.

◆ ~sph_hash_cones()

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.

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, 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.

◆ 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, 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.

Member Data Documentation

◆ hash_array

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(), sph_hash_cones(), and ~sph_hash_cones().

◆ mask

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(), sph_hash_cones(), and ~sph_hash_cones().

◆ n_cones

int siscone_spherical::sph_hash_cones::n_cones

number of elements

Definition at line 94 of file hash.h.

Referenced by insert(), and sph_hash_cones().

◆ R2

double siscone_spherical::sph_hash_cones::R2

circle radius (squared) NOTE: need to be set before any call to 'insert'

Definition at line 106 of file hash.h.

◆ tan2R

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().


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

The SISCone project has been developed by Gavin Salam and Gregory Soyez
Documentation generated on Tue Jun 20 2023 18:08:37 for SISCone by  Doxygen 1.9.4