PHYSBLD001 error in custom physics list when upgrading to Geant4 v11.0.2

Hello Geant4 community,

I am currently upgrading my simulation from Geant4 v10.05.p01 to Geant4 v11.0.2. I have a custom physics list and after addressing a few class deprecations in the custom source code, it compiles and links without errors. However, upon running the simulation, I receive the following error:

*** G4Exception: PHYSBLD001
***    severity: Fatal Exception
***   issued by: G4PhysicsBuilderInterface::Build
*** description: Called based class method. Should be implemented in inherited class

I suspect the issue may be related to changes in the physics list or the way the physics processes are registered in Geant4 v11. I would appreciate any hints or suggestions on how to debug this error. If this type of error is common when upgrading to Geant4 v11 with custom physics lists, please let me know how you resolved it.

I can post the diff files for my custom source code if that would be helpful.

Have you tried adding Build method to your custom physics list definition?


the best advice is to avoid custom physics list if there is no real need. The extra specific parameters set by UI commands may help to customise physics accordingly to the most number of tasks.