From 9e75eec24ddfbfffb11b99ac336a68566353e684 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Schmidt?= <upwli@student.kit.edu>
Date: Tue, 14 Jul 2020 19:38:59 +0200
Subject: [PATCH] possible addition of magneticfield

---
 Framework/Cascade/Cascade.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Framework/Cascade/Cascade.h b/Framework/Cascade/Cascade.h
index ac1169c69..bc13b3ac4 100644
--- a/Framework/Cascade/Cascade.h
+++ b/Framework/Cascade/Cascade.h
@@ -227,6 +227,8 @@ namespace corsika::cascade {
       auto magMaxLength = 1_m / 0;
       auto directionAfter = directionBefore;
       if (chargeNumber != 0) {
+        // auto magneticfield = currentLogicalNode->GetModelProperties().
+                                GetMagneticField(vParticle.GetPosition());
         auto magneticfield = corsika::geometry::Vector(fEnvironment.GetCoordinateSystem(),
                                                        0_uT, 50_uT, 0_uT);
         geometry::Vector<SpeedType::dimension_type> const velocityVerticalMag =
@@ -240,6 +242,7 @@ namespace corsika::cascade {
         // First Movement
         auto position = vParticle.GetPosition() + directionBefore * Steplength / 2;
         // Change of direction by magnetic field at position
+        // magneticfield = currentLogicalNode->GetModelProperties.GetMagneticField(position);
         magneticfield = corsika::geometry::Vector(fEnvironment.GetCoordinateSystem(),
                                                   0_uT, 50_uT, 0_uT);
         directionAfter = directionBefore +
-- 
GitLab