Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Apr 11, 2021
1 parent 5a4e0b5 commit dd412ce
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Geometry/HGCalGeometry/test/HGCalGeometryTester.cc
Expand Up @@ -177,14 +177,14 @@ void HGCalGeometryTester::doTestScint(const HGCalGeometry* geom, DetId::Detector
for (int layer : layers) {
int type = geom->topology().dddConstants().getTypeTrap(layer);
for (int ieta : ietas) {
std::pair<int, int> typm = geom->topology().dddConstants().tileType(layer, ieta, 0);
std::pair<int, int> typm = geom->topology().dddConstants().tileType(layer, ieta, 0);
for (int iphi : iphis) {
HGCScintillatorDetId detId(type, layer, zside * ieta, iphi);
if (typm.first >= 0) {
detId.setType(typm.first);
detId.setSiPM(typm.second);
}
DetId id1 = static_cast<DetId>(detId);
HGCScintillatorDetId detId(type, layer, zside * ieta, iphi);
if (typm.first >= 0) {
detId.setType(typm.first);
detId.setSiPM(typm.second);
}
DetId id1 = static_cast<DetId>(detId);
if (geom->topology().valid(id1)) {
auto icell1 = geom->getGeometry(id1);
GlobalPoint global1 = geom->getPosition(id1);
Expand Down

0 comments on commit dd412ce

Please sign in to comment.