44 lines
999 B
C++
44 lines
999 B
C++
//
|
|
// energeticPop_container.hpp
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 15.05.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef energeticPop_container_hpp
|
|
#define energeticPop_container_hpp
|
|
|
|
#include "zylindric_cords.h"
|
|
#include "particle.hpp"
|
|
#include "random_operations.h"
|
|
|
|
class EnergeticPop_Container : private Base_Container<dim4Map>, private Zylindric_Cords {
|
|
double E_max_eV;
|
|
double Epoints;
|
|
|
|
public:
|
|
EnergeticPop_Container(vec3 zrphi_numBins, double E_max_eV, double Epoints) : Zylindric_Cords(zrphi_numBins) {
|
|
this->E_max_eV = E_max_eV;
|
|
this->Epoints = Epoints;
|
|
set_Map();
|
|
}
|
|
private:
|
|
void set_Map();
|
|
|
|
public:
|
|
double getDensity_m3(const vec3 &locXYZ_m, double physTime_s) ;
|
|
private:
|
|
double get_cumulated_time_s(vec3 zrphiCords);
|
|
|
|
public:
|
|
void upDensity (const Particle &upParticle, const vec3 &oldLocXYZ_m) ;
|
|
|
|
public:
|
|
double roll_Energy_eV(const vec3 &locXYZ_m, UniRNG *rngUni) ;
|
|
|
|
};
|
|
|
|
|
|
#endif /* energeticPop_container_hpp */
|