31 bound_t invalid_bound(NAN, NAN);
38 bound_t invalid_bound(NAN, NAN);
44 os <<
"RawTowerGeomContainer_Cylinderv1: radius: " <<
radius
51 os <<
"eta_bin[" << i <<
"](" << iter.first <<
", " << iter.second
59 os <<
"phi_bin[" << i <<
"](" << iter.first <<
", " << iter.second
74 <<
"RawTowerGeomContainer_Cylinderv1::get_etabounds - Asking for invalid bin in eta: "
88 <<
"RawTowerGeomContainer_Cylinderv1::get_phibounds - Asking for invalid bin in phi: "
102 double min_deta = 10;
106 const double mean_eta = 0.5 * (iter.first + iter.second);
108 if (eta >= iter.first && eta < iter.second)
117 const double deta = fabs(mean_eta - eta);
131 <<
"RawTowerGeomContainer_Cylinderv1::get_etabin - ERROR - Asking for invalid bin in eta "
146 double min_dphi = 10;
150 const double mean_phi = 0.5 * (iter.first + iter.second);
152 const double phi_fold = phi -
round((phi - mean_phi) / 2. / M_PI) * 2 * M_PI;
154 if (phi_fold >= iter.first && phi_fold < iter.second)
163 const double dphi = fabs(mean_phi - phi_fold);
177 <<
"RawTowerGeomContainer_Cylinderv1::get_phibin - ERROR - Asking for invalid bin in phi "
191 <<
"RawTowerGeomContainer_Cylinderv1::get_etacenter - Asking for invalid bin in eta: "
193 cout <<
"minbin: 0, maxbin " <<
get_etabins() << endl;
200 const std::pair<double, double>&
bounds)
205 <<
"RawTowerGeomContainer_Cylinderv1::set_bounds - Asking for invalid bin in eta: "
207 cout <<
"minbin: 0, maxbin " <<
get_etabins() << endl;
211 std::pair<double, double> b_reg(bounds);
212 if (b_reg.first > b_reg.second)
214 b_reg.second = bounds.first;
215 b_reg.first = bounds.second;
227 <<
"RawTowerGeomContainer_Cylinderv1::get_phicenter - Asking for invalid bin in phi: "
229 cout <<
"minbin: 0, maxbin " <<
get_phibins() << endl;
236 const std::pair<double, double>&
bounds)
241 <<
"RawTowerGeomContainer_Cylinderv1::set_bounds - Asking for invalid bin in phi: "
243 cout <<
"minbin: 0, maxbin " <<
get_phibins() << endl;
247 std::pair<double, double> b_reg(bounds);
248 if (b_reg.first > b_reg.second)
250 b_reg.second = bounds.first;
251 b_reg.first = bounds.second;