Skip to content

Commit

Permalink
Move TS to zero in X dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami committed Apr 16, 2024
1 parent 61d79d8 commit 7f94cb7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions Detectors/data/ldmx-reduced-v1/target.gdml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,16 @@
<loop for="x" to="number_of_bars" step="1">
<physvol copynumber="2*x-2">
<volumeref ref="trigger_pad3_bar_volume" />
<position name="trigger_pad3_bar_layer1_pos" unit="mm" x="0"
<position name="trigger_pad3_bar_layer1_pos" unit="mm"
x="0"
y="-target_dim_y/2 + trigger_bar_dy*(x - 0.5) + trigger_pad_bar_gap*(x - 1) + trigger_pad_offset"
z="trigger_pad3_z - trigger_pad_bar_thickness/2 - trigger_pad_bar_gap/2" />
<rotationref ref="identity" />
</physvol>
<physvol copynumber="2*x - 1">
<volumeref ref="trigger_pad3_bar_volume" />
<position name="trigger_pad3_bar_layer2_pos" unit="mm" x="0"
<position name="trigger_pad3_bar_layer2_pos" unit="mm"
x="0"
y="-target_dim_y/2 + trigger_bar_dy*x + trigger_pad_bar_gap*(x - 1) + trigger_pad_offset"
z="trigger_pad3_z + trigger_pad_bar_thickness/2 + trigger_pad_bar_gap/2" />
<rotationref ref="identity" />
Expand Down
12 changes: 8 additions & 4 deletions Detectors/data/ldmx-reduced-v1/trig_scint.gdml
Original file line number Diff line number Diff line change
Expand Up @@ -61,29 +61,33 @@
<loop for="x" to="number_of_bars" step="1">
<physvol copynumber="2*x-2">
<volumeref ref="trigger_pad2_bar_volume" />
<position name="trigger_pad2_bar_layer1_pos" unit="mm" x="-38*mm"
<position name="trigger_pad2_bar_layer1_pos" unit="mm"
x="0"
y="-target_dim_y/2 + trigger_bar_dy*(x - 0.5) + trigger_pad_bar_gap*(x - 1) + trigger_pad_offset"
z="trig_scint_area_envelope_z/2 + trigger_pad2_z - trigger_pad_bar_thickness/2 - trigger_pad_bar_gap/2" />
<rotationref ref="identity" />
</physvol>
<physvol copynumber="2*x - 1">
<volumeref ref="trigger_pad2_bar_volume" />
<position name="trigger_pad2_bar_layer2_pos" unit="mm" x="-38*mm"
<position name="trigger_pad2_bar_layer2_pos" unit="mm"
x="0"
y="-target_dim_y/2 + trigger_bar_dy*x + trigger_pad_bar_gap*(x - 1) + trigger_pad_offset"
z="trig_scint_area_envelope_z/2+trigger_pad2_z + trigger_pad_bar_thickness/2 + trigger_pad_bar_gap/2" />
<rotationref ref="identity" />
</physvol>

<physvol copynumber="2*x-2">
<volumeref ref="trigger_pad1_bar_volume" />
<position name="trigger_pad1_bar_layer1_pos" unit="mm" x="-43*mm"
<position name="trigger_pad1_bar_layer1_pos" unit="mm"
x="0"
y="-target_dim_y/2 + trigger_bar_dy*(x - 0.5) + trigger_pad_bar_gap*(x - 1) + trigger_pad_offset"
z="trig_scint_area_envelope_z/2+trigger_pad1_z - trigger_pad_bar_thickness/2 - trigger_pad_bar_gap/2" />
<rotationref ref="identity" />
</physvol>
<physvol copynumber="2*x - 1">
<volumeref ref="trigger_pad1_bar_volume" />
<position name="trigger_pad1_bar_layer2_pos" unit="mm" x="-43*mm"
<position name="trigger_pad1_bar_layer2_pos" unit="mm"
x="0"
y="-target_dim_y/2 + trigger_bar_dy*x + trigger_pad_bar_gap*(x - 1) + trigger_pad_offset"
z="trig_scint_area_envelope_z/2+trigger_pad1_z + trigger_pad_bar_thickness/2 + trigger_pad_bar_gap/2" />
<rotationref ref="identity" />
Expand Down

0 comments on commit 7f94cb7

Please sign in to comment.