diff --git a/Framework/Cascade/Cascade.h b/Framework/Cascade/Cascade.h index ac1169c69e15ee87e3cf89e548cc076e3f818563..bc13b3ac42a70507a47c8a8a9477958efd19d934 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 +