52 lines
1016 B
C++
52 lines
1016 B
C++
//
|
|
// simulation.hpp
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 20.09.18.
|
|
// Copyright © 2018 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef simulation_hpp
|
|
#define simulation_hpp
|
|
|
|
|
|
#include "parameter.hpp"
|
|
#include "constants.hpp"
|
|
#include "katrin.hpp"
|
|
#include "electron.hpp"
|
|
#include "logger.hpp"
|
|
|
|
#include <deque>
|
|
|
|
|
|
class Simulation: private Parameter, private Constants {
|
|
public:
|
|
Simulation();
|
|
|
|
void doit();
|
|
private:
|
|
void do_statusUpdate();
|
|
void move_electron(Electron *moveElectron, Logger *Log);
|
|
void do_interaction(Electron *interactElectron);
|
|
bool check_NumberInteractions(int &numberInteractionsThisElectron);
|
|
Katrin Kat;
|
|
Logger Log;
|
|
ranlib::Uniform<double> rngUni;
|
|
ranlib::NormalUnit<double> rngNormal;
|
|
int numberTotalElectrons;
|
|
int numberDecays;
|
|
std::deque<Electron> electronQue;
|
|
Electron *actionElectronPtr;
|
|
|
|
//Updater
|
|
int updater_numberOfPrevious;
|
|
int updater_fraction;
|
|
|
|
public:
|
|
void doTC6();
|
|
private:
|
|
void parameterCheck_TC6();
|
|
};
|
|
|
|
#endif /* simulation_hpp */
|