Hello I am a new user to GEANT4 in linux ubuntu. When I am trying to run B1 example this program I am getting the error.
Thanks a lot!
Hello I am a new user to GEANT4 in linux ubuntu. When I am trying to run B1 example this program I am getting the error.
Thanks a lot!
That means you don’t have the environment variables for the datasets. You can define them using geant4-config
like this:
$ geant4-config --datasets | awk '{printf "export %s=\"%s\"\n", $2, $3}'`
Then you should see them in your environment:
$ env | grep G4 | sort
G4ABLADATA=/usr/share/geant4/data/G4ABLA3.1
G4ENSDFSTATEDATA=/usr/share/geant4/data/G4ENSDFSTATE2.3
G4INCLDATA=/usr/share/geant4/data/G4INCL1.0
G4LEDATA=/usr/share/geant4/data/G4EMLOW8.0
G4LEVELGAMMADATA=/usr/share/geant4/data/PhotonEvaporation5.7
G4NEUTRONHPDATA=/usr/share/geant4/data/G4NDL4.6
G4PARTICLEHPDATA=/usr/share/geant4/data/G4TENDL1.4
G4PARTICLEXSDATA=/usr/share/geant4/data/G4PARTICLEXS4.0
G4PIIDATA=/usr/share/geant4/data/G4PII1.3
G4RADIOACTIVEDATA=/usr/share/geant4/data/RadioactiveDecay5.6
G4REALSURFACEDATA=/usr/share/geant4/data/RealSurface2.2
G4SAIDXSDATA=/usr/share/geant4/data/G4SAIDDATA2.0
After that you can run example B1 again and it should work.