Skip to content
Snippets Groups Projects
Commit ecd1e647 authored by myliu@ihep.ac.cn's avatar myliu@ihep.ac.cn
Browse files

Modify the unit of doca in digitization to mm

parent 22f1edfb
No related branches found
No related tags found
No related merge requests found
......@@ -165,8 +165,10 @@ StatusCode DCHDigiAlg::execute()
TVector3 pos_end = pos + 0.5 * Steplength * sim_mon.Unit();
if(m_Doca) {
tmp_distance = m_segmentation->distanceTrackWire(wcellid,pos_start,pos_end);
tmp_distance = tmp_distance/dd4hep_mm; //mm
} else {
tmp_distance = (m_segmentation->distanceClosestApproach(wcellid,pos)).Mag();
tmp_distance = tmp_distance/dd4hep_mm; //mm
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment