OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Namespaces | Macros | Functions
Util.cpp File Reference
#include "Utilities/Util.h"
#include "Physics/Physics.h"
#include "OPALrevision.h"
#include <boost/regex.hpp>
#include <boost/filesystem.hpp>
#include <queue>
#include <string>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <cctype>
#include <cmath>
Include dependency graph for Util.cpp:

Go to the source code of this file.

Namespaces

 Util
 

Macros

#define erfinv_a3   -0.140543331
 
#define erfinv_a2   0.914624893
 
#define erfinv_a1   -1.645349621
 
#define erfinv_a0   0.886226899
 
#define erfinv_b4   0.012229801
 
#define erfinv_b3   -0.329097515
 
#define erfinv_b2   1.442710462
 
#define erfinv_b1   -2.118377725
 
#define erfinv_b0   1
 
#define erfinv_c3   1.641345311
 
#define erfinv_c2   3.429567803
 
#define erfinv_c1   -1.62490649
 
#define erfinv_c0   -1.970840454
 
#define erfinv_d2   1.637067800
 
#define erfinv_d1   3.543889200
 
#define erfinv_d0   1
 

Functions

std::string Util::getGitRevision ()
 
double Util::erfinv (double x)
 
Vector_t Util::getTaitBryantAngles (Quaternion rotation, const std::string &)
 
std::string Util::toUpper (const std::string &str)
 
std::string Util::combineFilePath (std::initializer_list< std::string > ilist)
 
unsigned int Util::rewindLinesSDDS (const std::string &fileName, double maxSPos, bool checkForTime)
 rewind the SDDS file such that the spos of the last step is less or equal to maxSPos More...
 
std::string Util::base64_encode (const std::string &string_to_encode)
 
std::string Util::base64_decode (std::string const &encoded_string)
 

Macro Definition Documentation

◆ erfinv_a0

#define erfinv_a0   0.886226899

Definition at line 25 of file Util.cpp.

◆ erfinv_a1

#define erfinv_a1   -1.645349621

Definition at line 24 of file Util.cpp.

◆ erfinv_a2

#define erfinv_a2   0.914624893

Definition at line 23 of file Util.cpp.

◆ erfinv_a3

#define erfinv_a3   -0.140543331

Definition at line 22 of file Util.cpp.

◆ erfinv_b0

#define erfinv_b0   1

Definition at line 31 of file Util.cpp.

◆ erfinv_b1

#define erfinv_b1   -2.118377725

Definition at line 30 of file Util.cpp.

◆ erfinv_b2

#define erfinv_b2   1.442710462

Definition at line 29 of file Util.cpp.

◆ erfinv_b3

#define erfinv_b3   -0.329097515

Definition at line 28 of file Util.cpp.

◆ erfinv_b4

#define erfinv_b4   0.012229801

Definition at line 27 of file Util.cpp.

◆ erfinv_c0

#define erfinv_c0   -1.970840454

Definition at line 36 of file Util.cpp.

◆ erfinv_c1

#define erfinv_c1   -1.62490649

Definition at line 35 of file Util.cpp.

◆ erfinv_c2

#define erfinv_c2   3.429567803

Definition at line 34 of file Util.cpp.

◆ erfinv_c3

#define erfinv_c3   1.641345311

Definition at line 33 of file Util.cpp.

◆ erfinv_d0

#define erfinv_d0   1

Definition at line 40 of file Util.cpp.

◆ erfinv_d1

#define erfinv_d1   3.543889200

Definition at line 39 of file Util.cpp.

◆ erfinv_d2

#define erfinv_d2   1.637067800

Definition at line 38 of file Util.cpp.