Commit 9bb1faff authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: src/SiTrackerEndcap_geo.cpp

parent 48e1cf7d
......@@ -193,7 +193,12 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
++ring_num;
}
}
pv = motherVol.placeVolume(assembly);
// hack to get around the way ACTS defines pos/neg endcaps based on zposition
Position final_pos(0,0,0);
if(reflect) {
final_pos = Position(0,0,-1.0e-9);
}
pv = motherVol.placeVolume(assembly,final_pos);
pv.addPhysVolID("system",det_id);
sdet.setPlacement(pv);
return sdet;
......
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