G4.10.06.sp01: FTFP_BERT + _EMZ does not work

Hi,
thank you for all the heko you will provide.

I am utilizing Geant4 10.6 patch 1 and I am modifying the following HandsOn tutorial,
https://www.slac.stanford.edu/xorg/geant4/CNL2019/HandsOn1/index.html

The code compiles correctly with the following physics list setup

  G4VModularPhysicsList* physicsList = new FTFP_BERT;
  physicsList->RegisterPhysics(new G4StepLimiterPhysics());
  runManager->SetUserInitialization(physicsList);

However, it fails replacing FTFP_BERT with FTFP_BERT_EMZ which should work as noted in
“Guide For Physics Lists, Release 10.6”, page 4.

I attach here the error:

'''
localhost.localdomain:/test_geant4.10.06.sp01.extended.exgps2-build < 107 >make -j2 -f Makefile
Scanning dependencies of target exgps
[  9%] Building CXX object CMakeFiles/exgps.dir/exgps.cc.o
/home/local1/Desktop/workspace/G4/examples/extended/eventgenerator/exgps2/exgps.cc: In function ‘int main(int, char**)’:
/home/local1/Desktop/workspace/G4/examples/extended/eventgenerator/exgps2/exgps.cc:93:44: error: ‘FTFP_BERT_EMZ’ does not name a type; did you mean ‘FTFP_BERT_h’?
   G4VModularPhysicsList* physicsList = new FTFP_BERT_EMZ;
                                            ^~~~~~~~~~~~~
                                            FTFP_BERT_h
make[2]: *** [CMakeFiles/exgps.dir/build.make:63: CMakeFiles/exgps.dir/exgps.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/exgps.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
'''

Thank you kindly
Andy

Hi
If you read the Guide carefully, FTFP_BERT_EMZ is not a physics list in itself but used as an argument of G4PhysListFactory. The Guide points you to examples.
Briefly you need

#include “G4PhysListFactory.hh”

G4PhysListFactory factory;
auto* physList = factory.GetReferencePhysList(“FTFP_BERT_EMZ”);
runManager->SetUserInitialization(physList);