Skip to content
Snippets Groups Projects
Commit 6b3a8eee authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: src/TrapEndcapTracker_geo.cpp

parent d0f9439c
No related branches found
No related tags found
No related merge requests found
...@@ -157,7 +157,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s ...@@ -157,7 +157,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
if (!reflect) { if (!reflect) {
DetElement module(sdet, m_base + "_pos", det_id); DetElement module(sdet, m_base + "_pos", det_id);
pv = assembly.placeVolume( pv = layer_vol.placeVolume(
m_vol, Transform3D(RotationZYX(0, -M_PI / 2 - phi, -M_PI / 2), Position(x, y, zstart + dz))); m_vol, Transform3D(RotationZYX(0, -M_PI / 2 - phi, -M_PI / 2), Position(x, y, zstart + dz)));
pv.addPhysVolID("barrel", 1).addPhysVolID("layer", l_id).addPhysVolID("module", mod_num); pv.addPhysVolID("barrel", 1).addPhysVolID("layer", l_id).addPhysVolID("module", mod_num);
module.setPlacement(pv); module.setPlacement(pv);
...@@ -167,7 +167,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s ...@@ -167,7 +167,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
comp_elt.setPlacement(sens_pv); comp_elt.setPlacement(sens_pv);
} }
} else { } else {
pv = assembly.placeVolume( pv = layer_vol.placeVolume(
m_vol, Transform3D(RotationZYX(0, -M_PI / 2 - phi, -M_PI / 2), Position(x, y, -zstart - dz))); m_vol, Transform3D(RotationZYX(0, -M_PI / 2 - phi, -M_PI / 2), Position(x, y, -zstart - dz)));
pv.addPhysVolID("barrel", 2).addPhysVolID("layer", l_id).addPhysVolID("module", mod_num); pv.addPhysVolID("barrel", 2).addPhysVolID("layer", l_id).addPhysVolID("module", mod_num);
DetElement r_module(sdet, m_base + "_neg", det_id); DetElement r_module(sdet, m_base + "_neg", det_id);
......
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