From ea5e53168d485545a24b997c6b7f5ec7d713a8aa Mon Sep 17 00:00:00 2001 From: Tamas Vami Date: Mon, 20 Jan 2025 16:41:29 -0800 Subject: [PATCH] Update ecal_silion_pos_calc.py script --- Detectors/util/ecal_silion_pos_calc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Detectors/util/ecal_silion_pos_calc.py b/Detectors/util/ecal_silion_pos_calc.py index 43dcd2e09..44a74bc2f 100644 --- a/Detectors/util/ecal_silion_pos_calc.py +++ b/Detectors/util/ecal_silion_pos_calc.py @@ -31,7 +31,7 @@ bilayer_noabsorber_thickness = FrontTolerance + PCB_dz + PCB_Motherboard_Gap + Flower_dz + CarbonCoolingPlane_dz + Flower_dz + PCB_Motherboard_Gap + PCB_dz + BackTolerance # Calculate positions of silicon modules -first_sc_z_pos = bilayer_start + FrontTolerance + PCB_dz + PCB_Motherboard_Gap + PCB_dz + Glue_dz +first_sc_z_pos = bilayer_start + FrontTolerance + PCB_dz + PCB_Motherboard_Gap + PCB_dz + Glue_dz + correction_constant second_sc_z_pos = bilayer_start + FrontTolerance + PCB_dz + PCB_Motherboard_Gap + Flower_dz + preshower_extra_air + CarbonCoolingPlane_dz + CarbonBasePlate_dz + GlueThick_dz + correction_constant calc_layers = [first_sc_z_pos, second_sc_z_pos] for i in range(len(bilayer_absorber_cumulative)-1): @@ -43,4 +43,4 @@ # print results print("GDML | EcalGeometry.py | Diff") for i in range(len(layerZPositions)): - print(round(calc_layers[i] - 240, 3), round(layerZPositions[i], 3), round(numpy.abs(calc_layers[i] - layerZPositions[i] - 240), 3)) \ No newline at end of file + print(round(calc_layers[i] - 240, 3), round(layerZPositions[i], 3), round(numpy.abs(calc_layers[i] - layerZPositions[i] - 240), 3))