siscone::Cvicinity Class Reference

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

#include <vicinity.h>

Inheritance diagram for siscone::Cvicinity:

Inheritance graph
[legend]
Collaboration diagram for siscone::Cvicinity:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Public Attributes

Cmomentumparent
 parent vector
double VR
 radius of the vicinity
double VR2
 squared radius of the vicinity
double R
 normal radius
double R2
 squared normal radius
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< Cmomentumplist
 the list of particles
std::vector< Cvicinity_inclusionpincluded
 the inclusion state of particles
Cvicinity_elmve_list
 list of vicinity elements built from particle list (size=2*n)
std::vector< Cvicinity_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 (Cmomentum *v)
 append a particle to the 'vicinity' list after having tested it and computed the angular-ordering quantities

Protected Attributes

double pcx
 parent centre (eta)
double pcy
 parent centre (phi)


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 95 of file vicinity.h.


Member Function Documentation

void siscone::Cvicinity::set_particle_list ( std::vector< Cmomentum > &  _particle_list  ) 

set the particle_list

Parameters:
_particle_list list of particles (type Cmomentum)

void siscone::Cvicinity::build ( Cmomentum _parent,
double  _VR 
)

build the vicinity list from the list of points.

Parameters:
_parent reference particle
_VR vicinity radius

Definition at line 175 of file vicinity.cpp.

References append_to_vicinity(), EPSILON_COCIRCULAR, siscone::Cmomentum::eta, inv_R_2EPS_COCIRC, inv_R_EPS_COCIRC, parent, pcx, pcy, siscone::Cmomentum::phi, plist, R, R2, vicinity, vicinity_size, VR, and VR2.

Referenced by siscone::Cstable_cones::get_stable_cones().

void siscone::Cvicinity::append_to_vicinity ( Cmomentum v  )  [protected]

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

Parameters:
v vector to test

Definition at line 219 of file vicinity.cpp.

References siscone::Cvicinity_elm::angle, siscone::Cvicinity_elm::cocircular, siscone::Cvicinity_elm::cocircular_range, siscone::Cvicinity_elm::eta, siscone::Cmomentum::eta, siscone::Cmomentum::index, inv_R_2EPS_COCIRC, inv_R_EPS_COCIRC, parent, pcx, pcy, siscone::Cvicinity_elm::phi, siscone::Cmomentum::phi, R2, siscone::Cvicinity_elm::side, twopi, ve_list, vicinity, and VR2.

Referenced by build().


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 Thu Apr 3 10:22:52 2008 for SISCone by  Doxygen 1.5.5