Files
katrin-plasma/src/mc_electron/katrin_geo.h
T
Christian 6f288bb0c1 Reworked Katrin Geometrics.
Added creation of T3+ clusters.
Added diss. recombination fo T3+ + e-
2019-07-12 15:15:23 +02:00

46 lines
841 B
C

//
// katrin_geo.h
// mc_electron
//
// Created by Christian Reiling on 11.07.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef katrin_geo_h
#define katrin_geo_h
#include "constants.h"
#include "kinematics.h"
inline bool in_WGTS(vec3 loc_m) {
double z_m = loc_m[2];
double r_m = sqrt(loc_m[0]*loc_m[0] + loc_m[1]*loc_m[1]);
if (z_m < z_WGTS_start_m) {
return false;
} else if (z_m > z_WGTS_end_m) {
return false;
} else if (r_m > r_WGTS_m) {
return false;
} else {
return true;
}
}
inline bool in_Katrin(vec3 loc_m) {
double z_m = loc_m[2];
double r_m = sqrt(loc_m[0]*loc_m[0] + loc_m[1]*loc_m[1]);
if (z_m < z_RW_m) {
return false;
} else if (z_m > z_DPS_end_m) {
return false;
} else if (r_m > r_WGTS_m) {
return false;
} else {
return true;
}
}
#endif /* katrin_geo_h */