|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
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 359 of file Util.cpp.
Referenced by MeshGenerator::write().
| std::string Util::boolToUpperString | ( | const bool & | b | ) |
Definition at line 150 of file Util.cpp.
References toUpper().
Referenced by boolVectorToUpperString().

| std::string Util::boolVectorToUpperString | ( | const std::vector< bool > & | b | ) |
Definition at line 157 of file Util.cpp.
References boolToUpperString().

Definition at line 220 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 193 of file Util.cpp.
Referenced by Fieldmap::checkMap(), BoundaryGeometry::computeMeshVoxelization(), CavityAutophaser::getPhaseAtMaxEnergy(), OrbitThreader::OrbitThreader(), LaserProfile::sampleDist(), OpalBeamline::save3DInput(), OpalBeamline::save3DLattice(), LaserProfile::saveData(), LaserProfile::saveHistogram(), IndexMap::saveSDDS(), MeshGenerator::write(), Fieldmap::write3DField(), and DumpEMFields::writeFieldThis().
|
inline |
| std::string Util::doubleVectorToString | ( | const std::vector< double > & | v | ) |
Definition at line 172 of file Util.cpp.
References toString().

| double Util::erfinv | ( | double | x | ) |
|
inline |
Definition at line 51 of file Util.h.
References getGamma().
Referenced by Monitor::apply(), Monitor::apply(), Monitor::applyToReferenceParticle(), and Monitor::driftToCorrectPositionAndSave().

|
inline |
Definition at line 57 of file Util.h.
Referenced by RFCavity::getAutoPhaseEstimate(), and RFCavity::getAutoPhaseEstimateFallback().
|
inline |
|
inline |
Definition at line 135 of file Util.h.
Referenced by ParallelTracker::dumpStats(), and PartBunch< T, Dim >::print().
|
inline |
Definition at line 44 of file Util.h.
Referenced by Corrector::apply(), PluginElement::changeWidth(), OrbitThreader::checkElementLengths(), LossDataSink::computeSetStatistics(), ParallelTracker::execute(), ParallelTracker::findStartPositions(), getBeta(), getKineticEnergy(), RFCavity::trackOnAxisParticle(), and OrbitThreader::updateBoundingBoxWithCurrentPosition().
| std::string Util::getGitRevision | ( | ) |
Definition at line 32 of file Util.cpp.
Referenced by SDDSWriter::addDefaultParameters(), StatWriter::fillHeader(), main(), OPALXMAIN::printStdoutHeader(), SDDSWriter::replaceVersionString(), StringConstant::StringConstant(), H5PartWrapperForPT::writeHeader(), and LossDataSink::writeHeaderH5().
|
inline |
Definition at line 53 of file Util.h.
References getGamma().
Referenced by LossDataSink::computeSetStatistics(), RFCavity::getAutoPhaseEstimateFallback(), CavityAutophaser::getPhaseAtMaxEnergy(), CavityAutophaser::guessCavityPhase(), CavityAutophaser::track(), and RFCavity::trackOnAxisParticle().

|
inline |
Definition at line 88 of file Util.h.
Referenced by ParallelTracker::dumpStats(), ParallelTracker::execute(), and PartBunch< T, Dim >::print().
|
inline |
| ippl::Vector< double, 3 > Util::getTaitBryantAngles | ( | Quaternion | rotation, |
| const std::string & | |||
| ) |
Definition at line 110 of file Util.cpp.
References Quaternion::conjugate(), euclidean_norm(), Quaternion::rotate(), and Physics::two_pi.
Referenced by OpalBeamline::save3DInput().

|
inline |
Definition at line 65 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 214 of file Util.cpp.
References Physics::c.
Referenced by StatBaseWriter::rewindToSpos(), and Monitor::writeStatistics().
| void Util::toString | ( | IteratorIn | first, |
| IteratorIn | last, | ||
| IteratorOut | out | ||
| ) |
Definition at line 265 of file Util.h.
Referenced by doubleVectorToString().
| std::string Util::toUpper | ( | const std::string & | str | ) |
Definition at line 141 of file Util.cpp.
Referenced by Physics::Material::addMaterial(), Astra1DDynamic::Astra1DDynamic(), Astra1DMagnetoStatic::Astra1DMagnetoStatic(), boolToUpperString(), FieldSolver< T, Dim >::dumpScalField(), FieldSolver< T, Dim >::dumpVectField(), FM2DDynamic::FM2DDynamic(), FM2DMagnetoStatic::FM2DMagnetoStatic(), Physics::Material::getMaterial(), Attributes::getString(), Attributes::getStringArray(), main(), Attributes::makePredefinedString(), Attributes::makeUpperCaseString(), Attributes::PredefinedString::parse(), Attributes::PredefinedString::PredefinedString(), Attributes::setPredefinedString(), and Attributes::setUpperCaseString().