Reworked Katrin Geometrics.
Added creation of T3+ clusters. Added diss. recombination fo T3+ + e-
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
//
|
||||
// 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 */
|
||||
Reference in New Issue
Block a user