Screenshot with working ionization function.
Ionization will be changed to BED model.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// functions.hpp
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 07.02.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef functions_hpp
|
||||
#define functions_hpp
|
||||
|
||||
#include "constants.hpp"
|
||||
|
||||
|
||||
double calc_vecAbs(blitz::TinyVector<double,3> vec);
|
||||
double calc_Speed_from_Ekin_eV(double Ekin_eV, double mass_eV);
|
||||
double calc_gamma_from_Ekin_eV(double Ekin_eV, double mass_eV);
|
||||
double calc_beta_from_gamma(double gamma);
|
||||
double calc_Ekin_eV_from_speed(double Speed, double mass_eV);
|
||||
double calc_gamma_from_beta(double beta);
|
||||
|
||||
blitz::TinyVector<double,3> calc_Newdirection(blitz::TinyVector<double,3> oldDir, double theta,double phi);
|
||||
|
||||
blitz::TinyVector<double,3> roll_uniform_direction(ranlib::Uniform<double> *rngUni);
|
||||
double roll_MB_Energy(double Temp_K,double mass_eV,ranlib::NormalUnit<double> *rngNormal);
|
||||
//double doRejectionMethod(double pdf(double), double xmin, double xmax, double pmax, ranlib::Uniform<double> *rngUni);
|
||||
|
||||
|
||||
#endif /* functions_hpp */
|
||||
Reference in New Issue
Block a user