Finished DCS_Ionization Container.
Removed Energy Cut off for T2+ Ions. Tested Population loggers.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#ifndef size_container_hpp
|
||||
#define size_container_hpp
|
||||
|
||||
#include "linScale.h"
|
||||
#include "lin_scale.h"
|
||||
#include "katrin_geo.hpp"
|
||||
|
||||
|
||||
@@ -25,20 +25,17 @@ public:
|
||||
|
||||
Size_Container(int num_z_bins, int num_r_bins, int num_phi_bins) {
|
||||
r_scale = Lin_Scale(0, Katrin_Geo::get_radius_m(), num_r_bins);
|
||||
cell_length_m = (Katrin_Geo::get_z_WGTSend_m()-Katrin_Geo::get_z_RW_m()) / (num_z_bins-1);
|
||||
cell_length_m = (Katrin_Geo::get_z_WGTSend_m()-Katrin_Geo::get_z_RW_m()) / (num_z_bins);
|
||||
|
||||
data = new double[num_r_bins + 1];
|
||||
for (int i = 0; i<=num_r_bins; i++) {
|
||||
data = new double[num_r_bins];
|
||||
for (int i = 0; i<num_r_bins; i++) {
|
||||
data[i] = cell_length_m * calc_disc_surface_m2(i)/num_phi_bins;
|
||||
}
|
||||
}
|
||||
|
||||
double calc_disc_surface_m2 (const int &r_bin) {
|
||||
if (r_bin == 0) {
|
||||
return (0);
|
||||
}
|
||||
double previous_r_m = r_scale.calc_upper_bound(r_bin-1);
|
||||
double this_r_m = r_scale.calc_upper_bound(r_bin);
|
||||
double previous_r_m = r_scale.get_lower_bin_bound(r_bin);
|
||||
double this_r_m = r_scale.get_upper_bin_bound(r_bin);
|
||||
double A_m2 = pi * (this_r_m * this_r_m - previous_r_m * previous_r_m);
|
||||
return(A_m2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user