SISCone  2.0.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
siscone_spherical::CSphvicinity Class Reference

list of element in the vicinity of a parent. More...

#include <vicinity.h>

Inheritance diagram for siscone_spherical::CSphvicinity:
Inheritance graph
[legend]
Collaboration diagram for siscone_spherical::CSphvicinity:
Collaboration graph
[legend]

Public Member Functions

 CSphvicinity ()
 default constructor
 
 CSphvicinity (std::vector< CSphmomentum > &_particle_list)
 constructor with initialisation (see set_particle_list)
 
 ~CSphvicinity ()
 default destructor
 
void set_particle_list (std::vector< CSphmomentum > &_particle_list)
 set the particle_list More...
 
void build (CSphmomentum *_parent, double _VR)
 build the vicinity list from the list of points. More...
 

Public Attributes

CSphmomentum * parent
 parent vector
 
double VR
 radius of the vicinity
 
double VR2
 squared radius of the vicinity
 
double cosVR
 cosine of the radius of the vicinity
 
double R
 normal radius
 
double R2
 squared normal radius
 
double tan2R
 squared tangent of the normal radius
 
double D2_R
 euclidian distance (squared) corresp. to the arc R
 
double inv_R_EPS_COCIRC
 R / EPSILON_COCIRCULAR.
 
double inv_R_2EPS_COCIRC
 R / (2*EPSILON_COCIRCULAR)
 
int n_part
 number of particles
 
std::vector< CSphmomentum > plist
 the list of particles
 
std::vector< siscone::Cvicinity_inclusion > pincluded
 the inclusion state of particles
 
CSphvicinity_elm * ve_list
 list of vicinity elements built from particle list (size=2*n)
 
std::vector< CSphvicinity_elm * > vicinity
 list of points in parent's vicinity
 
unsigned int vicinity_size
 number of elements in vicinity
 

Protected Member Functions

void append_to_vicinity (CSphmomentum *v)
 append a particle to the 'vicinity' list after having tested it and computed the angular-ordering quantities More...
 

Protected Attributes

CSph3vector parent_centre
 parent centre
 
CSph3vector angular_dir1
 main direction to measure angles
 
CSph3vector angular_dir2
 second direction to measure angles (sign)
 

Detailed Description

list of element in the vicinity of a parent.

class used to manage the points which are in the vicinity of a parent point.

Definition at line 83 of file vicinity.h.

Member Function Documentation

§ append_to_vicinity()

void siscone_spherical::CSphvicinity::append_to_vicinity ( CSphmomentum *  v)
protected

append a particle to the 'vicinity' list after having tested it and computed the angular-ordering quantities

Parameters
vvector to test

Definition at line 234 of file vicinity.cpp.

References siscone_spherical::CSph3vector::_norm, siscone_spherical::CSph3vector::build_norm(), and siscone_spherical::CSphmomentum::index.

§ build()

void siscone_spherical::CSphvicinity::build ( CSphmomentum *  _parent,
double  _VR 
)

build the vicinity list from the list of points.

Parameters
_parentreference particle
_VRvicinity radius

Definition at line 177 of file vicinity.cpp.

References EPSILON_COCIRCULAR.

§ set_particle_list()

void siscone_spherical::CSphvicinity::set_particle_list ( std::vector< CSphmomentum > &  _particle_list)

set the particle_list

Parameters
_particle_listlist of particles (type CSphmomentum)

Definition at line 105 of file vicinity.cpp.


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 for SISCone by  Doxygen 1.8.12