IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 87205b0f authored by Felix Riehn's avatar Felix Riehn Committed by Maximilian Reininghaus
Browse files

comments

parent 765e0474
No related branches found
No related tags found
1 merge request!465Resolve "SOPHIA for low energy photo-hadronic interaction"
...@@ -81,7 +81,7 @@ namespace corsika::sophia { ...@@ -81,7 +81,7 @@ namespace corsika::sophia {
double Enucleon = nucleonP4.getTimeLikeComponent() / 1_GeV; double Enucleon = nucleonP4.getTimeLikeComponent() / 1_GeV;
double Ephoton = photonP4.getTimeLikeComponent() / 1_GeV; double Ephoton = photonP4.getTimeLikeComponent() / 1_GeV;
double theta = 0.0; // set nucleon at rest in collision double theta = 0.0; // set nucleon at rest in collision
int Imode; int Imode = -1; // overwritten inside SOPHIA
CORSIKA_LOGGER_DEBUG(logger_, CORSIKA_LOGGER_DEBUG(logger_,
"calling SOPHIA eventgen with L0={}, E0={}, eps={},theta={}", "calling SOPHIA eventgen with L0={}, E0={}, eps={},theta={}",
nucleonSophiaCode, Enucleon, Ephoton, theta); nucleonSophiaCode, Enucleon, Ephoton, theta);
......
...@@ -14,25 +14,3 @@ ...@@ -14,25 +14,3 @@
#include <corsika/framework/process/InteractionProcess.hpp> #include <corsika/framework/process/InteractionProcess.hpp>
/**
* @file Sophia.hpp
*
* Includes all the parts of the Sophia model. Defines the InteractionProcess<TModel>
* classes needed for the ProcessSequence.
*/
namespace corsika::sophia {
/**
* @brief sophia::Interaction is the process for ProcessSequence.
*
* The sophia::InteractionModel is wrapped as an InteractionProcess here in order
* to provide all the functions for ProcessSequence.
*/
// struct Interaction : public InteractionModel, public InteractionProcess<Interaction>
// {
// template <typename TEnvironment>
// Interaction(TEnvironment const& env)
// : InteractionModel{env} {}
// };
} // namespace corsika::sophia
...@@ -42,8 +42,8 @@ namespace corsika::sophia { ...@@ -42,8 +42,8 @@ namespace corsika::sophia {
/** /**
* @brief evaluated validity of collision system. * @brief evaluated validity of collision system.
* *
* SOPHIA only accepts nucleons as targets, or protons aka Hydrogen or * SOPHIA only accepts nucleons as targets, that is protons (Hydrogen) or
* neutrons (p,n == nucleon). * neutrons.
*/ */
bool constexpr isValid(Code const projectileId, Code const targetId, bool constexpr isValid(Code const projectileId, Code const targetId,
HEPEnergyType const sqrtSnn) const; HEPEnergyType const sqrtSnn) const;
......
...@@ -20,17 +20,6 @@ namespace corsika::sophia { ...@@ -20,17 +20,6 @@ namespace corsika::sophia {
enum class SophiaCode : int8_t; enum class SophiaCode : int8_t;
using SophiaCodeIntType = std::underlying_type<SophiaCode>::type; using SophiaCodeIntType = std::underlying_type<SophiaCode>::type;
// /**
// These are the possible projectile for which Sibyll knows the cross section
// */
// enum class SibyllXSClass : int8_t {
// CannotInteract = 0,
// Baryon = 1,
// Pion = 2,
// Kaon = 3,
// };
// using SophiaXSClassIntType = std::underlying_type<SophiaXSClass>::type;
#include <corsika/modules/sophia/Generated.inc> #include <corsika/modules/sophia/Generated.inc>
SophiaCode constexpr convertToSophia(Code const pCode) { SophiaCode constexpr convertToSophia(Code const pCode) {
...@@ -52,13 +41,6 @@ namespace corsika::sophia { ...@@ -52,13 +41,6 @@ namespace corsika::sophia {
return static_cast<int>(convertToSophia(code)); return static_cast<int>(convertToSophia(code));
} }
// int constexpr getSophiaXSCode(Code const code) {
// if (is_nucleus(code))
// return static_cast<SophiaXSClassIntType>(SophiaXSClass::CannotInteract);
// return static_cast<SophiaXSClassIntType>(
// corsika2sophiaXStype[static_cast<CodeIntType>(code)]);
// }
bool constexpr canInteract(Code const pCode) { bool constexpr canInteract(Code const pCode) {
return (pCode == Code::Photon ? true : false); return (pCode == Code::Photon ? true : false);
} }
......
...@@ -100,7 +100,6 @@ TEST_CASE("ProposalInterface", "modules") { ...@@ -100,7 +100,6 @@ TEST_CASE("ProposalInterface", "modules") {
// finish successfully // finish successfully
CHECK(emModel.doHadronicPhotonInteraction(view, cs, P4, Code::Oxygen) == CHECK(emModel.doHadronicPhotonInteraction(view, cs, P4, Code::Oxygen) ==
ProcessReturn::Ok); ProcessReturn::Ok);
// no LE interactions
CHECK(stack.getEntries() == 6); CHECK(stack.getEntries() == 6);
CORSIKA_LOG_INFO("Number of particles produced in hadronic photon interaction: {}", CORSIKA_LOG_INFO("Number of particles produced in hadronic photon interaction: {}",
stack.getEntries() - 1); stack.getEntries() - 1);
......
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