Skip to content

Commit 22bf1e0

Browse files
authored
Update README with setStackPhotons and GDML details
Clarified the explanation of setStackPhotons and added details about GDML geometry import.
1 parent 0c4da79 commit 22bf1e0

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,20 @@ There are certain user defined inputs that the user/developer has to define. In
140140
/run/beamOn 500
141141
```
142142

143-
Here if the setStackPhotons defines **whether G4 will propagate optical photons or not**. In production Opticks (GPU) takes care of the optical photon propagation. Additionally the user has to define the **starting position**, **momentum** etc of the primary particles define in the **GeneratePrimaries** function in ``src/g4appmt.h```. The hits of the optical photons are returned in the **EndOfRunAction** function. If more photons are simulated than can fit in the GPU RAM the execution of a GPU call should be moved to **EndOfEventAction** together with retriving the hits.
143+
Here setStackPhotons defines **whether G4 will propagate optical photons or not**. In production Opticks (GPU) takes care of the optical photon propagation. Additionally the user has to define the **starting position**, **momentum** etc of the primary particles define in the **GeneratePrimaries** function in ``src/g4appmt.h```. The hits of the optical photons are returned in the **EndOfRunAction** function. If more photons are simulated than can fit in the GPU RAM the execution of a GPU call should be moved to **EndOfEventAction** together with retriving the hits.
144144

145145
### Loading in geometry into EIC-Opticks
146146

147+
EIC-Opticks can import geometries with GDML format automatically. There are about 10 primitives supported now, eg. G4Box. G4Trd or G4Trap are not supported yet, we are working on them. ```src/simg4oxmt``` takes GDML files through arguments, eg. ```src/simg4oxmt -g mygdml.gdml```.
148+
149+
The GDML must define all optical properties of surfaces of materials including:
150+
- Efficiency (used by EIC-Opticks to specify detection efficiency and assign sensitive surfaces)
151+
- Refractive index
152+
- Group velocity
153+
- Reflectivity
154+
- Etc.
155+
156+
147157
## Performance studies
148158

149159
```

0 commit comments

Comments
 (0)