Added export function to function container.

This commit is contained in:
Christian
2019-04-03 11:43:28 +02:00
parent c79661292e
commit e5d66411bb
6 changed files with 35 additions and 13 deletions
+12
View File
@@ -109,6 +109,18 @@ void replaceDelimiter(std::string &lineFromFile) {
return;
}
// System read out
string getTimeString() {
time_t rawtime;
struct tm * timeinfo;
char buffer[80];
time (&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer,sizeof(buffer),"%Y%m%d",timeinfo);
string str(buffer);
return(str);
}
// Calculate Kinematic Relations
double get_Ekin_eV_from_speed(double Speed_ms, double mass_eV) {
double beta = Speed_ms/c_ms;