Working Version with Population update and T+ interactions.

This commit is contained in:
Christian
2019-05-08 13:03:10 +02:00
parent 2f764c4812
commit 0f2a5625a2
63 changed files with 1353 additions and 646 deletions
+28
View File
@@ -0,0 +1,28 @@
//
// timer.cpp
// mc_electron
//
// Created by Christian Reiling on 07.05.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#include "timer.hpp"
#include "read_system.h"
const double Timer::wgtsT2MaxDensity_m3 = getParameter("wgtsT2MaxDensity_m3");
double Timer::get_physTime_s() {
return ( double(*numTotDecays)/T2_activity_s );
}
void Timer::set_T2_activity_s() {
double r_m = Katrin_Geo::get_radius_m();
double l_m = Katrin_Geo::get_wgtsLength_m();
double V_m3 = pi*r_m*r_m*l_m;
double NT2 = (wgtsT2MaxDensity_m3/2)*V_m3;
T2_activity_s = NT2*decayConstT2_s;
}