Toggle Recombination On/Off Toggle Excitation On/Off Control DCS_Data for Elastic and Excitaiton between: Elastic_data, 4Pi, 0Pi(straight forward)
60 lines
1.1 KiB
C++
60 lines
1.1 KiB
C++
//
|
|
// dcs_base.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 08.07.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef dcs_base_h
|
|
#define dcs_base_h
|
|
|
|
|
|
#include "random_operations.h"
|
|
#include "dcs_theta_container.hpp"
|
|
|
|
#include "error_types.h"
|
|
#include "constants.h"
|
|
|
|
class DCS_Base {
|
|
protected:
|
|
UniRNG *rngUni;
|
|
|
|
public:
|
|
DCS_Base(UniRNG *rngUni) {
|
|
this->rngUni = rngUni;
|
|
}
|
|
virtual double get_theta(const double &T_eV) = 0;
|
|
};
|
|
|
|
class FourPi_DCS : public DCS_Base {
|
|
public:
|
|
FourPi_DCS(UniRNG *rngUni) : DCS_Base(rngUni) {}
|
|
|
|
double get_theta(const double &T_eV) {
|
|
return rngUni->random()*2*pi;
|
|
}
|
|
};
|
|
|
|
class ZeroPi_DCS : public DCS_Base {
|
|
public:
|
|
ZeroPi_DCS(UniRNG *rngUni) : DCS_Base(rngUni) {}
|
|
|
|
double get_theta(const double &T_eV) {
|
|
return 0;
|
|
}
|
|
};
|
|
|
|
class Elastic_DCS : public DCS_Base {
|
|
DCS_Theta_Container dcs_data;
|
|
public:
|
|
Elastic_DCS(UniRNG *rngUni) : DCS_Base(rngUni), dcs_data(scale_start, scale_end, 1e3, 200, get_data_path() + "eT2_ela_DCS.dat") {}
|
|
|
|
double get_theta(const double &T_eV) {
|
|
return dcs_data.roll_value(T_eV, rngUni);
|
|
}
|
|
};
|
|
|
|
|
|
#endif /* dcs_base_h */
|