SISCone  2.0.5
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
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]

List of all members.

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
void build (CSphmomentum *_parent, double _VR)
 build the vicinity list from the list of points.

Public Attributes

CSphmomentumparent
 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< CSphmomentumplist
 the list of particles
std::vector
< siscone::Cvicinity_inclusion
pincluded
 the inclusion state of particles
CSphvicinity_elmve_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

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

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.

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.

Referenced by siscone_spherical::CSphstable_cones::get_stable_cones().

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.

Referenced by siscone_spherical::CSphstable_cones::init().


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 Wed May 30 2012 06:46:26 for SISCone by  Doxygen 1.8.1