Added new test class, reworked some code
Started Implementing Ionization
This commit is contained in:
+33
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user