36 lines
755 B
C++
36 lines
755 B
C++
//
|
|
// injector.hpp
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 13.04.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef injector_hpp
|
|
#define injector_hpp
|
|
|
|
#include "particle.hpp"
|
|
|
|
#include "random_operations.h"
|
|
|
|
|
|
class Injector : RNG_Base {
|
|
static const int injectionMethod;
|
|
static const double injectionEnergy_eV;
|
|
|
|
Particle_Builder PartFac;
|
|
|
|
public:
|
|
Injector() : RNG_Base(NULL, NULL) {};
|
|
Injector(UniRNG *rngUni, NormalRNG *rngNormal) : RNG_Base(rngUni, rngNormal){};
|
|
|
|
Particle injectElectron (const int &newId);
|
|
private:
|
|
double roll_FermiEnergy_eV();
|
|
double get_FermiDecaySpectrumDensity(const double &E_eV);
|
|
double get_FermiFunction(const double &Z, const double &E_eV);
|
|
};
|
|
|
|
|
|
#endif /* injector_hpp */
|