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);
75 eta_range = (cell_max-cell_min)+cell_max;
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);
88 phi_range = (cell_max-cell_min)+cell_max;
90 phi_range = (cell_min==cell_max)
92 : ((PHI_RANGE_MASK^(cell_min-cell_max)) + cell_max);
113 eta_range |= get_eta_cell(eta);
116 phi_range |= get_phi_cell(phi);
138 const 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;
unsigned int eta_range
eta range as a binary coding of covered cells
Ceta_phi_range()
default ctor
Ceta_phi_range & operator=(const Ceta_phi_range &r)
assignment of range
static double eta_max
maximal value for eta
class for holding a covering range in eta-phi
int add_particle(const double eta, const double phi)
add a particle to the range
unsigned int phi_range
phi range as a binary coding of covered cells
static double eta_min
minimal value for eta