Skip to content

Commit 8cfa929

Browse files
authored
Merge pull request #107 from OpenGATE/fixesFor9.4.2
fix t29
2 parents 5b72eb0 + aa894dc commit 8cfa929

6 files changed

Lines changed: 8 additions & 57 deletions

File tree

t29_optical_digi/Materials.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ not distinguish between 'original' photons and WLS photons. -->
221221
<ve energy="3.21" value="4.18"/>-->
222222
</propertyvector>
223223
<propertyvector name="WLSCOMPONENT" energyunit="eV">
224+
<ve energy="1.68" value="0.00"/>
224225
<ve energy="1.770" value="0.01"/>
225226
<ve energy="1.772" value="0.01"/>
226227
<ve energy="1.775" value="0.01"/>

t29_optical_digi/mac/Geometry.mac

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,12 @@
2020
/gate/world/daughters/name OpticalSystem
2121
/gate/world/daughters/insert box
2222

23-
#/gate/OpticalSystem/geometry/setXLength 10.5 cm
24-
#/gate/OpticalSystem/geometry/setYLength 10.5 cm
2523
/gate/OpticalSystem/geometry/setXLength 20. cm
2624
/gate/OpticalSystem/geometry/setYLength 40. cm
2725
/gate/OpticalSystem/geometry/setZLength 2.0 cm
2826
/gate/OpticalSystem/placement/setTranslation 0 0 3.0 cm
2927
/gate/OpticalSystem/setMaterial Air
3028

31-
#/gate/OpticalSystem/repeaters/insert ring
32-
#/gate/OpticalSystem/ring/setRepeatNumber 16
33-
#/gate/OpticalSystem/ring/setPoint1 0. 1. 0. mm
34-
#/gate/OpticalSystem/ring/setPoint2 0. 0. 0. mm
3529

3630
# === crystal: pixels and an additionnal volume behind the pixels ===
3731
/gate/OpticalSystem/daughters/name crystal
@@ -47,30 +41,6 @@
4741
/gate/systems/OpticalSystem/crystal/attach crystal
4842

4943

50-
# === pixels ===
51-
#/gate/crystal/daughters/name pixel
52-
#/gate/crystal/daughters/insert box
53-
#/gate/pixel/geometry/setXLength 2. cm
54-
#/gate/pixel/geometry/setYLength 2. cm
55-
#/gate/pixel/geometry/setXLength 0.105 cm
56-
#/gate/pixel/geometry/setYLength 0.105 cm
57-
#/gate/pixel/geometry/setZLength 1 cm
58-
#/gate/pixel/setMaterial Air
59-
#/gate/pixel/placement/setTranslation 0 0 0 cm
60-
#/gate/pixel/vis/setColor red
61-
#/gate/pixel/repeaters/insert cubicArray
62-
#/gate/pixel/cubicArray/setRepeatNumberX 5
63-
#/gate/pixel/cubicArray/setRepeatNumberY 5
64-
#/gate/pixel/cubicArray/setRepeatNumberX 100
65-
#/gate/pixel/cubicArray/setRepeatNumberY 100
66-
#/gate/pixel/cubicArray/setRepeatNumberZ 1
67-
#/gate/pixel/cubicArray/setRepeatVector 2.1 2.1 0 cm
68-
#/gate/pixel/cubicArray/setRepeatVector 0.105 0.105 0 cm
69-
#/gate/pixel/vis/forceSolid
70-
#/gate/pixel/attachCrystalSD
71-
#/gate/systems/OpticalSystem/pixel/attach pixel
72-
73-
7444
# === additionnal volume behind pixels (ex: electronic board) ===
7545
/gate/OpticalSystem/daughters/name Electronics
7646
/gate/OpticalSystem/daughters/insert box

t29_optical_digi/mac/Phantom.mac

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,3 @@
3030
/gate/casper/vis/setColor blue
3131
/gate/casper/vis/forceWireframe
3232
/gate/casper/attachPhantomSD
33-
34-
35-
#/gate/casper/daughters/name fluorescent
36-
#/gate/casper/daughters/insert cylinder
37-
#/gate/fluorescent/geometry/setRmin 0.0 cm
38-
#/gate/fluorescent/geometry/setRmax 0.75 mm
39-
#/gate/fluorescent/geometry/setHeight 30. mm
40-
#/gate/fluorescent/placement/setTranslation 0. 0. 0. cm
41-
#/gate/fluorescent/placement/setRotationAxis 1 0 0
42-
#/gate/fluorescent/placement/setRotationAngle -90 deg
43-
#/gate/fluorescent/setMaterial RhB
44-
#/gate/fluorescent/vis/setColor yellow
45-
#/gate/fluorescent/vis/forceSolid
46-
#/gate/fluorescent/attachPhantomSD
47-
48-

t29_optical_digi/mac/digitizer.mac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
#=====================================================
66

77
/gate/digitizerMgr/crystal/SinglesDigitizer/Singles/insert opticaladder
8-
/gate/digitizerMgr/crystal/SinglesDigitizer/Singles/insert readout
9-
# for pixels:
10-
#/gate/digitizerMgr/crystal/SinglesDigitizer/Singles/readout/setDepth 2
8+
/gate/digitizerMgr/crystal/SinglesDigitizer/Singles/insert readout
9+
1110
# for crystal:
1211
/gate/digitizerMgr/crystal/SinglesDigitizer/Singles/readout/setDepth 1
1312

1413
# In order to detect only fluorescent photons, you can use an energyFraming cut:
1514
/gate/digitizerMgr/crystal/SinglesDigitizer/Singles/insert energyFraming
1615
/gate/digitizerMgr/crystal/SinglesDigitizer/Singles/energyFraming/setMax 2.1 eV
16+
/gate/digitizerMgr/crystal/SinglesDigitizer/Singles/energyFraming/setMin 1.77 eV
1717

t29_optical_digi/mac/main.mac

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,8 @@
7272
#=====================================================
7373
# P H Y S I C S
7474
#=====================================================
75-
76-
/gate/physics/addProcess OpticalAbsorption
77-
/gate/physics/addProcess OpticalRayleigh
78-
/gate/physics/addProcess OpticalBoundary
79-
/gate/physics/addProcess OpticalMie
80-
/gate/physics/addProcess OpticalWLS
75+
/gate/physics/addPhysicsList emlivermore
76+
/gate/physics/addPhysicsList optical
8177

8278
/gate/physics/processList Enabled
8379
/gate/physics/processList Initialized
@@ -132,9 +128,7 @@
132128

133129
# Choose between: JamesRandom Ranlux64 MersenneTwister
134130
/gate/random/setEngineName MersenneTwister
135-
#/gate/random/setEngineSeed default
136131
/gate/random/setEngineSeed auto
137-
#/gate/random/setEngineSeed 123456789
138132
/gate/random/verbose 1
139133

140134
#=====================================================

t29_optical_digi/readme.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ Run the analysis with
1818
runAnalysis.py
1919

2020

21+
19-02-2026. After passing from Geant4 11.3.0 to Geant4 11.4.0 it seems some of optical description became more precise and some of optical photons now is desciped better. However, this makes this test fail giving a peak at 1.77 eV coming from WLS in RhD.
22+
But this test is meant to be for digitizer and not the optical part which is tested in t15. This is why the WLSCOMPONENT for RhD was modified and a cut at min energy at 1.77 eV was applied in order to march the distributions form previous results (i.e. the tail was cut out)

0 commit comments

Comments
 (0)