From 31d56a405456ef5a6b06b50770dbda4f32785c24 Mon Sep 17 00:00:00 2001 From: csendlinger Date: Mon, 13 Apr 2026 15:49:14 +0200 Subject: [PATCH] changed energy region in the genrich current and removed requirement that the radius is less than 1 cm for logging of the genrich current --- src/simulation/current_collector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simulation/current_collector.cpp b/src/simulation/current_collector.cpp index 1e232d3..357d826 100755 --- a/src/simulation/current_collector.cpp +++ b/src/simulation/current_collector.cpp @@ -15,7 +15,7 @@ CurrentCollector::CurrentCollector(const CylinderBinning& position_binning, collector_areas_phi(createAreaAzimuthal(position_binning)) #ifdef GENRICHCURRENT // Hard coded values, not ideal, but it didn't work using defines... - , energy_binning_(0.1, 5, 100) + , energy_binning_(0.1, 10, 100) , sample_z_negative_crossings( blitz::Range(position_binning.binIndexMin()(0), position_binning.binIndexMax()(0)), @@ -187,7 +187,7 @@ void CurrentCollector::collectLongitudinalMovement( if (bin_new(1) < bin_old(1)) { z_negative_crossings(bin_old(0), bin_new(1) + 1) += weight; #ifdef GENRICHCURRENT - if(bin_new(1) == -1 && bin_new(0)*position_binning_.stepsize()(0) < 0.01) { + if(bin_new(1) == -1) { int ebin = energy_binning_.bin(energy_eV); // #ifdef debug_genrich // // fprintf(stdout, "Energybin: %d, energy: %f\n", ebin, energy_eV);