#include <ALIUtils.h>
Public Member Functions | |
ALIUtils () | |
~ALIUtils () | |
Static Public Member Functions | |
static double | addPii (double val) |
static ALIdouble | AngleSigmaDimensionFactor () |
static ALIdouble | AngleValueDimensionFactor () |
static double | approxTo0 (double val) |
static ALIdouble | CalculateAngleDimensionFactorFromInt (ALIint ad) |
static ALIdouble | CalculateAngleDimensionFactorFromString (ALIstring dimstr) |
static ALIdouble | CalculateLengthDimensionFactorFromInt (ALIint ad) |
static ALIdouble | CalculateLengthDimensionFactorFromString (ALIstring dimstr) |
static std::string | changeName (const std::string &oldName, const std::string &subsstr1, const std::string &subsstr2) |
static int | checkMatrixEquations (double angleX, double angleY, double angleZ, CLHEP::HepRotation *rot) |
static double | diff2pi (double ang1, double ang2) |
static void | dump3v (const CLHEP::Hep3Vector &vec, const std::string &msg) |
static void | dumpDimensions (std::ofstream &fout) |
static void | dumprm (const CLHEP::HepRotation &rm, const std::string &msg, std::ostream &out=std::cout) |
static void | dumpVS (const std::vector< ALIstring > &wl, const std::string &msg, std::ostream &outs=std::cout) |
dumps a vector of strings with a message to outs More... | |
static bool | eq2ang (double ang1, double ang2) |
static bool | getBool (const ALIstring &str) |
Convert a bool to an integer, checking that it is really a bool. More... | |
static ALIdouble | getDimensionValue (const ALIstring &dim, const ALIstring &dimType) |
static ALIbool | getFirstTime () |
static double | getFloat (const ALIstring &str) |
Convert a string to an float, checking that it is really a number. More... | |
static int | getInt (const ALIstring &str) |
Convert a string to an integer, checking that it is really an integer. More... | |
static ALIdouble | getMaximumDeviationDerivative () |
static std::vector< double > | getRotationAnglesFromMatrix (CLHEP::HepRotation &rmLocal, double origAngleX, double origAngleY, double origAngleZ) |
static int | IsNumber (const ALIstring &str) |
static ALIdouble | LengthSigmaDimensionFactor () |
static ALIdouble | LengthValueDimensionFactor () |
static ALIdouble | OutputAngleSigmaDimensionFactor () |
static ALIdouble | OutputAngleValueDimensionFactor () |
static ALIdouble | OutputLengthSigmaDimensionFactor () |
static ALIdouble | OutputLengthValueDimensionFactor () |
static void | set_time_now (time_t now) |
static void | SetAngleDimensionFactors () |
static void | setDebugVerbosity (ALIint val) |
static void | setFirstTime (ALIbool val) |
static void | SetLengthDimensionFactors () |
static void | setMaximumDeviationDerivative (ALIdouble val) |
static void | SetOutputAngleDimensionFactors () |
static void | SetOutputLengthDimensionFactors () |
static void | setReportVerbosity (ALIint val) |
static ALIstring | subQuotes (const ALIstring &str) |
static time_t | time_now () |
static ALIdouble | val0 (ALIdouble val) |
Static Public Attributes | |
static ALIint | debug = -1 |
static ALIdouble | deg = 0.017453293 |
static ALIint | report = 1 |
Static Private Attributes | |
static ALIdouble | _AngleSigmaDimensionFactor = 1. |
static ALIdouble | _AngleValueDimensionFactor = 1. |
static ALIdouble | _LengthSigmaDimensionFactor = 1. |
static ALIdouble | _LengthValueDimensionFactor = 1. |
static ALIdouble | _OutputAngleSigmaDimensionFactor = 1. |
static ALIdouble | _OutputAngleValueDimensionFactor = 1. |
static ALIdouble | _OutputLengthSigmaDimensionFactor = 1. |
static ALIdouble | _OutputLengthValueDimensionFactor = 1. |
static time_t | _time_now |
static ALIbool | firstTime = false |
static ALIdouble | maximum_deviation_derivative = 1.E-6 |
Definition at line 23 of file ALIUtils.h.
|
inline |
Definition at line 26 of file ALIUtils.h.
|
inline |
Definition at line 27 of file ALIUtils.h.
|
static |
Definition at line 787 of file ALIUtils.cc.
|
inlinestatic |
Definition at line 77 of file ALIUtils.h.
References _AngleSigmaDimensionFactor.
Referenced by EntryAngle::SigmaDimensionFactor().
|
inlinestatic |
Definition at line 75 of file ALIUtils.h.
References _AngleValueDimensionFactor.
Referenced by EntryMgr::readEntryFromReportOut(), and EntryAngle::ValueDimensionFactor().
|
static |
Definition at line 778 of file ALIUtils.cc.
Definition at line 298 of file ALIUtils.cc.
Definition at line 237 of file ALIUtils.cc.
Referenced by FittedEntriesReader::FittedEntriesReader().
Definition at line 266 of file ALIUtils.cc.
Definition at line 196 of file ALIUtils.cc.
Referenced by FittedEntriesReader::FittedEntriesReader().
|
static |
Definition at line 573 of file ALIUtils.cc.
|
static |
Definition at line 799 of file ALIUtils.cc.
|
static |
Definition at line 748 of file ALIUtils.cc.
|
static |
Definition at line 61 of file ALIUtils.cc.
Referenced by ALIPlane::ALIPlane(), OptOPinhole::defaultBehaviour(), OpticalObjectMgr::dumpOptOs(), OptOTiltmeter::makeMeasurement(), OptODistancemeter3dim::makeMeasurement(), and OptODistancemeter::makeMeasurement().
|
static |
Definition at line 337 of file ALIUtils.cc.
|
static |
Definition at line 77 of file ALIUtils.cc.
Referenced by OptOTiltmeter::makeMeasurement().
|
static |
dumps a vector of strings with a message to outs
Definition at line 501 of file ALIUtils.cc.
Referenced by EntryData::fill(), DeviationSensor2D::fillData(), FittedEntriesReader::FittedEntriesReader(), ErrorCorrelationMgr::readFromReportFile(), CocoaDaqReaderText::ReadNextEvent(), MeasurementTiltmeter::setConversionFactor(), MeasurementSensor2D::setConversionFactor(), and MeasurementCOPS::setConversionFactor().
|
static |
Definition at line 758 of file ALIUtils.cc.
|
static |
Convert a bool to an integer, checking that it is really a bool.
Definition at line 453 of file ALIUtils.cc.
Definition at line 515 of file ALIUtils.cc.
Referenced by EntryMgr::readEntryFromReportOut().
|
inlinestatic |
Definition at line 100 of file ALIUtils.h.
References firstTime.
Referenced by MeasurementSensor2D::calculateSimulatedValue(), MeasurementCOPS::calculateSimulatedValue(), and MeasurementDiffEntry::calculateSimulatedValue().
|
static |
Convert a string to an float, checking that it is really a number.
Definition at line 404 of file ALIUtils.cc.
Referenced by EntryData::fill(), DeviationSensor2D::fillData(), FittedEntriesReader::readFittedEntriesFromFile(), and ErrorCorrelationMgr::readFromReportFile().
|
static |
Convert a string to an integer, checking that it is really an integer.
Definition at line 417 of file ALIUtils.cc.
Referenced by ErrorCorrelationMgr::readFromReportFile().
|
inlinestatic |
Definition at line 106 of file ALIUtils.h.
References maximum_deviation_derivative.
|
static |
Definition at line 591 of file ALIUtils.cc.
|
static |
Definition at line 34 of file ALIUtils.cc.
Referenced by ParameterMgr::getVal(), MeasurementTiltmeter::setConversionFactor(), MeasurementSensor2D::setConversionFactor(), and MeasurementCOPS::setConversionFactor().
|
inlinestatic |
Definition at line 73 of file ALIUtils.h.
References _LengthSigmaDimensionFactor.
Referenced by EntryLength::SigmaDimensionFactor().
|
inlinestatic |
Definition at line 71 of file ALIUtils.h.
References _LengthValueDimensionFactor.
Referenced by EntryMgr::readEntryFromReportOut(), and EntryLength::ValueDimensionFactor().
|
inlinestatic |
Definition at line 85 of file ALIUtils.h.
References _OutputAngleSigmaDimensionFactor.
Referenced by EntryAngle::OutputSigmaDimensionFactor().
|
inlinestatic |
Definition at line 83 of file ALIUtils.h.
References _OutputAngleValueDimensionFactor.
Referenced by EntryAngle::OutputValueDimensionFactor().
|
inlinestatic |
Definition at line 81 of file ALIUtils.h.
References _OutputLengthSigmaDimensionFactor.
Referenced by EntryLength::OutputSigmaDimensionFactor().
|
inlinestatic |
Definition at line 79 of file ALIUtils.h.
References _OutputLengthValueDimensionFactor.
Referenced by EntryLength::OutputValueDimensionFactor().
|
inlinestatic |
|
static |
Definition at line 116 of file ALIUtils.cc.
|
inlinestatic |
Definition at line 41 of file ALIUtils.h.
References debug.
|
inlinestatic |
|
static |
Definition at line 91 of file ALIUtils.cc.
|
inlinestatic |
Definition at line 108 of file ALIUtils.h.
References maximum_deviation_derivative.
|
static |
Definition at line 169 of file ALIUtils.cc.
|
static |
Definition at line 141 of file ALIUtils.cc.
|
inlinestatic |
Definition at line 38 of file ALIUtils.h.
References report.
Definition at line 472 of file ALIUtils.cc.
|
inlinestatic |
Definition at line 44 of file ALIUtils.h.
References _time_now.
Definition at line 88 of file ALIUtils.h.
|
staticprivate |
Definition at line 123 of file ALIUtils.h.
Referenced by AngleSigmaDimensionFactor().
|
staticprivate |
Definition at line 122 of file ALIUtils.h.
Referenced by AngleValueDimensionFactor().
|
staticprivate |
Definition at line 121 of file ALIUtils.h.
Referenced by LengthSigmaDimensionFactor().
|
staticprivate |
Definition at line 120 of file ALIUtils.h.
Referenced by LengthValueDimensionFactor().
|
staticprivate |
Definition at line 127 of file ALIUtils.h.
Referenced by OutputAngleSigmaDimensionFactor().
|
staticprivate |
Definition at line 126 of file ALIUtils.h.
Referenced by OutputAngleValueDimensionFactor().
|
staticprivate |
Definition at line 125 of file ALIUtils.h.
Referenced by OutputLengthSigmaDimensionFactor().
|
staticprivate |
Definition at line 124 of file ALIUtils.h.
Referenced by OutputLengthValueDimensionFactor().
|
staticprivate |
Definition at line 128 of file ALIUtils.h.
Referenced by set_time_now(), and time_now().
|
static |
Definition at line 35 of file ALIUtils.h.
Referenced by ParameterMgr::addParameter(), ParameterMgr::addRandomFlatParameter(), ParameterMgr::addRandomGaussParameter(), ALIPlane::ALIPlane(), MeasurementSensor2D::calculateSimulatedValue(), MeasurementTiltmeter::calculateSimulatedValue(), MeasurementCOPS::calculateSimulatedValue(), MeasurementDiffEntry::calculateSimulatedValue(), CocoaDaqReaderText::CocoaDaqReaderText(), MeasurementSensor2D::correctValueAndSigma(), MeasurementCOPS::correctValueAndSigma(), MeasurementTiltmeter::correctValueAndSigma(), OptOLaser::defaultBehaviour(), OptOPinhole::defaultBehaviour(), OptOXLaser::defaultBehaviour(), OptOSource::defaultBehaviour(), EntryLengthAffCentre::displace(), EntryLengthAffCentre::displaceOriginal(), EntryLengthAffCentre::displaceOriginalOriginal(), EntryData::fill(), EntryMgr::findEntryByLongName(), FittedEntry::FittedEntry(), OptOTiltmeter::makeMeasurement(), OptODistancemeter::makeMeasurement(), OptODistancemeter3dim::makeMeasurement(), EntryMgr::readEntryFromReportOut(), FittedEntriesReader::readFittedEntriesFromFile(), ErrorCorrelationMgr::readFromReportFile(), CocoaDaqReaderText::ReadNextEvent(), setDebugVerbosity(), FittedEntriesReader::substitutePointBySlash(), and EntryLengthAffCentre::valueDisplaced().
|
static |
Definition at line 36 of file ALIUtils.h.
|
staticprivate |
Definition at line 130 of file ALIUtils.h.
Referenced by getFirstTime(), and setFirstTime().
|
staticprivate |
Definition at line 132 of file ALIUtils.h.
Referenced by getMaximumDeviationDerivative(), and setMaximumDeviationDerivative().
|
static |
Definition at line 34 of file ALIUtils.h.
Referenced by runall.testit::run(), and setReportVerbosity().