Skip to content

Commit

Permalink
Try to fix the issue of Layer 0 weight in HCAL in the version 13_0_X …
Browse files Browse the repository at this point in the history
…- bacport of cms-sw#42083
  • Loading branch information
Sunanda authored and Ming-Yan committed Nov 29, 2023
1 parent 5ca518b commit e638b5c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Geometry/HcalCommonData/src/HcalHitRelabeller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ double HcalHitRelabeller::energyWt(const uint32_t testId) const {
int det, z, depth, eta, phi, layer;
HcalTestNumbering::unpackHcalIndex(testId, det, z, depth, eta, phi, layer);
int zside = (z == 0) ? (-1) : (1);
double wt = ((((det == 1) && (layer <= 1)) || ((det == 2) && (layer <= 2))) && (depth == 1))
? theRecNumber->getLayer0Wt(det, phi, zside)
: 1.0;
double wt = (((det == 1) || (det == 2)) && (layer <= 1)) ? theRecNumber->getLayer0Wt(det, phi, zside) : 1.0;
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HcalSim") << "EnergyWT::det: " << det << " z: " << z << ":" << zside << " depth: " << depth
<< " ieta: " << eta << " iphi: " << phi << " layer: " << layer << " wt " << wt;
Expand Down

0 comments on commit e638b5c

Please sign in to comment.