11 lastReqSubdet_(0), etaMax_(0),
12 firstHFQuadRing_(40) {
37 for (
unsigned int i = 0 ;
i != baseIds.size() ; ++
i ) {
39 if (
id.det() == det &&
id.subdetId() == subdet ) {
47 LogDebug(
"HCalGeom") <<
"HcalDDDGeometry::getValidDetIds: "
48 <<
m_validIds.size() <<
" valid IDs found for detector "
49 << det <<
" Sub-detector " << subdet;
59 double abseta = fabs(r.
eta());
61 if (phi < 0) phi +=
twopi;
63 double z = fabs(r.
z());
65 LogDebug(
"HCalGeom") <<
"HcalDDDGeometry::getClosestCell for eta "
66 << r.
eta() <<
" phi " << phi/
deg <<
" z " << r.
z()
86 phibin = phibin*4 - 1;
95 int etabin = (r.
z() > 0) ? etaring : -etaring;
97 bestId =
HcalDetId(bc, etabin, phibin, dbin);
104 bestId =
HcalDetId(bc, etabin, phibin, dbin);
112 LogDebug(
"HCalGeom") <<
"HcalDDDGeometry::getClosestCell " << bestId;
122 for (
unsigned int i=0;
i<cells.size();
i++) {
126 LogDebug(
"HCalGeom") <<
"HcalDDDGeometry::insertCell " << cells.size()
127 <<
" cells inserted == Total " << num
Geom::Phi< T > phi() const
virtual ~HcalDDDGeometry()
The HcalDDDGeometry will delete all its cell geometries at destruction time.
virtual const std::vector< DetId > & getValidDetIds(DetId::Detector det=DetId::Detector(0), int subdet=0) const
Get a list of valid detector ids (for the given subdetector)
int insertCell(std::vector< HcalCellType > const &)
std::vector< HcalCellType > hcalCells_
std::vector< DetId > m_validIds
virtual const std::vector< DetId > & getValidDetIds(DetId::Detector det=DetId::Detector(0), int subdet=0) const
Get a list of valid detector ids (for the given subdetector)
DetId::Detector lastReqDet_
virtual DetId getClosestCell(const GlobalPoint &r) const