changed energy region in the genrich current and removed requirement that the radius is less than 1 cm for logging of the genrich current
This commit is contained in:
@@ -15,7 +15,7 @@ CurrentCollector::CurrentCollector(const CylinderBinning& position_binning,
|
|||||||
collector_areas_phi(createAreaAzimuthal(position_binning))
|
collector_areas_phi(createAreaAzimuthal(position_binning))
|
||||||
#ifdef GENRICHCURRENT
|
#ifdef GENRICHCURRENT
|
||||||
// Hard coded values, not ideal, but it didn't work using defines...
|
// 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(
|
, sample_z_negative_crossings(
|
||||||
blitz::Range(position_binning.binIndexMin()(0),
|
blitz::Range(position_binning.binIndexMin()(0),
|
||||||
position_binning.binIndexMax()(0)),
|
position_binning.binIndexMax()(0)),
|
||||||
@@ -187,7 +187,7 @@ void CurrentCollector::collectLongitudinalMovement(
|
|||||||
if (bin_new(1) < bin_old(1)) {
|
if (bin_new(1) < bin_old(1)) {
|
||||||
z_negative_crossings(bin_old(0), bin_new(1) + 1) += weight;
|
z_negative_crossings(bin_old(0), bin_new(1) + 1) += weight;
|
||||||
#ifdef GENRICHCURRENT
|
#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);
|
int ebin = energy_binning_.bin(energy_eV);
|
||||||
// #ifdef debug_genrich
|
// #ifdef debug_genrich
|
||||||
// // fprintf(stdout, "Energybin: %d, energy: %f\n", ebin, energy_eV);
|
// // fprintf(stdout, "Energybin: %d, energy: %f\n", ebin, energy_eV);
|
||||||
|
|||||||
Reference in New Issue
Block a user