Physics List change [message #23177] |
Tue, 23 October 2018 16:23 |
C. A. Douma
Messages: 88 Registered: September 2015 Location: Groningen
|
continuous participant |
From: *kvi-cart.rug.nl
|
|
Dear all,
Can anyone tell me how I should change the run_sim.C macro if I want to
modify the Geant4 physics list?
I also have tried to switch to Geant3. Then, the macro crashes.
(runtime seg-fault error).
I particulary like Geant3 for visualization of the geometries,
since with Geant3 the detectors have colors, while they are
mostly black, and brown for Geant4. Does anyone know how
I can run a simulation under Geant3?
Thanks in advance!
Christiaan Douma.
|
|
|
|
|
Re: Physics List change [message #23188 is a reply to message #23183] |
Wed, 24 October 2018 14:09 |
Jan Mayer
Messages: 20 Registered: August 2015
|
occasional visitor |
From: *ikp.uni-koeln.de
|
|
C. A. Douma wrote on Wed, 24 October 2018 13:38Where is g4Config.C loaded? I do not see how this macro communicates with run_sim.C.
The path & name is hardcoded in FairRoot itself and it will be loaded automatically.
C. A. Douma wrote on Wed, 24 October 2018 13:38Can I also add multiple modules to the PHYISICSLIST environment variable?
For example, my VETO physics list uses both ion_inclxx and qscp_bert (and a few more modules).
This makes no sense to me. Are neutrons with <1GeV energy handled by incl or bert?
Support for custom physics lists has been removed. One of the predefined lists from Geant4 should be able to do everything you want - I recommend just going with the default.
Also see:
https://github.com/Geant4/geant4/blob/master/source/physics_lists/lists/ include/QGSP_INCLXX_HP.hh
https://github.com/Geant4/geant4/blob/master/source/physics_lists/lists/ include/INCLXXPhysicsListHelper.icc
C. A. Douma wrote on Wed, 24 October 2018 13:38Is your neutron cross section example how you calculated figure 6.4 in your thesis?
If so, do all of the lines in this figure only use one single physics list module?
(For the others: In this figure I compare the Julian's RIKEN efficiency values to simulations with different physics lists.)
The macro to reproduce this Figure is different, but also uses the physis lists environment variable.
While there are 20+ lists avilable in Geant4, this quickly collapses: "The simulated values solely depend on the model for the low energy hadronic interactions,
i.e., QGSP_BERT behaves like FTFP_BERT [...] This reduces the comparison to [...] BERT, BIC, and INCLXX." (Page 52 of my thesis)
|
|
|