122 os <<
"PHG4CylinderCellGeom::identify - layer: " <<
layer
128 os <<
", zbins: " <<
nzbins
129 <<
", zmin: " <<
zmin
130 <<
", zstepsize: " <<
zstep;
133 os <<
", etabins: " <<
nzbins
134 <<
", etamin: " <<
zmin
135 <<
", etastepsize: " <<
zstep;
138 os <<
", etabins: " <<
nzbins
139 <<
", etamin: " <<
zmin
140 <<
", etastepsize: " <<
zstep;
143 os <<
", etabins: " <<
nzbins <<
" for Spacal";
146 os <<
"no valid binning method: " <<
binning << std::endl;
150 os <<
", phimin: " <<
phimin
157 std::pair<double, double>
160 if (ibin < 0 || ibin >
nzbins)
162 std::cout <<
PHWHERE <<
" Asking for invalid bin in z: " << ibin << std::endl;
167 double zhigh = zlow +
zstep;
168 return std::make_pair(zlow, zhigh);
171 std::pair<double, double>
174 if (ibin < 0 || ibin >
nzbins)
176 std::cout <<
PHWHERE <<
" Asking for invalid bin in z: " << ibin << std::endl;
182 double zhigh = zlow +
zstep;
183 return std::make_pair(zlow, zhigh);
186 std::pair<double, double>
191 std::cout <<
PHWHERE <<
"Asking for invalid bin in phi: " << ibin << std::endl;
196 double phihigh = philow +
phistep;
197 return std::make_pair(philow, phihigh);
209 return floor((z -
zmin) / zstep);
220 return floor((eta -
zmin) / zstep);
225 double norm_phi =
phi;
228 int nwraparound = -floor((phi -
phimin) * 0.5 / M_PI);
229 norm_phi += 2 * M_PI * nwraparound;
232 return floor((norm_phi -
phimin) / phistep);
238 if (ibin < 0 || ibin >
nzbins)
240 std::cout <<
PHWHERE <<
"Asking for invalid bin in z: " << ibin << std::endl;
250 if (ibin < 0 || ibin >
nzbins)
252 std::cout <<
PHWHERE <<
"Asking for invalid bin in eta: " << ibin << std::endl;
253 std::cout <<
"minbin: 0, maxbin " << nzbins << std::endl;
265 std::cout <<
PHWHERE <<
"Asking for invalid bin in phi: " << ibin << std::endl;
282 return "Eta/Phi bins";
285 return "Eta/numslat bins";
288 return "SPACAL Tower bins";
315 std::cout << src <<
" : ";
335 std::cout << src <<
" : ";