Screenshot with working ionization function.
Ionization will be changed to BED model.
This commit is contained in:
@@ -1,73 +0,0 @@
|
||||
//
|
||||
// constants.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 08.10.18.
|
||||
// Copyright © 2018 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef constants_h
|
||||
#define constants_h
|
||||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <deque>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#include "blitz/array.h"
|
||||
#include "blitz/tinyvec2.h"
|
||||
#include <random/uniform.h>
|
||||
#include <random/normal.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
class Constants
|
||||
{
|
||||
public:
|
||||
Constants() {};
|
||||
static const double pi;
|
||||
static const double c_nat;
|
||||
static const double c_ms;
|
||||
static const double kb_eVK;
|
||||
static const double me_eV;
|
||||
static const double qe_e;
|
||||
static const double re_m;
|
||||
static const double e_C;
|
||||
static const double rBohr_m;
|
||||
static const double ERyd_eV;
|
||||
|
||||
// Beta Decay
|
||||
static const double BetaDecayC;
|
||||
static const double ZHe3;
|
||||
static const double Etridecay_eV;
|
||||
|
||||
// Tritium
|
||||
static const double ZT2;
|
||||
static const double mT2_eV;
|
||||
|
||||
// Conversion Functions
|
||||
double calcAbs(blitz::TinyVector<double,3> vec);
|
||||
double calcV_msFromEkin_eV(double Ekin_eV, double m_eV);
|
||||
double calcGammaFromEkin_eV(double Ekin_eV, double m_eV);
|
||||
double calcBetaFromGamma(double gamma);
|
||||
double calcEkin_eVFromVAbs_ms(double vAbs_ms, double m_eV);
|
||||
double calcBetaFromVAbs_ms(double vAbs_ms);
|
||||
double calcGammaFromBeta(double beta);
|
||||
|
||||
// Help Functions
|
||||
blitz::TinyVector<double,3> zeroVec();
|
||||
blitz::TinyVector<double,3> getRandDir(ranlib::Uniform<double> *rngUni);
|
||||
blitz::TinyVector<double,3> getNewDir(blitz::TinyVector<double,3> oldDir, double theta,double phi);
|
||||
|
||||
// Random Generators
|
||||
double getRandEnergyMaxwell(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
|
||||
|
||||
Reference in New Issue
Block a user