Major changes:
- Added individul operators for species and better selecting process. - Switched to C arrays for main loop operations and calculating array indizes using knowledge of binning instead of doing sorted search - Added Recombination - Reworked elastic scattering kinematics - Added inelastic scattering kinematics
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// process_base.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 16.05.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef process_base_h
|
||||
#define process_base_h
|
||||
|
||||
#include "particle.hpp"
|
||||
|
||||
|
||||
class Process_Base {
|
||||
species this_species;
|
||||
|
||||
public:
|
||||
Process_Base(species this_species) {
|
||||
this->this_species = this_species;
|
||||
}
|
||||
|
||||
species get_species() {return(this_species); }
|
||||
|
||||
void check (const species &check_species) {
|
||||
if (check_species != this_species) {
|
||||
std::stringstream ss;
|
||||
ss<<"Process_Base::check this_species missmatch.\n";
|
||||
throw MyException(ss.str());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif /* process_base_h */
|
||||
Reference in New Issue
Block a user