diff --git a/SimG4CMS/Calo/plugins/HGCalMouseBiteTester.cc b/SimG4CMS/Calo/plugins/HGCalMouseBiteTester.cc index e0747d5aa415b..bf5af621e5a36 100644 --- a/SimG4CMS/Calo/plugins/HGCalMouseBiteTester.cc +++ b/SimG4CMS/Calo/plugins/HGCalMouseBiteTester.cc @@ -111,11 +111,11 @@ void HGCalMouseBiteTester::analyze(const edm::Event& iEvent, const edm::EventSet int orient = HGCalWaferType::getOrient(index, hgcons_.getParameter()->waferInfoMap_); int placeIndex_ = HGCalCell::cellPlacementIndex(zside, frontBack, orient); int waferType_ = HGCalWaferType::getType(index, hgcons_.getParameter()->waferInfoMap_); - double mouseBiteCut_ = waferSize_ * tan(30.0 * CLHEP::deg) - 5.0; + double mouseBiteCut_ = hgcons_.mouseBite(false); bool v17OrLess = hgcons_.v17OrLess(); HGCGuardRing guardRing_(hgcons_); HGCGuardRingPartial guardRingPartial_(hgcons_); - HGCMouseBite mouseBite_(hgcons_, angle_, mouseBiteCut_, true); + HGCMouseBite mouseBite_(hgcons_, angle_, (waferSize_ * tan(30.0 * CLHEP::deg) - mouseBiteCut_), true); const int nFine(12), nCoarse(8); double r2 = 0.5 * waferSize_; double R2 = 2 * r2 / sqrt(3); diff --git a/SimG4CMS/Calo/src/HGCGuardRing.cc b/SimG4CMS/Calo/src/HGCGuardRing.cc index 977bf0e044428..7756fea428797 100644 --- a/SimG4CMS/Calo/src/HGCGuardRing.cc +++ b/SimG4CMS/Calo/src/HGCGuardRing.cc @@ -11,10 +11,10 @@ HGCGuardRing::HGCGuardRing(const HGCalDDDConstants& hgc) modeUV_(hgcons_.geomMode()), v17OrLess_(hgcons_.v17OrLess()), waferSize_(hgcons_.waferSize(false)), - sensorSizeOffset_(hgcons_.getParameter()->sensorSizeOffset_), - guardRingOffset_(hgcons_.getParameter()->guardRingOffset_) { - offset_ = sensorSizeOffset_ + 2.0 * guardRingOffset_; - xmax_ = 0.5 * (waferSize_ - offset_); + sensorSizeOffset_(hgcons_.sensorSizeOffset(false)), + guardRingOffset_(hgcons_.guardRingOffset(false)) { + offset_ = sensorSizeOffset_ + guardRingOffset_; + xmax_ = 0.5 * waferSize_ - offset_; ymax_ = xmax_ / sqrt3_; #ifdef EDM_ML_DEBUG edm::LogVerbatim("HGCSim") << "Creating HGCGuardRing with wafer size " << waferSize_ << ", Offsets " diff --git a/SimG4CMS/Calo/src/HGCGuardRingPartial.cc b/SimG4CMS/Calo/src/HGCGuardRingPartial.cc index fea159c7001a5..8daaec5df9a02 100644 --- a/SimG4CMS/Calo/src/HGCGuardRingPartial.cc +++ b/SimG4CMS/Calo/src/HGCGuardRingPartial.cc @@ -13,7 +13,7 @@ HGCGuardRingPartial::HGCGuardRingPartial(const HGCalDDDConstants& hgc) modeUV_(hgcons_.geomMode()), v17OrLess_(hgcons_.v17OrLess()), waferSize_(hgcons_.waferSize(false)), - guardRingOffset_(hgcons_.getParameter()->guardRingOffset_) { + guardRingOffset_(hgcons_.guardRingOffset(false)) { offset_ = guardRingOffset_; c22_ = (v17OrLess_) ? HGCalTypes::c22O : HGCalTypes::c22; c27_ = (v17OrLess_) ? HGCalTypes::c27O : HGCalTypes::c27;