Skip to content
Snippets Groups Projects
Commit 55e89e0f authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Frame behind MRICH, 2 mm Carbon Fiber all across

parent b378c63e
No related branches found
No related tags found
1 merge request!193Resolve "MRICH: Add frame behind the entire system to stand in for support structure"
......@@ -151,6 +151,7 @@
<!--position x="782.7750000006" y="316.0250000001"/-->
<!--position x="782.7750000006" y="453.3750000002"/-->
</positions>
<layer thickness="MRICHCarbonFrame_thickness" material="CarbonFiber"/>
</detector>
</detectors>
......
......@@ -355,6 +355,14 @@ static Ref_t createDetector(Detector& description, xml::Handle_t e, SensitiveDet
}
}
// place frame
xml_comp_t x_layer = x_det.child(_Unicode(layer));
double layer_thickness = x_layer.thickness();
Material layer_mat = description.material(x_layer.materialStr());
Tube frameShape(rmin, rmax, layer_thickness / 2., 0., 2 * M_PI);
Volume frameVol("MRICH_Frame", frameShape, layer_mat);
pv = envVol.placeVolume(frameVol, Position(0, 0, (length - layer_thickness) / 2.0));
// place envelope
Volume motherVol = description.pickMotherVolume(sdet);
if (reflect) {
......
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