Skip to content

Commit

Permalink
Merge pull request #46734 from bsunanda/Phase2-hgx360U
Browse files Browse the repository at this point in the history
Phase2-hgx360U Update the code for guard ring and mouse bite usage in full and partial wafers in HGCal geometry definition
  • Loading branch information
cmsbuild authored Nov 21, 2024
2 parents 832166e + 13ff322 commit 6161412
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions SimG4CMS/Calo/plugins/HGCalMouseBiteTester.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions SimG4CMS/Calo/src/HGCGuardRing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
2 changes: 1 addition & 1 deletion SimG4CMS/Calo/src/HGCGuardRingPartial.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6161412

Please sign in to comment.