OpNovice2 macro command not working

_Geant4 Version:_10.7
_Operating System:_linux
_Compiler/Version:_c++
_CMake Version:_3.25.1

I have added mptScin->AddConstProperty(“SCINTILLATIONRISETIME”,20.7*ns); as optical properties. However, I found that the results does not change when I vary the SCINTILLATIONRISETIME.

Another problem is that , the results remain same whether I add this above line or not. Can you please tell me what is going on?
Following the macro command from OpNovice2 example, I enabled /process/optical/scintillation/setFiniteRiseTime true , However I end up in error.
------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : mat202
issued by : G4MaterialPropertiesTable::GetConstProperty()
Constant Material Property Index 13 not found.
*** Fatal Exception *** core dump ***
G4Track (0x55db9398cc00) - track ID = 1, parent ID = 0
Particle type : gamma - creator process : not available
Kinetic energy : 0 eV - Momentum direction : (-0.0581339,-0.484746,-0.872721)
Step length : 779.873 um - total energy deposit : 6.5133 keV

OpNovice2 is meant to use macros to change the material parameters. You should start with electron.mac and edit as appropriate.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.