SISCone
3.0.5
|
class for holding a covering range in eta-phi More...
#include <geom_2d.h>
Public Member Functions | |
CSphtheta_phi_range () | |
default ctor | |
CSphtheta_phi_range (double c_theta, double c_phi, double R) | |
ctor with initialisation we initialise with a centre (in theta,phi) and a radius More... | |
CSphtheta_phi_range & | operator= (const CSphtheta_phi_range &r) |
assignment of range More... | |
int | add_particle (const double theta, const double phi) |
add a particle to the range More... | |
Public Attributes | |
unsigned int | theta_range |
theta range as a binary coding of covered cells | |
unsigned int | phi_range |
phi range as a binary coding of covered cells | |
Static Public Attributes | |
static double | theta_min = 0.0 |
extremal value for theta More... | |
static double | theta_max = M_PI |
maximal value for theta (set to pi) | |
class for holding a covering range in eta-phi
This class deals with ranges in the eta-phi plane. It implements methods to test if two ranges overlap and to take the union of two overlapping intervals.
siscone_spherical::CSphtheta_phi_range::CSphtheta_phi_range | ( | double | c_theta, |
double | c_phi, | ||
double | R | ||
) |
ctor with initialisation we initialise with a centre (in theta,phi) and a radius
c_theta | theta coordinate of the centre |
c_phi | phi coordinate of the centre |
R | radius |
Definition at line 65 of file geom_2d.cpp.
References twopi.
int siscone_spherical::CSphtheta_phi_range::add_particle | ( | const double | theta, |
const double | phi | ||
) |
add a particle to the range
theta | theta coordinate of the particle |
phi | phi coordinate of the particle |
Definition at line 130 of file geom_2d.cpp.
CSphtheta_phi_range & siscone_spherical::CSphtheta_phi_range::operator= | ( | const CSphtheta_phi_range & | r | ) |
assignment of range
r | range to assign to current one |
Definition at line 118 of file geom_2d.cpp.
References phi_range, and theta_range.
|
static |