Skip to content

Commit

Permalink
A fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Jun 27, 2023
1 parent bd183b8 commit bf27568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Geometry/HcalCommonData/src/HcalHitRelabeller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ 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) || (det == 2)) && (layer <= 1)) ? theRecNumber->getLayer0Wt(det, phi, zside) : 1.0;
double wt = ((((det == 1) && (layer <= 1)) || ((det == 2) && (layer <= 2))) && (depth == 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 bf27568

Please sign in to comment.