Files
katrin-plasma/src/mc_electron/population4_container.hpp
T
Christian 4b744769c6 Added Ionization Channels for e+T2 -> now 3 Processes from Janev are available:
eT2_T2I_Ionization_Janev_(label)
1. non dissoziative labeled as ndiss
2. dissoziative via X2 Sigma^+_g labeled as diss_g
3. dissoziative via B2 Sigma^+_u labeled as diss_u

Added more Excitation Channels e + T2 from Janev
2019-07-04 10:24:36 +02:00

52 lines
1.6 KiB
C++

//
// population4_container.hpp
// mc_electron
//
// Created by Christian Reiling on 11.06.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef population4_container_hpp
#define population4_container_hpp
#include "log_scale.h"
#include "katrin_geo.hpp"
#include "timer.hpp"
class Pop4_Container {
double ****data;
Lin_Scale z_scale;
Lin_Scale r_scale;
Lin_Scale phi_scale;
Log_Scale E_scale;
public:
//Pop4_Container() {};
Pop4_Container(int num_z_bins, int num_r_bins, int num_phi_bins, int num_E_bins);
~Pop4_Container();
Pop4_Container(const Pop4_Container& other);
Pop4_Container& operator=(const Pop4_Container& other);
void increase_value(const double &value, const vec3 &loc_m, const double &E_eV);
void increase_value(const double &value, const vec3 &loc1_m, const vec3 &loc2_m, const double &E_eV);
double get_value(const vec3 &loc_m, const double &E_eV);
double *get_E_bins (const vec3 &loc_m);
int get_num_E_bins(){return E_scale.get_number_bins();}
double get_corresponding_E_lower_eV(int E_bin){return E_scale.get_lower_bin_bound(E_bin);}
double get_corresponding_E_upper_eV(int E_bin){return E_scale.get_upper_bin_bound(E_bin);}
void set_value_by_bin(double value, int z_bin, int r_bin, int phi_bin, int E_bin) {data[z_bin][r_bin][phi_bin][E_bin] = value;}
double get_value_by_bin(int z_bin, int r_bin, int phi_bin, int E_bin) {return data[z_bin][r_bin][phi_bin][E_bin];}
Lin_Scale get_z_scale(){return z_scale;}
Lin_Scale get_r_scale(){return r_scale;}
Lin_Scale get_phi_scale(){return phi_scale;}
Log_Scale get_E_scale(){return E_scale;}
};
#endif /* population4_container_hpp */