32#define PHI_RANGE_MASK 0xFFFFFFFF
66 double xmin = max(c_eta-R,
eta_min+0.0001);
67 double xmax = min(c_eta+R,
eta_max-0.0001);
69 unsigned int cell_min = get_eta_cell(xmin);
70 unsigned int cell_max = get_eta_cell(xmax);
80 xmin = phi_in_range(c_phi-R);
81 xmax = phi_in_range(c_phi+R);
83 cell_min = get_phi_cell(xmin);
84 cell_max = get_phi_cell(xmax);
92 : ((PHI_RANGE_MASK^(cell_min-cell_max)) + cell_max);
138const Ceta_phi_range range_union (
const Ceta_phi_range &r1,
const Ceta_phi_range &r2){
142 tmp.
eta_range = r1.eta_range | r2.eta_range;
145 tmp.phi_range = r1.phi_range | r2.phi_range;
class for holding a covering range in eta-phi
unsigned int eta_range
eta range as a binary coding of covered cells
static double eta_max
maximal value for eta
int add_particle(const double eta, const double phi)
add a particle to the range
static double eta_min
minimal value for eta
Ceta_phi_range & operator=(const Ceta_phi_range &r)
assignment of range
Ceta_phi_range()
default ctor
unsigned int phi_range
phi range as a binary coding of covered cells