Problems with setting environment for Geant4

Hi dear community, by running make I get the following error:

/afs/cern.ch/user/f/fabbasi/antiproton_annihilation-1.0.0/ISOTOPES/He4/exampleB2b.cc:30:35: fatal error: DetectorConstruction.hh: No such file or directory

#include “DetectorConstruction.hh”

My G4 environment variable are below. I don’t understand what is missing. Are these pointing to the right place?

G4LEVELGAMMADATA=/cvmfs/geant4.cern.ch/share/data/PhotonEvaporation5.3
G4INSTALL=/cvmfs/geant4.cern.ch/geant4/10.5/x86_64-slc6-gcc63-opt
G4LEDATA=/cvmfs/geant4.cern.ch/share/data/G4EMLOW7.7
G4NEUTRONHPDATA=/cvmfs/geant4.cern.ch/share/data/G4NDL4.5
G4ENSDFSTATEDATA=/cvmfs/geant4.cern.ch/share/data/G4ENSDFSTATE2.2
G4RADIOACTIVEDATA=/cvmfs/geant4.cern.ch/share/data/RadioactiveDecay5.3
G4ABLADATA=/cvmfs/geant4.cern.ch/share/data/G4ABLA3.1
G4PIIDATA=/cvmfs/geant4.cern.ch/share/data/G4PII1.3
G4PARTICLEXSDATA=/cvmfs/geant4.cern.ch/share/data/G4PARTICLEXS1.1
G4SAIDXSDATA=/cvmfs/geant4.cern.ch/share/data/G4SAIDDATA2.0
G4REALSURFACEDATA=/cvmfs/geant4.cern.ch/share/data/RealSurface2.1.1
G4SYSTEM=Linux-g++
G4_LIB=/cvmfs/geant4.cern.ch/geant4/10.5/x86_64-slc6-gcc63-opt/lib64
G4WORKDIR=.
G4INCLDATA=/cvmfs/geant4.cern.ch/share/data/G4INCL1.0

Geant4 10.5 is a very old version - are you able to update to at least 10.7, if not better 11.0? This isn’t necessarily the cause of the problem, but there have been many developments since 10.5 which might resolve things even at this level.

Thank you Benjamin for your hints - its frustrating

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.