IAP GITLAB

Skip to content
Snippets Groups Projects
Commit deb450fd authored by ralfulrich's avatar ralfulrich
Browse files

remove demo CONEX process

parent c085edc2
No related branches found
No related tags found
2 merge requests!234WIP: Initial example of python as script language from C++,!232Conex EM
...@@ -9,7 +9,6 @@ if (Pythia8_FOUND) ...@@ -9,7 +9,6 @@ if (Pythia8_FOUND)
add_subdirectory (Pythia) add_subdirectory (Pythia)
endif (Pythia8_FOUND) endif (Pythia8_FOUND)
if (CONEX_FOUND) if (CONEX_FOUND)
add_subdirectory (CONEX)
add_subdirectory (CONEXSourceCut) add_subdirectory (CONEXSourceCut)
endif (CONEX_FOUND) endif (CONEX_FOUND)
add_subdirectory (HadronicElasticModel) add_subdirectory (HadronicElasticModel)
......
set (
MODEL_SOURCES
CONEX.cc
)
set (
MODEL_HEADERS
CONEX.h
)
set (
MODEL_NAMESPACE
corsika/process/conex
)
add_library (ProcessConex STATIC ${MODEL_SOURCES})
CORSIKA_COPY_HEADERS_TO_NAMESPACE (ProcessConex ${MODEL_NAMESPACE} ${MODEL_HEADERS})
set_target_properties (
ProcessConex
PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION 1
)
# target dependencies on other libraries (also the header onlys)
target_link_libraries (
ProcessConex
CORSIKAprocesssequence
CORSIKAparticles
CORSIKAutilities
CORSIKAunits
CORSIKAgeometry
CORSIKAenvironment
CORSIKAsetup
CORSIKArandom
CorsikaData
C8::ext::conex
)
target_include_directories (
ProcessConex
INTERFACE
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
$<INSTALL_INTERFACE:include/include>
)
install (
TARGETS ProcessConex
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
# --------------------
# code unit testing
CORSIKA_ADD_TEST(testConex
SOURCES
testConex.cc
${MODEL_HEADERS}
)
target_link_libraries (
testConex
ProcessConex
CORSIKAtesting
)
/*
* (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
*
* See file AUTHORS for a list of contributors.
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#include <corsika/process/conex/CONEX.h>
using namespace corsika::process::CONEX;
conex::conex() {}
/*
* (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
*
* See file AUTHORS for a list of contributors.
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#pragma once
//#include <ConexDynamicInterface.h>
namespace corsika::process::CONEX {
class conex {
public:
conex();
};
} // namespace corsika::process::CONEX
/*
* (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu
*
* See file AUTHORS for a list of contributors.
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#include <corsika/process/conex/CONEX.h>
#include <corsika/random/RNGManager.h>
#include <corsika/particles/ParticleProperties.h>
#include <corsika/geometry/Point.h>
#include <corsika/units/PhysicalUnits.h>
#include <corsika/utl/CorsikaFenv.h>
#include <catch2/catch.hpp>
TEST_CASE("CONEX", "[processes]") {
SECTION("linking conex") {
using std::cout;
using std::endl;
/*
std::string parameterPathName = "";
// auto cxModel = eSibyll23;
// ConexDynamicInterface cx(cxModel);
int randomSeeds[3];
randomSeeds[0] = 1234;
randomSeeds[1] = 0;
randomSeeds[2] = 0;
int nShower = 1; // large to avoid final stats.
int maxDetail = 0;
int particleListMode = 0;
// cx.Init(nShower, randomSeeds, maxDetail, particleListMode, parameterPathName);
double energyInGeV = 100.;
double zenith = 60;
double azimuth = 0;
double impactParameter = 0;
int particleType = 100;
// cx.RunConex(randomSeeds, energyInGeV, zenith, azimuth, impactParameter,
// particleType);
*/
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment