Working Version with Population update and T+ interactions.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user