G4PhysListFactory WARNING

_Geant4 Version: 11.2.0
_Operating System: Windows 11
_Compiler/Version: MSVC 19.29.30153.0
_CMake Version: 3.22.1

I have an issue with environment variable PHYSLIST. I built Geant4-v11.2.0 on Windows 11 using Cmake 3.22.1 and VS 2019. I have also defined the environment variables of the Geant4 bin and data. The following warning error encountered:

### G4PhysListFactory WARNING:  environment variable PHYSLIST is not defined
    Default Physics Lists FTFP_BERT is instantiated
G4PhysListFactory::GetReferencePhysList <FTFP_BERT>  EMoption= 0
<<< Geant4 Physics List simulation engine: FTFP_BERT

/physics_lists/select QGSP_BERT
G4PhysListFactory::GetReferencePhysList <QGSP_BERT>  EMoption= 0
<<< Geant4 Physics List simulation engine: QGSP_BERT

Do you think it is a problem of Geant-4 building? I have not observed any errors during the building of Geant4.

Hello,

it is a problem of application. If in your application the method is used:

auto pl = G4PhysListFactory::ReferencePhysList();

then you need to define environment variable PHYSLIST. If instead Physics List is defined by name:

auto pl = G4PhysListFactory::ReferencePhysList(“name of physics list”);

environment variable is not needed.

VI

1 Like