Problem 2272

Summary: B1 example crashed
Product: Examples/Basic and Novice Reporter: Ilirjan Margjeka <ilirjan.margjeka>
Component: B1Assignee: Ivana Hrivnacova <ivana>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: P4    
Version: 10.6   
Hardware: All   
OS: Linux   

Description Ilirjan Margjeka 2020-09-10 10:21:43 CEST
Hello,

I am new to Geant4 and I am starting to study it for research purpose.

So, I followed the installation instructions of: 

http://geant4-userdoc.web.cern.ch/geant4-userdoc/UsersGuides/InstallationGuide/html/installguide.html

where I downloaded the version geant4.10.06.p02. in the dir: /home/user/WORKDIR/GEANT4 and did:

cmake -DCMAKE_INSTALL_PREFIX=/home/user/WORKDIR/GEANT4/geant4.10.06.p02-install /home/user/WORKDIR/GEANT4/geant4.10.06.p02

The installation went well without bugs. 

In the dir: home/user/WORKDIR/GEANT4 I have those folders after the installation:

geant4.10.06.p02  geant4.10.06.p02-build  geant4.10.06.p02-install 

Now, I wanted to try the examples, like B1.

So, in that dir I build a new one: 
mkdir B1-build 
cd B1-build

Before I installed, as shown in 
http://geant4-userdoc.web.cern.ch/geant4-userdoc/UsersGuides/InstallationGuide/html/installguide.html

I did: 

source home/user/WORKDIR/GEANT4/geant4.10.06.p02-install/bin/geant4.sh

and then:

cmake -DCMAKE_PREFIX_PATH=/home/user/WORKDIR/GEANT4/geant4.10.06.p02-install /home/user/WORKDIR/GEANT4/geant4.10.06.p02/examples/basic/B1

make

I've got here also no bugs.

Now, I wanted to run the example by doing:

./exampleB1 

But, I get those errors:

~/WORKDIR/GEANT4/B1-build$ ./exampleB1 
Available UI session types: [ GAG, tcsh, csh ]

-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : PART70001
      issued by : G4NuclideTable
ENSDFSTATE.dat is not found.
*** Fatal Exception *** core dump ***
Segmentation fault (core dumped)

Why?

How can i solve it?

Thx in advance!
Comment 1 Ivana Hrivnacova 2020-09-12 16:16:59 CEST
Hello,

The error message which you posted warns about missing data sets; please, see more information about the data sets in the installation guide:
http://geant4-userdoc.web.cern.ch/geant4-userdoc/UsersGuides/InstallationGuide/html/installguide.html#on-unix-platforms

and the paragraph starting with:
"Datasets are not required to be present to build Geant4, but may be required to run your application, ..."

The Geant4 basic examples always require installed data sets.
To get data sets with your Geant4 installation, you need to add the cmake option:

  -DGEANT4_INSTALL_DATA=ON

in your cmake command.

With best regards,