Added new test class, reworked some code

Started Implementing Ionization
This commit is contained in:
Christian
2018-11-07 12:11:24 +01:00
parent cf7ac857d2
commit 15851a540a
14 changed files with 559 additions and 222 deletions
+33 -4
View File
@@ -1,14 +1,43 @@
//
// tests.hpp
// tests.h
// mc_electron
//
// Created by Christian Reiling on 17.10.18.
// Copyright © 2018 Christian Reiling. All rights reserved.
//
#ifndef tests_hpp
#define tests_hpp
#ifndef tests_h
#define tests_h
#include <stdio.h>
#include "simulation.h"
#endif /* tests_hpp */
void runTests();
class TestSimulation: public Simulation {
public:
~TestSimulation(){}
TestSimulation() : Simulation(){};
void injection (int numParticles, std::string outputFilePath);
void decaySpectrum (int numPoints, std::string outputFilePath);
void rejectionBetaDecay(int numDecays, std::string outputFilePath);
void maxwellBoltzmann(int numDecays, std::string outputFilePath);
};
class TestParticle: public Particle {
public:
~TestParticle(){}
TestParticle(){};
void sigmaEla_m2 (double Emin, double Emax, int numpoints, std::string outputFilePath);
void randomTheta (double E_eV, int numCalculations, std::string outputFilePath);
};
#endif