siscone::Ceta_phi_range Class Reference

class for holding a covering range in eta-phi More...

#include <geom_2d.h>

List of all members.

Public Member Functions

 Ceta_phi_range ()
 default ctor
 Ceta_phi_range (double c_eta, double c_phi, double R)
 ctor with initialisation we initialise with a centre (in eta,phi) and a radius
Ceta_phi_rangeoperator= (const Ceta_phi_range &r)
 assignment of range
int add_particle (const double eta, const double phi)
 add a particle to the range

Public Attributes

unsigned int eta_range
 eta 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 eta_min = -100.0
 maximal value for eta
static double eta_max = 100.0


Detailed Description

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.

Definition at line 120 of file geom_2d.h.


Constructor & Destructor Documentation

siscone::Ceta_phi_range::Ceta_phi_range ( double  c_eta,
double  c_phi,
double  R 
)

ctor with initialisation we initialise with a centre (in eta,phi) and a radius

Parameters:
c_eta eta coordinate of the centre
c_phi phi coordinate of the centre
R radius

Definition at line 63 of file geom_2d.cpp.

References eta_min, eta_range, and phi_range.


Member Function Documentation

Ceta_phi_range & siscone::Ceta_phi_range::operator= ( const Ceta_phi_range r  ) 

assignment of range

Parameters:
r range to assign to current one

Definition at line 99 of file geom_2d.cpp.

References eta_range, and phi_range.

int siscone::Ceta_phi_range::add_particle ( const double  eta,
const double  phi 
)

add a particle to the range

Parameters:
eta eta coordinate of the particle
phi phi coordinate of the particle
Returns:
0 on success, 1 on error

Definition at line 111 of file geom_2d.cpp.

References eta_range, and phi_range.


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