Skip to content
Snippets Groups Projects

Fixed bad merge.

Merged Whitney Armstrong requested to merge fix into master
1 file
+ 0
9
Compare changes
  • Side-by-side
  • Inline
@@ -58,15 +58,10 @@ public:
@@ -58,15 +58,10 @@ public:
<< "Make sure you have GeoSvc and SimSvc in the right order in the configuration." << endmsg;
<< "Make sure you have GeoSvc and SimSvc in the right order in the configuration." << endmsg;
return StatusCode::FAILURE;
return StatusCode::FAILURE;
}
}
<<<<<<< HEAD
// depth: z length of the crystal block
m_depthCorr = m_geoSvc->detector()->constantAsDouble(m_moduleDimZName);
=======
// update depth correction if a name is provided
// update depth correction if a name is provided
if (!m_moduleDimZName.value().empty()) {
if (!m_moduleDimZName.value().empty()) {
m_depthCorrection = m_geoSvc->detector()->constantAsDouble(m_moduleDimZName);
m_depthCorrection = m_geoSvc->detector()->constantAsDouble(m_moduleDimZName);
}
}
>>>>>>> 21068a610f35f083a214e3a81badd0ced4aad3da
//info() << "z_length " << depth << endmsg;
//info() << "z_length " << depth << endmsg;
return StatusCode::SUCCESS;
return StatusCode::SUCCESS;
}
}
@@ -120,11 +115,7 @@ private:
@@ -120,11 +115,7 @@ private:
// convert local position to global position, use the cell with max edep as a reference
// convert local position to global position, use the cell with max edep as a reference
auto volman = m_geoSvc->detector()->volumeManager();
auto volman = m_geoSvc->detector()->volumeManager();
auto alignment = volman.lookupDetector(centerID).nominal();
auto alignment = volman.lookupDetector(centerID).nominal();
<<<<<<< HEAD
auto gpos = alignment.localToWorld(dd4hep::Position(x/tw, y/tw, z/tw + m_depthCorr));
=======
auto gpos = alignment.localToWorld(dd4hep::Position(x/tw, y/tw, z/tw + m_depthCorrection));
auto gpos = alignment.localToWorld(dd4hep::Position(x/tw, y/tw, z/tw + m_depthCorrection));
>>>>>>> 21068a610f35f083a214e3a81badd0ced4aad3da
cl.position({gpos.x(), gpos.y(), gpos.z()});
cl.position({gpos.x(), gpos.y(), gpos.z()});
}
}
Loading