Skip to content
Snippets Groups Projects
Commit ab7555f8 authored by Marshall Scott's avatar Marshall Scott
Browse files

Removed rotation from ZDC_HCAL, increased size to match zdc_ecal

parent 8d55f28c
No related branches found
No related tags found
No related merge requests found
Pipeline #8519 passed
...@@ -626,7 +626,7 @@ ...@@ -626,7 +626,7 @@
<constant name="ffi_ZDC_HCAL_offset" value="5.0*mm"/> <constant name="ffi_ZDC_HCAL_offset" value="5.0*mm"/>
<constant name="ffi_ZDC_HCAL_st_length" value="20.0*mm"/> <constant name="ffi_ZDC_HCAL_st_length" value="20.0*mm"/>
<constant name="ffi_ZDC_HCAL_lt_length" value="40.0*mm"/> <constant name="ffi_ZDC_HCAL_lt_length" value="ffi_ZDC_ECAL_width"/><comment> Changed from 40.0mm </comment>
<constant name="ffi_ZDC_HCAL_st_x_pos" value="0.60*m"/> <constant name="ffi_ZDC_HCAL_st_x_pos" value="0.60*m"/>
<constant name="ffi_ZDC_HCAL_st_y_pos" value="0.0*m"/> <constant name="ffi_ZDC_HCAL_st_y_pos" value="0.0*m"/>
<constant name="ffi_ZDC_HCAL_st_z_pos" value="ffi_ZDC_z_pos + ffi_ZDC_ECAL_thickness + 1*cm"/> <comment> Was 34 m, changed to be placed right after ZDC(The ecal) </comment> <constant name="ffi_ZDC_HCAL_st_z_pos" value="ffi_ZDC_z_pos + ffi_ZDC_ECAL_thickness + 1*cm"/> <comment> Was 34 m, changed to be placed right after ZDC(The ecal) </comment>
......
...@@ -36,8 +36,8 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) { ...@@ -36,8 +36,8 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) {
int layer_num = 1; int layer_num = 1;
int slice_num = 1; int slice_num = 1;
double totWidth = Layering(x_det).totalThickness(); double totWidth = Layering(x_det).totalThickness();
Box envelope ((pixel_x + 18.0*dd4hep::mm)/2.0, (pixel_y + 18.0*dd4hep::mm)/2.0,totWidth/2.0); Box envelope (pixel_x/2.0, pixel_y/2.0, totWidth/2.0);
Volume envelopeVol(det_name+"_envelope",envelope,air); Volume envelopeVol(det_name+"_envelope", envelope,air);
PlacedVolume pv; PlacedVolume pv;
xml_comp_t x_layer = x_det.child(_U(layer)); xml_comp_t x_layer = x_det.child(_U(layer));
...@@ -72,14 +72,14 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) { ...@@ -72,14 +72,14 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) {
slice_vol.setSensitiveDetector(sens); slice_vol.setSensitiveDetector(sens);
} }
slice_vol.setAttributes(lcdd,x_slice.regionStr(), x_slice.limitsStr(), x_slice.visStr()); slice_vol.setAttributes(lcdd,x_slice.regionStr(), x_slice.limitsStr(), x_slice.visStr());
pv = layer_vol.placeVolume(slice_vol, Transform3D(RotationZ(M_PI/2.0),Position(0.0,0.0,z-zlayer-layerWidth/2.0+w/2.0))); pv = layer_vol.placeVolume(slice_vol, Transform3D(RotationZYX(0, 0, 0),Position(0.0,0.0,z-zlayer-layerWidth/2.0+w/2.0)));
pv.addPhysVolID("slice", slice_num); pv.addPhysVolID("slice", slice_num);
z += w; z += w;
++slice_num; ++slice_num;
} }
string layer_vis = dd4hep::getAttrOrDefault(x_layer, _Unicode(vis), "InvisibleWithDaughters"); string layer_vis = dd4hep::getAttrOrDefault(x_layer, _Unicode(vis), "InvisibleWithDaughters");
layer_vol.setAttributes(lcdd, x_layer.regionStr(), x_layer.limitsStr(), layer_vis); layer_vol.setAttributes(lcdd, x_layer.regionStr(), x_layer.limitsStr(), layer_vis);
pv = envelopeVol.placeVolume(layer_vol, Transform3D(RotationZ(M_PI/4.0), Position(0,0,zlayer-zmin-totWidth/2.0+layerWidth/2.0))); pv = envelopeVol.placeVolume(layer_vol, Transform3D(RotationZYX(0, 0, 0), Position(0,0,zlayer-zmin-totWidth/2.0+layerWidth/2.0)));
pv.addPhysVolID("layer", layer_num); pv.addPhysVolID("layer", layer_num);
++layer_num; ++layer_num;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment