Skip to content
Snippets Groups Projects

Hack to define ACTS pos/neg endcaps

Merged Whitney Armstrong requested to merge subdet into master
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
@@ -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;
Loading