Skip to content

Commit d8727f7

Browse files
authored
Merge pull request #49530 from bsunanda/Phase2-hgx364W
Phase2-hgx364W Try to resolve the issue of wafer number mismatch in V19 geometry of HGCal
2 parents 3d7ce8b + e83ad78 commit d8727f7

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Geometry/HGCalCommonData/src/HGCalDDDConstants.cc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,16 @@ void HGCalDDDConstants::waferFromPosition(const double x,
17801780
dx0 = -cshift.first;
17811781
dy0 = cshift.second;
17821782
if (debug)
1783-
edm::LogVerbatim("HGCalGeom") << "Cassette " << (ktr->second).cassette << " Shift " << dx0 << ":" << dy0;
1783+
edm::LogVerbatim("HGCalGeom") << "Cassette " << (ktr->second).cassette << " Shift " << dx0 << ":" << dy0
1784+
<< " Type " << (ktr->second).type << ":" << (ktr->second).part << ":"
1785+
<< (ktr->second).orient << ":" << (ktr->second).cassette;
1786+
} else {
1787+
if (mode_ == HGCalGeometryMode::Hexagon8FineCell) {
1788+
if (debug)
1789+
edm::LogVerbatim("HGCalGeom") << "Cannot find waferinformation --> Skip this " << layer << ":" << waferU
1790+
<< ":" << waferV << " wafer assignment";
1791+
continue;
1792+
}
17841793
}
17851794
}
17861795
double dx = std::abs(xx - dx0 - hgpar_->waferPosX_[k]);

Geometry/HGCalCommonData/src/HGCalGeomParameters.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,11 @@ void HGCalGeomParameters::loadSpecParsHexagon8(HGCalParameters& php,
16051605
<< HGCalWaferIndex::waferU(waferIndex[k]) << ":"
16061606
<< HGCalWaferIndex::waferV(waferIndex[k]) << "] Thickness type "
16071607
<< HGCalProperty::waferThick(waferProperties[k]) << " Partial type " << partial
1608-
<< " Orientation " << HGCalProperty::waferOrient(waferProperties[k]) << ":" << orient;
1608+
<< " Orientation " << HGCalProperty::waferOrient(waferProperties[k]) << ":" << orient
1609+
<< " Info " << php.waferInfoMap_[waferIndex[k]].type << ":"
1610+
<< php.waferInfoMap_[waferIndex[k]].part << ":"
1611+
<< php.waferInfoMap_[waferIndex[k]].orient << ":"
1612+
<< php.waferInfoMap_[waferIndex[k]].cassette;
16091613
#endif
16101614
}
16111615
}

Geometry/HGCalGeometry/test/HGCalIdCheck.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ HGCalIdCheck::HGCalIdCheck(const edm::ParameterSet &iC)
9494
int32_t cellV = std::atoi(items[7].c_str());
9595
HGCSiliconDetId detId(det, zp, type, layer, waferU, waferV, cellU, cellV);
9696
detIds_.emplace_back(detId);
97+
edm::LogVerbatim("HGCGeom") << "[" << detIds_.size() << "] " << det << ":" << zp << ":" << type << ":"
98+
<< layer << ":" << waferU << ":" << waferV << ":" << cellU << ":" << cellV
99+
<< " ==> " << detId;
97100
}
98101
}
99102
fInput.close();

0 commit comments

Comments
 (0)