Skip to content

Commit 53b2e9b

Browse files
committed
some pars changes
1 parent dfa79a6 commit 53b2e9b

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

examples/basic/b2/b2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ gstreamer:
1313
phys_list: FTFP_BERT
1414

1515
g4camera:
16-
theta: 90*deg
17-
phi: 180*deg
16+
theta: 116*deg
17+
phi: 160*deg
1818

1919
gparticle:
2020
- name: proton

examples/basic/material/materials.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
radius = 5 # cm, giving 10 cm diameter
2121
half_thickness = 0.5 # cm, giving 1 cm total thickness
2222
z_step = 4 # cm center-to-center spacing
23+
startz = - 10 * half_thickness
2324

2425
# --- Tube 1: Geant4 built-in material ---
2526
tube1 = GVolume("tube_carbon")
@@ -28,7 +29,7 @@
2829
tube1.make_tube(0, radius, half_thickness, 0, 360)
2930
tube1.material = "G4_C"
3031
tube1.color = "808080"
31-
tube1.set_position(0, 0, 0.5)
32+
tube1.set_position(0, 0, startz)
3233
tube1.publish(cfg)
3334

3435
# --- Tube 2: Custom material by molecular composition ---
@@ -45,7 +46,7 @@
4546
tube2.make_tube(0, radius, half_thickness, 0, 360)
4647
tube2.material = "custom_water"
4748
tube2.color = "1565C0"
48-
tube2.set_position(0, 0, 0.5 + z_step)
49+
tube2.set_position(0, 0, startz + z_step)
4950
tube2.publish(cfg)
5051

5152
# --- Tube 3: Custom material by fractional masses ---
@@ -62,7 +63,7 @@
6263
tube3.make_tube(0, radius, half_thickness, 0, 360)
6364
tube3.material = "air_water_mixture"
6465
tube3.color = "2E7D32"
65-
tube3.set_position(0, 0, 0.5 + 2 * z_step)
66+
tube3.set_position(0, 0, startz + 2 * z_step)
6667
tube3.publish(cfg)
6768

6869
# --- Tube 4: Scintillator with fast/slow emission components ---
@@ -91,7 +92,7 @@
9192
tube4.material = "my_scintillator"
9293
tube4.color = "957F97"
9394
tube4.opacity = 0.35
94-
tube4.set_position(0, 0, 0.5 + 3 * z_step)
95+
tube4.set_position(0, 0, startz + 3 * z_step)
9596
tube4.publish(cfg)
9697

9798
# --- Tube 5: Optical glass with index of refraction (Cherenkov radiator) ---
@@ -114,5 +115,5 @@
114115
tube5.material = "optical_glass"
115116
tube5.color = "00BCD4"
116117
tube5.style = 2
117-
tube5.set_position(0, 0, 0.5 + 4 * z_step)
118+
tube5.set_position(0, 0, startz + 4 * z_step)
118119
tube5.publish(cfg)

examples/basic/material/materials.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ g4view:
2222
gparticle:
2323
- name: proton
2424
p: 2000*MeV
25-
vz: -3*cm
25+
vz: -2*cm
2626
delta_vx: 0.1*cm
2727
delta_vy: 0.1*cm
2828
multiplicity: 1

examples/optical/cherenkov/cherenkov.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
rindex = {
2424
"lowIndexRadiator": "1.0010 1.0011 1.0012 1.0013 1.0013",
2525
"mediumIndexRadiator": "1.0110 1.0120 1.0130 1.0140 1.0150",
26-
"highIndexRadiator": "1.0500 1.0510 1.0520 1.0530 1.0530",
26+
"highIndexRadiator": "1.0400 1.0410 1.0420 1.0430 1.0430",
2727
}
2828
absorption = {
2929
"lowIndexRadiator": "100*m 100*m 100*m 100*m 100*m",

0 commit comments

Comments
 (0)