153 os <<
"PHG4CylinderCellGeom::identify - layer: " <<
layer
159 os <<
", zbins: " <<
nzbins
160 <<
", zmin: " <<
zmin
161 <<
", zstepsize: " <<
zstep;
164 os <<
", etabins: " <<
nzbins
165 <<
", etamin: " <<
zmin
166 <<
", etastepsize: " <<
zstep;
169 os <<
", etabins: " <<
nzbins
170 <<
", etamin: " <<
zmin
171 <<
", etastepsize: " <<
zstep;
174 os <<
", etabins: " <<
nzbins<<
" for Spacal";
177 os <<
"no valid binning method: " <<
binning << endl;
181 os <<
", phimin: " <<
phimin
191 if (ibin < 0 || ibin >
nzbins)
193 cout <<
PHWHERE <<
" Asking for invalid bin in z: " << ibin << endl;
198 double zhigh = zlow +
zstep;
199 return make_pair(zlow, zhigh);
205 if (ibin < 0 || ibin >
nzbins)
207 cout <<
PHWHERE <<
" Asking for invalid bin in z: " << ibin << endl;
213 double zhigh = zlow +
zstep;
214 return make_pair(zlow, zhigh);
223 cout <<
PHWHERE <<
"Asking for invalid bin in phi: " << ibin << endl;
228 double phihigh = philow +
phistep;
229 return make_pair(philow, phihigh);
260 double norm_phi = phi;
263 int nwraparound = -floor((phi-
phimin) * 0.5 / M_PI);
264 norm_phi += 2*M_PI*nwraparound;
273 if (ibin < 0 || ibin >
nzbins)
275 cout <<
PHWHERE <<
"Asking for invalid bin in z: " << ibin << endl;
285 if (ibin < 0 || ibin >
nzbins)
287 cout <<
PHWHERE <<
"Asking for invalid bin in eta: " << ibin << endl;
288 cout <<
"minbin: 0, maxbin " <<
nzbins << endl;
300 cout <<
PHWHERE <<
"Asking for invalid bin in phi: " << ibin << endl;
317 return "Eta/Phi bins";
320 return "Eta/numslat bins";
323 return "SPACAL Tower bins";
void set_zmin(const double z)
void set_etastep(const double z)
double get_etastep() const
virtual std::pair< double, double > get_phibounds(const int ibin) const
virtual int get_phibin(const double phi) const
virtual double get_phicenter(const int ibin) const
void set_etamin(const double z)
void set_zstep(const double z)
double get_phistep() const
double get_etamin() const
void set_phibins(const int i)
void set_phistep(const double phi)
void set_phimin(const double phi)
void check_binning_method_phi(const std::string &src="") const
virtual double get_etacenter(const int ibin) const
virtual double get_zcenter(const int ibin) const
virtual std::pair< double, double > get_zbounds(const int ibin) const
void identify(std::ostream &os=std::cout) const
void set_zbins(const int i)
void check_binning_method(const int i) const
void set_etabins(const int i)
double get_phimin() const
void check_binning_method_eta(const std::string &src="") const
virtual int get_zbin(const double z) const
virtual int get_etabin(const double eta) const
std::string methodname(const int i) const
virtual std::pair< double, double > get_etabounds(const int ibin) const