|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
|
Classes | |
| struct | KahanAccumulation |
Functions | |
| std::string | getGitRevision () |
| double | erfinv (double x) |
| Vector_t< double, 3 > | getTaitBryantAngles (Quaternion rotation, const std::string &) |
| std::string | toUpper (const std::string &str) |
| std::string | boolToUpperString (const bool &b) |
| std::string | boolVectorToUpperString (const std::vector< bool > &b) |
| std::string | doubleVectorToString (const std::vector< double > &v) |
| std::string | combineFilePath (std::initializer_list< std::string > ilist) |
| unsigned int | 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 | |
| std::string | base64_encode (const std::string &string_to_encode) |
| std::string | base64_decode (std::string const &encoded_string) |
| double | getGamma (ippl::Vector< double, 3 > p) |
| ippl::Vector< double, 3 > | getBeta (ippl::Vector< double, 3 > p) |
| double | getKineticEnergy (ippl::Vector< double, 3 > p, double mass) |
| double | getBetaGamma (double Ekin, double mass) |
| double | convertMomentumEVoverCToBetaGamma (double p, double mass) |
| std::string | getTimeString (double time, unsigned int precision=3) |
| std::string | getLengthString (double spos, unsigned int precision=3) |
| std::string | getLengthString (ippl::Vector< double, 3 > spos, unsigned int precision=3) |
| std::string | getEnergyString (double energyInMeV, unsigned int precision=3) |
| std::string | getChargeString (double charge, unsigned int precision=3) |
| template<class IteratorIn, class IteratorOut> | |
| void | toString (IteratorIn first, IteratorIn last, IteratorOut out) |
| template<typename T> | |
| std::string | toStringWithThousandSep (T value, char sep='\'') |
| template<typename T, typename A> | |
| T * | c_data (std::vector< T, A > &v) |
| template<typename T, typename A> | |
| T const * | c_data (std::vector< T, A > const &v) |
| std::string Util::base64_decode | ( | std::string const & | encoded_string | ) |
| std::string Util::base64_encode | ( | const std::string & | string_to_encode | ) |
Definition at line 369 of file Util.cpp.
Referenced by MeshGenerator::write().
| std::string Util::boolToUpperString | ( | const bool & | b | ) |
Definition at line 154 of file Util.cpp.
References toUpper().
Referenced by boolVectorToUpperString().
| std::string Util::boolVectorToUpperString | ( | const std::vector< bool > & | b | ) |
Definition at line 161 of file Util.cpp.
References boolToUpperString().
Definition at line 225 of file Util.h.
Referenced by H5PartWrapper::copyStepData(), H5PartWrapperForPT::readStepData(), and H5PartWrapperForPT::writeStepData().
| std::string Util::combineFilePath | ( | std::initializer_list< std::string > | ilist | ) |
Definition at line 197 of file Util.cpp.
Referenced by Fieldmap::checkMap(), BoundaryGeometry::computeMeshVoxelization(), FM3DDynamic::getOnaxisEz(), CavityAutophaser::getPhaseAtMaxEnergy(), OrbitThreader::OrbitThreader(), LaserProfile::sampleDist(), OpalBeamline::save3DInput(), OpalBeamline::save3DLattice(), LaserProfile::saveData(), LaserProfile::saveHistogram(), IndexMap::saveSDDS(), MeshGenerator::write(), Fieldmap::write3DField(), DumpEMFields::writeFieldThis(), and DumpFields::writeFieldThis().
|
inline |
| std::string Util::doubleVectorToString | ( | const std::vector< double > & | v | ) |
Definition at line 176 of file Util.cpp.
References toString().
| double Util::erfinv | ( | double | x | ) |
|
inline |
Definition at line 51 of file Util.h.
References getGamma().
|
inline |
Definition at line 59 of file Util.h.
Referenced by RFCavity::getAutoPhaseEstimate(), and RFCavity::getAutoPhaseEstimateFallback().
|
inline |
|
inline |
Definition at line 140 of file Util.h.
Referenced by ParallelTracker::dumpStats().
|
inline |
Definition at line 44 of file Util.h.
Referenced by Corrector::apply(), PluginElement::changeWidth(), OrbitThreader::checkElementLengths(), ParallelTracker::execute(), ParallelTracker::findStartPosition(), getBeta(), getKineticEnergy(), RFCavity::trackOnAxisParticle(), and OrbitThreader::updateBoundingBoxWithCurrentPosition().
| std::string Util::getGitRevision | ( | ) |
Definition at line 32 of file Util.cpp.
References GIT_VERSION.
Referenced by SDDSWriter::addDefaultParameters(), main(), OPALXMAIN::printStdoutHeader(), SDDSWriter::replaceVersionString(), StringConstant::StringConstant(), H5PartWrapperForPT::writeHeader(), and LossDataSink::writeHeaderH5().
|
inline |
Definition at line 55 of file Util.h.
References getGamma().
Referenced by RFCavity::getAutoPhaseEstimateFallback(), CavityAutophaser::getPhaseAtMaxEnergy(), CavityAutophaser::guessCavityPhase(), CavityAutophaser::track(), and RFCavity::trackOnAxisParticle().
|
inline |
Definition at line 93 of file Util.h.
Referenced by ParallelTracker::dumpStats(), and ParallelTracker::execute().
|
inline |
| ippl::Vector< double, 3 > Util::getTaitBryantAngles | ( | Quaternion | rotation, |
| const std::string & | ) |
Definition at line 114 of file Util.cpp.
References Quaternion::conjugate(), euclidean_norm(), Quaternion::rotate(), and Physics::two_pi.
Referenced by OpalBeamline::save3DInput().
|
inline |
Definition at line 70 of file Util.h.
Referenced by ParallelTracker::dumpStats(), and ParallelTracker::execute().
| 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
Definition at line 219 of file Util.cpp.
References Physics::c, and end().
Referenced by StatBaseWriter::rewindToSpos(), and Monitor::writeStatistics().
| void Util::toString | ( | IteratorIn | first, |
| IteratorIn | last, | ||
| IteratorOut | out ) |
Definition at line 270 of file Util.h.
Referenced by doubleVectorToString().
| std::string Util::toUpper | ( | const std::string & | str | ) |
Definition at line 145 of file Util.cpp.
Referenced by Physics::Material::addMaterial(), Astra1DDynamic::Astra1DDynamic(), Astra1DElectroStatic::Astra1DElectroStatic(), Astra1DMagnetoStatic::Astra1DMagnetoStatic(), boolToUpperString(), FieldSolver< T, Dim >::dumpScalField(), FieldSolver< T, Dim >::dumpVectField(), FM2DDynamic::FM2DDynamic(), FM2DElectroStatic::FM2DElectroStatic(), FM2DMagnetoStatic::FM2DMagnetoStatic(), FM3DDynamic::FM3DDynamic(), FM3DMagnetoStatic::FM3DMagnetoStatic(), FM3DMagnetoStaticExtended::FM3DMagnetoStaticExtended(), Physics::Material::getMaterial(), Attributes::getString(), Attributes::getStringArray(), main(), Attributes::makePredefinedString(), Attributes::makeUpperCaseString(), Attributes::PredefinedString::parse(), Attributes::PredefinedString::PredefinedString(), Astra1DDynamic_fast::readFileHeader(), Astra1DElectroStatic_fast::readFileHeader(), Astra1DMagnetoStatic_fast::readFileHeader(), FM1DDynamic::readFileHeader(), FM1DDynamic_fast::readFileHeader(), FM1DElectroStatic::readFileHeader(), FM1DElectroStatic_fast::readFileHeader(), FM1DMagnetoStatic::readFileHeader(), FM1DMagnetoStatic_fast::readFileHeader(), Attributes::setPredefinedString(), and Attributes::setUpperCaseString().