Commit 0fbbe89a authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'digi/pixel' into 'master'

Remove redundant static_cast in the PixelDigitizationTool

See merge request !30526
parents d9ab657c ed1ae513
...@@ -136,9 +136,8 @@ StatusCode PixelDigitizationTool::digitizeEvent() { ...@@ -136,9 +136,8 @@ StatusCode PixelDigitizationTool::digitizeEvent() {
// Create the identifier for the collection // Create the identifier for the collection
ATH_MSG_DEBUG("create ID for the hit collection"); ATH_MSG_DEBUG("create ID for the hit collection");
const PixelID* PID = static_cast<const PixelID*>(m_detID); Identifier id = m_detID->wafer_id((*firstHit)->getBarrelEndcap(),(*firstHit)->getLayerDisk(),(*firstHit)->getPhiModule(),(*firstHit)->getEtaModule());
Identifier id = PID->wafer_id((*firstHit)->getBarrelEndcap(),(*firstHit)->getLayerDisk(),(*firstHit)->getPhiModule(),(*firstHit)->getEtaModule()); IdentifierHash wafer_hash = m_detID->wafer_hash(id);
IdentifierHash wafer_hash = PID->wafer_hash(id);
// Get the det element from the manager // Get the det element from the manager
const InDetDD::SiDetectorElement* sielement = elements->getDetectorElement(wafer_hash); 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