Skip to content

Commit

Permalink
Update ecal_silion_pos_calc.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami committed Jan 21, 2025
1 parent 410dfcf commit ea5e531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Detectors/util/ecal_silion_pos_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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))
print(round(calc_layers[i] - 240, 3), round(layerZPositions[i], 3), round(numpy.abs(calc_layers[i] - layerZPositions[i] - 240), 3))

0 comments on commit ea5e531

Please sign in to comment.