IAP GITLAB

Commit bcd50140 authored by AndriiKotenko's avatar AndriiKotenko

validated and preconfigured commit for geant4 interface usage

parent bb1af3d5
Pipeline #5153 failed with stage
in 12 seconds
......@@ -14,8 +14,8 @@ endmacro ()
CRMC_OPTION (CRMC_STATIC "Build with static library" OFF) #if ON should not combined DPMJET/PHOJET/PYTHIA because they use different version of pythia (for dynamic library no problem)
OPTION (__CRMCPROG__ "Build stabdalone CRMC program" ON) # standard CRMC installation (crmc protgram)
OPTION (__GEANT4__ "Build with geant4 interface" OFF) # crmc-geant4 interface
OPTION (__GEANT4PHYS__ "Build with geant4 interface" OFF) # crmc geant4 physics list (requires geant4 to be installed)
OPTION (__GEANT4__ "Build with geant4 interface" ON) # crmc-geant4 interface
OPTION (__GEANT4PHYS__ "Build with geant4 interface" ON) # crmc geant4 physics list (requires geant4 to be installed)
CRMC_OPTION (CRMC_ENABLE_ROOT "Build with ROOT support" OFF) # not encouraged! Please use HepMC
......@@ -485,8 +485,8 @@ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/src/crmc.param.in
SET(CRMC_TABDIR "${CMAKE_INSTALL_PREFIX}/share/crmc")
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/src/crmc.param.in
${CMAKE_BINARY_DIR}/crmc.param.install @ONLY IMMEDIATE)
install(FILES ${CMAKE_BINARY_DIR}/crmc.param.install TYPE SYSCONF
RENAME crmc.param)
#install(FILES ${CMAKE_BINARY_DIR}/crmc.param.install TYPE SYSCONF
# RENAME crmc.param)
# install tabs
SET (TABSDIR "")
......@@ -496,9 +496,9 @@ endforeach()
INSTALL (FILES ${TABSDIR} DESTINATION share/crmc/)
# install executable
if (__CRMCPROG__)
INSTALL (TARGETS crmc RUNTIME)
endif(__CRMCPROG__)
#if (__CRMCPROG__)
# INSTALL (TARGETS crmc RUNTIME)
#endif(__CRMCPROG__)
INSTALL (FILES ${CMAKE_BINARY_DIR}/src/epos.inc
src/epos.incems
src/epos.inchy
......
......@@ -52,7 +52,7 @@ INSTALLATION:
$ git clone --single-branch --branch svn/geant4 git@gitlab.ikp.kit.edu:AirShowerPhysics/crmc.git
$ mkdir crmc-geant4-build /// (this is where libraries and headers are installed)
$ cd crmc-geant4-build
$ cmake ../crmc
$ cmake ../crmc -DCRMC_DPMJET19=ON
$ make install
......@@ -75,13 +75,18 @@ SETUP ENVIRONMENT
- Setup CRMC
$ export CRMC_PREFIX=/PATH/TO/YOUR/CRMC/DISTRIBUTION
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CRMC_PREFIX}/crmc-geant4-build/lib
$ export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CRMC_PREFIX}/crmc-geant4-build/lib
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CRMC_PREFIX}/crmc-geant4-build/
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CRMC_PREFIX}/crmc-geant4-build/src/dpmjet
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CRMC_PREFIX}/crmc-geant4-build/src/epos
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CRMC_PREFIX}/crmc-geant4-build/src/geant4
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CRMC_PREFIX}/crmc-geant4-build/src/pythia
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CRMC_PREFIX}/crmc-geant4-build/src/hijing
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CRMC_PREFIX}/crmc-geant4-build/src/dpmjet/3.2019-1/
$ export CPATH=${CPATH}:${CRMC_PREFIX}/crmc-geant4-build/src
$ export CPATH=${CPATH}:${CRMC_PREFIX}/crmc/src
$ export CPATH=${CPATH}:${CRMC_PREFIX}/crmc/src/geant4
$ export CRMC_CONFIG_FILE=${CRMC_PREFIX}/crmc-geant4-build/crmc.param
$ export CRMC_LIB_PATH=${CRMC_PREFIX}/crmc-geant4-build/lib
$ export CRMC_LIB_PATH=${CRMC_PREFIX}/crmc-geant4-build
......
......@@ -31,7 +31,7 @@ static constexpr double ELASTIC_MIN_ENERGY_GEV = 100.*TeV;
static constexpr double HIGH_ENERGY_MODEL_CRITERION = 100.*GeV;
const std::array<std::string, 13> G4HadronPhysicsCRMC::fModelNames = { "EPOS-LHC", "EPOS-1.99", "QGSJET-01", "", "", "",
"SIBYLL-2.3", "QGSJETII-04", "", "", "", "QGSJETII-03", "DPMJET-3.06" };
"SIBYLL-2.3", "QGSJETII-04", "", "", "", "QGSJETII-03", "DPMJET-3.2019" };
G4HadronPhysicsCRMC::G4HadronPhysicsCRMC(int model):G4VHadronPhysics("HadronIonInelasticCrmc"),
fEthr(THRESHOLD_ENERGY_GEV_DEFAULT),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment