Changes to Interaction Processor, making possible to add infinite Interactions for all kind of Particles
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// 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 "functions.hpp"
|
||||
#include "katrin.hpp"
|
||||
#include "particle.hpp"
|
||||
|
||||
|
||||
class Injector : RNG_Base {
|
||||
public:
|
||||
Injector(Katrin *Kat, UniRNG *rngUni, NormalRNG *rngNormal) : RNG_Base(rngUni, rngNormal){
|
||||
this->Kat = Kat;
|
||||
};
|
||||
|
||||
Particle injectElectron (const int &newId);
|
||||
private:
|
||||
double roll_FermiEnergy_eV();
|
||||
double get_FermiDecaySpectrumDensity(const double &Ekin_eV);
|
||||
double get_FermiFunction(const double &Z, const double &Ekin_eV);
|
||||
|
||||
Katrin *Kat;
|
||||
ParticleBuilder PartFac;
|
||||
|
||||
static const int injectionMethod;
|
||||
static const double injectionEnergy_eV;
|
||||
};
|
||||
#endif /* injector_hpp */
|
||||
Reference in New Issue
Block a user