CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Attributes
ALIUtils Class Reference

#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
 

Detailed Description

Definition at line 23 of file ALIUtils.h.

Constructor & Destructor Documentation

ALIUtils::ALIUtils ( )
inline

Definition at line 26 of file ALIUtils.h.

26 {};
ALIUtils::~ALIUtils ( )
inline

Definition at line 27 of file ALIUtils.h.

27 {};

Member Function Documentation

double ALIUtils::addPii ( double  val)
static

Definition at line 787 of file ALIUtils.cc.

static ALIdouble ALIUtils::AngleSigmaDimensionFactor ( )
inlinestatic

Definition at line 77 of file ALIUtils.h.

References _AngleSigmaDimensionFactor.

Referenced by EntryAngle::SigmaDimensionFactor().

77  {
static ALIdouble _AngleSigmaDimensionFactor
Definition: ALIUtils.h:123
static ALIdouble ALIUtils::AngleValueDimensionFactor ( )
inlinestatic

Definition at line 75 of file ALIUtils.h.

References _AngleValueDimensionFactor.

Referenced by EntryMgr::readEntryFromReportOut(), and EntryAngle::ValueDimensionFactor().

75  {
static ALIdouble _AngleValueDimensionFactor
Definition: ALIUtils.h:122
double ALIUtils::approxTo0 ( double  val)
static

Definition at line 778 of file ALIUtils.cc.

ALIdouble ALIUtils::CalculateAngleDimensionFactorFromInt ( ALIint  ad)
static

Definition at line 298 of file ALIUtils.cc.

ALIdouble ALIUtils::CalculateAngleDimensionFactorFromString ( ALIstring  dimstr)
static

Definition at line 237 of file ALIUtils.cc.

Referenced by FittedEntriesReader::FittedEntriesReader().

ALIdouble ALIUtils::CalculateLengthDimensionFactorFromInt ( ALIint  ad)
static

Definition at line 266 of file ALIUtils.cc.

ALIdouble ALIUtils::CalculateLengthDimensionFactorFromString ( ALIstring  dimstr)
static

Definition at line 196 of file ALIUtils.cc.

Referenced by FittedEntriesReader::FittedEntriesReader().

std::string ALIUtils::changeName ( const std::string &  oldName,
const std::string &  subsstr1,
const std::string &  subsstr2 
)
static

Definition at line 573 of file ALIUtils.cc.

int ALIUtils::checkMatrixEquations ( double  angleX,
double  angleY,
double  angleZ,
CLHEP::HepRotation *  rot 
)
static

Definition at line 799 of file ALIUtils.cc.

double ALIUtils::diff2pi ( double  ang1,
double  ang2 
)
static

Definition at line 748 of file ALIUtils.cc.

void ALIUtils::dump3v ( const CLHEP::Hep3Vector &  vec,
const std::string &  msg 
)
static
void ALIUtils::dumpDimensions ( std::ofstream &  fout)
static

Definition at line 337 of file ALIUtils.cc.

void ALIUtils::dumprm ( const CLHEP::HepRotation &  rm,
const std::string &  msg,
std::ostream &  out = std::cout 
)
static

Definition at line 77 of file ALIUtils.cc.

Referenced by OptOTiltmeter::makeMeasurement().

void ALIUtils::dumpVS ( const std::vector< ALIstring > &  wl,
const std::string &  msg,
std::ostream &  outs = std::cout 
)
static
bool ALIUtils::eq2ang ( double  ang1,
double  ang2 
)
static

Definition at line 758 of file ALIUtils.cc.

bool ALIUtils::getBool ( const ALIstring str)
static

Convert a bool to an integer, checking that it is really a bool.

Definition at line 453 of file ALIUtils.cc.

ALIdouble ALIUtils::getDimensionValue ( const ALIstring dim,
const ALIstring dimType 
)
static

Definition at line 515 of file ALIUtils.cc.

Referenced by EntryMgr::readEntryFromReportOut().

static ALIbool ALIUtils::getFirstTime ( )
inlinestatic

Definition at line 100 of file ALIUtils.h.

References firstTime.

Referenced by MeasurementSensor2D::calculateSimulatedValue(), MeasurementCOPS::calculateSimulatedValue(), and MeasurementDiffEntry::calculateSimulatedValue().

100  {
101  return firstTime;
102  }
static ALIbool firstTime
Definition: ALIUtils.h:130
double ALIUtils::getFloat ( const ALIstring str)
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().

int ALIUtils::getInt ( const ALIstring str)
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().

static ALIdouble ALIUtils::getMaximumDeviationDerivative ( )
inlinestatic

Definition at line 106 of file ALIUtils.h.

References maximum_deviation_derivative.

106  {
static ALIdouble maximum_deviation_derivative
Definition: ALIUtils.h:132
std::vector< double > ALIUtils::getRotationAnglesFromMatrix ( CLHEP::HepRotation &  rmLocal,
double  origAngleX,
double  origAngleY,
double  origAngleZ 
)
static

Definition at line 591 of file ALIUtils.cc.

int ALIUtils::IsNumber ( const ALIstring str)
static
static ALIdouble ALIUtils::LengthSigmaDimensionFactor ( )
inlinestatic

Definition at line 73 of file ALIUtils.h.

References _LengthSigmaDimensionFactor.

Referenced by EntryLength::SigmaDimensionFactor().

73  {
static ALIdouble _LengthSigmaDimensionFactor
Definition: ALIUtils.h:121
static ALIdouble ALIUtils::LengthValueDimensionFactor ( )
inlinestatic

Definition at line 71 of file ALIUtils.h.

References _LengthValueDimensionFactor.

Referenced by EntryMgr::readEntryFromReportOut(), and EntryLength::ValueDimensionFactor().

71  {
static ALIdouble _LengthValueDimensionFactor
Definition: ALIUtils.h:120
static ALIdouble ALIUtils::OutputAngleSigmaDimensionFactor ( )
inlinestatic

Definition at line 85 of file ALIUtils.h.

References _OutputAngleSigmaDimensionFactor.

Referenced by EntryAngle::OutputSigmaDimensionFactor().

85  {
static ALIdouble _OutputAngleSigmaDimensionFactor
Definition: ALIUtils.h:127
static ALIdouble ALIUtils::OutputAngleValueDimensionFactor ( )
inlinestatic

Definition at line 83 of file ALIUtils.h.

References _OutputAngleValueDimensionFactor.

Referenced by EntryAngle::OutputValueDimensionFactor().

83  {
static ALIdouble _OutputAngleValueDimensionFactor
Definition: ALIUtils.h:126
static ALIdouble ALIUtils::OutputLengthSigmaDimensionFactor ( )
inlinestatic

Definition at line 81 of file ALIUtils.h.

References _OutputLengthSigmaDimensionFactor.

Referenced by EntryLength::OutputSigmaDimensionFactor().

81  {
static ALIdouble _OutputLengthSigmaDimensionFactor
Definition: ALIUtils.h:125
static ALIdouble ALIUtils::OutputLengthValueDimensionFactor ( )
inlinestatic

Definition at line 79 of file ALIUtils.h.

References _OutputLengthValueDimensionFactor.

Referenced by EntryLength::OutputValueDimensionFactor().

79  {
static ALIdouble _OutputLengthValueDimensionFactor
Definition: ALIUtils.h:124
static void ALIUtils::set_time_now ( time_t  now)
inlinestatic

Definition at line 47 of file ALIUtils.h.

References _time_now, and fileCollector::now.

47  {
48  _time_now = now;
49  }
static time_t _time_now
Definition: ALIUtils.h:128
void ALIUtils::SetAngleDimensionFactors ( )
static

Definition at line 116 of file ALIUtils.cc.

static void ALIUtils::setDebugVerbosity ( ALIint  val)
inlinestatic

Definition at line 41 of file ALIUtils.h.

References debug.

41  {
42  debug = val;
43  }
static ALIint debug
Definition: ALIUtils.h:35
static void ALIUtils::setFirstTime ( ALIbool  val)
inlinestatic

Definition at line 103 of file ALIUtils.h.

References firstTime.

103  {
104  firstTime = val;
105  }
static ALIbool firstTime
Definition: ALIUtils.h:130
void ALIUtils::SetLengthDimensionFactors ( )
static

Definition at line 91 of file ALIUtils.cc.

static void ALIUtils::setMaximumDeviationDerivative ( ALIdouble  val)
inlinestatic

Definition at line 108 of file ALIUtils.h.

References maximum_deviation_derivative.

108  {
static ALIdouble maximum_deviation_derivative
Definition: ALIUtils.h:132
void ALIUtils::SetOutputAngleDimensionFactors ( )
static

Definition at line 169 of file ALIUtils.cc.

void ALIUtils::SetOutputLengthDimensionFactors ( )
static

Definition at line 141 of file ALIUtils.cc.

static void ALIUtils::setReportVerbosity ( ALIint  val)
inlinestatic

Definition at line 38 of file ALIUtils.h.

References report.

38  {
39  report = val;
40  }
static ALIint report
Definition: ALIUtils.h:34
ALIstring ALIUtils::subQuotes ( const ALIstring str)
static

Definition at line 472 of file ALIUtils.cc.

static time_t ALIUtils::time_now ( )
inlinestatic

Definition at line 44 of file ALIUtils.h.

References _time_now.

44  {
45  return _time_now;
46  }
static time_t _time_now
Definition: ALIUtils.h:128
static ALIdouble ALIUtils::val0 ( ALIdouble  val)
inlinestatic

Definition at line 88 of file ALIUtils.h.

88  {
89  //-std::cout << val << " val " << ( (val <= 1.E-9) ? 0. : val) << std::endl;
90 // return (abs(val) <= 1.E-9) ? 0. : val; }
91  if( fabs(val) <= 1.E-9) { return 0.;
92  }else { return val; }; }

Member Data Documentation

ALIdouble ALIUtils::_AngleSigmaDimensionFactor = 1.
staticprivate

Definition at line 123 of file ALIUtils.h.

Referenced by AngleSigmaDimensionFactor().

ALIdouble ALIUtils::_AngleValueDimensionFactor = 1.
staticprivate

Definition at line 122 of file ALIUtils.h.

Referenced by AngleValueDimensionFactor().

ALIdouble ALIUtils::_LengthSigmaDimensionFactor = 1.
staticprivate

Definition at line 121 of file ALIUtils.h.

Referenced by LengthSigmaDimensionFactor().

ALIdouble ALIUtils::_LengthValueDimensionFactor = 1.
staticprivate

Definition at line 120 of file ALIUtils.h.

Referenced by LengthValueDimensionFactor().

ALIdouble ALIUtils::_OutputAngleSigmaDimensionFactor = 1.
staticprivate

Definition at line 127 of file ALIUtils.h.

Referenced by OutputAngleSigmaDimensionFactor().

ALIdouble ALIUtils::_OutputAngleValueDimensionFactor = 1.
staticprivate

Definition at line 126 of file ALIUtils.h.

Referenced by OutputAngleValueDimensionFactor().

ALIdouble ALIUtils::_OutputLengthSigmaDimensionFactor = 1.
staticprivate

Definition at line 125 of file ALIUtils.h.

Referenced by OutputLengthSigmaDimensionFactor().

ALIdouble ALIUtils::_OutputLengthValueDimensionFactor = 1.
staticprivate

Definition at line 124 of file ALIUtils.h.

Referenced by OutputLengthValueDimensionFactor().

time_t ALIUtils::_time_now
staticprivate

Definition at line 128 of file ALIUtils.h.

Referenced by set_time_now(), and time_now().

ALIint ALIUtils::debug = -1
static
ALIdouble ALIUtils::deg = 0.017453293
static

Definition at line 36 of file ALIUtils.h.

ALIbool ALIUtils::firstTime = false
staticprivate

Definition at line 130 of file ALIUtils.h.

Referenced by getFirstTime(), and setFirstTime().

ALIdouble ALIUtils::maximum_deviation_derivative = 1.E-6
staticprivate

Definition at line 132 of file ALIUtils.h.

Referenced by getMaximumDeviationDerivative(), and setMaximumDeviationDerivative().

ALIint ALIUtils::report = 1
static

Definition at line 34 of file ALIUtils.h.

Referenced by runall.testit::run(), and setReportVerbosity().