简体   繁体   中英

ENSDFSTATE.dat file not found error while running exampleB1.exe using Geant4

I am new in Geant4. i installed and build GEANT4 using cmake and visual stdio 17 on windlows 10 and now i am trying to practice its given basic exapmles, So, I build first example using cmake by following the toturial given here . The example build successfully and created the exampleB1.exe file. I have set up all environment variables to data installed as given in screen shot环境变量

but facing the problem of still relating to environment vairiable is the screenshots of error

输出控制台

I looked this ENSDFSTATE.dat file but could not be able to solve the problem. Any suggestions/ support is highly appreciated.

It looks like your "G4ENSDFSTATEDATA" environmental variable is pointing to the wrong data set. Edit this variable to point to G4ENSDFSTATE2.2 location (ie D:\\GEANT4\\share\\Geant4-10.5.1\\data\\G4ENSDFSTATE2.2 instead of D:\\GEANT4\\share\\Geant4-10.5.1\\data\\G4PARTICLEXS1.1) and should work fine for that one. Double check your other environmental variables are correct also. Looks like G4ABLADATA should be G4ABLA3.1 for example.

Here is the list of all variables from the getting started manual ( http://geant4-userdoc.web.cern.ch/geant4-userdoc/UsersGuides/InstallationGuide/html/postinstall.html ):

数据集的环境变量

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM