33 namespace siscone_spherical{
179 angular_dir2 = cross_product3(*
this, angular_dir1);
283 bool momentum_theta_less(
const CSphmomentum &v1,
const CSphmomentum &v2){
284 return v1._theta < v2._theta;
289 bool momentum_pt_less(
const CSphmomentum &v1,
const CSphmomentum &v2){
290 return v1.perp2() < v2.perp2();
references used for checksums.
base class for managing the spatial part of Cmomentum (defined after)
void build_norm()
build the spatial normfrom 4-momentum info !!! WARNING !!! !!! computing the norm is the only time-co...
double norm() const
3-vect norm
void get_angular_directions(CSph3vector &angular_dir1, CSph3vector &angular_dir2)
for this direction, compute the two reference directions used to measure angles
const CSph3vector operator+(const CSph3vector &v)
addition of vectors WARNING= norm is not updated
CSph3vector()
default ctor
CSph3vector & operator=(const CSph3vector &v)
assignment of vectors
double phi() const
3-vect azimuthal angle
CSph3vector & operator+=(const CSph3vector &v)
incrementation of vectors WARNING= norm is not updated
const CSph3vector operator-(const CSph3vector &v)
subtraction of vectors WARNING= norm is not updated
CSph3vector & operator/=(const double &r)
division by a constant WARNING= norm is not updated
CSph3vector & operator-=(const CSph3vector &v)
decrementation of vectors WARNING= norm is not updated
CSph3vector & operator*=(const double &r)
multiplication by a constant WARNING= norm is not updated
double _theta
particle theta angle (available ONLY after a call to build_thetaphi)
double _phi
particle phi angle (available ONLY after a call to build_thetaphi)
const CSph3vector operator/(const double &r)
division by a constant WARNING= norm is not updated
~CSph3vector()
default dtor
double _norm
particle spatial norm (available ONLY after a call to build_norm)
siscone::Creference ref
reference number for the vector
double theta() const
3-vect polar angle
void build_thetaphi()
just a useful tool to store theta and phi locally (in _theta and _phi) in case you need repeated acce...
base class for dynamic coordinates management
CSphmomentum & operator=(const CSphmomentum &v)
assignment of vectors
const CSphmomentum operator+(const CSphmomentum &v)
addition of vectors !!! WARNING !!! no updating of eta and phi !!!
~CSphmomentum()
ctor with detailed initialisation
int index
internal particle number
CSphmomentum & operator+=(const CSphmomentum &v)
incrementation of vectors !!! WARNING !!! no updating of eta and phi !!!
CSphmomentum()
default ctor
CSphmomentum & operator-=(const CSphmomentum &v)
decrementation of vectors !!! WARNING !!! no updating of eta and phi !!!