Changes in general code and added class energyhisto for
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
//
|
||||
// simulation.h
|
||||
//
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 13.09.18.
|
||||
// Created by Christian Reiling on 20.09.18.
|
||||
// Copyright © 2018 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef simulation_h
|
||||
@@ -17,47 +18,47 @@
|
||||
#include "blitz/tinyvec2.h"
|
||||
#include <random/uniform.h>
|
||||
|
||||
#include "particle.h"
|
||||
#include "parameter.h"
|
||||
#include "katrin.h"
|
||||
|
||||
using namespace blitz;
|
||||
using namespace std;
|
||||
using namespace ranlib;
|
||||
#include "particle.h"
|
||||
#include "energyhisto.h"
|
||||
|
||||
|
||||
class Simulation: public Parameter
|
||||
{
|
||||
public:
|
||||
~Simulation(){};
|
||||
Simulation()
|
||||
{
|
||||
Simulation() {
|
||||
numInjectedParticles = 0;
|
||||
rngUni.seed(seed);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
void init(void);
|
||||
void doit(void);
|
||||
void inject();
|
||||
void move(Particle inputparticle, double mfp);
|
||||
void output(void);
|
||||
|
||||
|
||||
double calctotalcross(Particle inputparticle){return 0;};
|
||||
|
||||
|
||||
void move(double MFP,int queueNum=0);
|
||||
bool movedOutside(int queueNum=0);
|
||||
void moveToLocOfDeath(blitz::TinyVector<double,3> oldLoc, int queueNum=0);
|
||||
|
||||
|
||||
double calcMFP();
|
||||
|
||||
protected:
|
||||
Katrin KAT;
|
||||
Uniform<double> rngUni;
|
||||
ranlib::Uniform<double> rngUni;
|
||||
|
||||
double t;
|
||||
double id;
|
||||
|
||||
vector<Particle> particleQueue;
|
||||
std::vector<Particle> particleQueue;
|
||||
int numInjectedParticles;
|
||||
vector<Particle>::iterator particleQueueIt;
|
||||
std::vector<Particle>::iterator particleQueueIt;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user