Verified Commit ed1ae513 authored by Tadej Novak's avatar Tadej Novak
Browse files

Remove redundant static_cast in the PixelDigitizationTool

parent e5bf4809
......@@ -136,9 +136,8 @@ StatusCode PixelDigitizationTool::digitizeEvent() {
// Create the identifier for the collection
ATH_MSG_DEBUG("create ID for the hit collection");
const PixelID* PID = static_cast<const PixelID*>(m_detID);
Identifier id = PID->wafer_id((*firstHit)->getBarrelEndcap(),(*firstHit)->getLayerDisk(),(*firstHit)->getPhiModule(),(*firstHit)->getEtaModule());
IdentifierHash wafer_hash = PID->wafer_hash(id);
Identifier id = m_detID->wafer_id((*firstHit)->getBarrelEndcap(),(*firstHit)->getLayerDisk(),(*firstHit)->getPhiModule(),(*firstHit)->getEtaModule());
IdentifierHash wafer_hash = m_detID->wafer_hash(id);
// Get the det element from the manager
const InDetDD::SiDetectorElement* sielement = elements->getDetectorElement(wafer_hash);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment