Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Dec 6, 2024
1 parent 06a5667 commit 03f691f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Geometry/HGCalCommonData/test/HGCalTestCellArea.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,17 @@ HGCalTestCellArea::HGCalTestCellArea(const edm::ParameterSet &iC)
int cellV = std::atoi(items[7].c_str());
id = static_cast<DetId>(HGCSiliconDetId(det, zside, type, layer, waferU, waferV, cellU, cellV));
detIds_.emplace_back(id, pos);
}
}
}
}
}
}
fInput.close();
}
}
edm::LogVerbatim("HGCGeom") << "Reads " << detIds_.size() << " ID's from " << fileName_;
for (unsigned int k = 0; k < detIds_.size(); ++k) {
edm::LogVerbatim("HGCGeom") << "[" << k << "] " << HGCSiliconDetId(detIds_[k].first) << " from DDConstant " << (detIds_[k].second);
edm::LogVerbatim("HGCGeom") << "[" << k << "] " << HGCSiliconDetId(detIds_[k].first) << " from DDConstant "
<< (detIds_[k].second);
}
}

Expand Down Expand Up @@ -151,7 +152,9 @@ void HGCalTestCellArea::beginRun(edm::Run const &iRun, edm::EventSetup const &iS
for (unsigned int k = 0; k < detIds_.size(); ++k) {
const HGCalDDDConstants *cons = hgcCons_[detMap[(detIds_[k].first).det()]];
HGCSiliconDetId id(detIds_[k].first);
edm::LogVerbatim("HGCGeom") << "Hit[" << k << "] " << id << " Area " << cons->cellArea(id, false) << " Valid " << cons->isValidHex8(id.layer(), id.waferU(), id.waferV(), id.cellU(), id.cellV(), true);
edm::LogVerbatim("HGCGeom") << "Hit[" << k << "] " << id << " Area " << cons->cellArea(id, false) << " Valid "
<< cons->isValidHex8(
id.layer(), id.waferU(), id.waferV(), id.cellU(), id.cellV(), true);
}
}

Expand Down

0 comments on commit 03f691f

Please sign in to comment.