#include <ALIRmDataFromFile.h>
Public Member Functions | |
ALIRmDataFromFile () | |
ALIdouble | angleX () const |
ALIdouble | angleY () const |
ALIdouble | angleZ () const |
void | constructRm () |
ALIstring | dataFilled () const |
CLHEP::HepRotation | rm () const |
ALIbool | setAngle (const ALIstring &coord, const ALIdouble val) |
ALIbool | setAngleX (const ALIdouble val) |
ALIbool | setAngleY (const ALIdouble val) |
ALIbool | setAngleZ (const ALIdouble val) |
~ALIRmDataFromFile () | |
Private Attributes | |
ALIdouble | theAngleX |
ALIdouble | theAngleY |
ALIdouble | theAngleZ |
ALIstring | theDataFilled |
CLHEP::HepRotation | theRm |
Definition at line 15 of file ALIRmDataFromFile.h.
ALIRmDataFromFile::ALIRmDataFromFile | ( | ) |
Definition at line 12 of file ALIRmDataFromFile.cc.
{ }
ALIRmDataFromFile::~ALIRmDataFromFile | ( | ) | [inline] |
Definition at line 20 of file ALIRmDataFromFile.h.
{};
ALIdouble ALIRmDataFromFile::angleX | ( | ) | const [inline] |
ALIdouble ALIRmDataFromFile::angleY | ( | ) | const [inline] |
ALIdouble ALIRmDataFromFile::angleZ | ( | ) | const [inline] |
void ALIRmDataFromFile::constructRm | ( | ) |
Definition at line 57 of file ALIRmDataFromFile.cc.
References dtNoiseDBValidation_cfg::cerr, theAngleX, theAngleY, theAngleZ, theDataFilled, and theRm.
Referenced by FittedEntriesReader::readFittedEntriesFromFile().
{ if( theDataFilled.find("X") == std::string::npos || theDataFilled.find("Y") == std::string::npos || theDataFilled.find("Z") == std::string::npos ){ std::cerr << "!!! ALIRmDataFromFile::constructRm. FATAL ERROR: building rm while one angle is missing: " << theDataFilled << std::endl; } else { theRm = CLHEP::HepRotation(); theRm.rotateX( theAngleX ); theRm.rotateY( theAngleY ); theRm.rotateZ( theAngleZ ); } }
ALIstring ALIRmDataFromFile::dataFilled | ( | ) | const [inline] |
Definition at line 33 of file ALIRmDataFromFile.h.
References theDataFilled.
Referenced by FittedEntriesReader::readFittedEntriesFromFile().
{ return theDataFilled; }
CLHEP::HepRotation ALIRmDataFromFile::rm | ( | ) | const [inline] |
Definition at line 32 of file ALIRmDataFromFile.h.
References theRm.
Referenced by FittedEntriesReader::readFittedEntriesFromFile().
{ return theRm; }
Definition at line 17 of file ALIRmDataFromFile.cc.
References dtNoiseDBValidation_cfg::cerr, exception, setAngleX(), setAngleY(), and setAngleZ().
Referenced by FittedEntriesReader::readFittedEntriesFromFile().
{ if( coord == "X" ) { return setAngleX( val ); }else if( coord == "Y" ) { return setAngleY( val ); }else if( coord == "Z" ) { return setAngleZ( val ); }else { std::cerr << "!!! FATAL ERROR ALIRmDataFromFile::setAngle. Coordinate must be X, Y or Z, it ii " << coord << std::endl; std::exception(); } return false; }
Definition at line 33 of file ALIRmDataFromFile.cc.
References theAngleX, and theDataFilled.
Referenced by setAngle().
{ theAngleX = val; theDataFilled += "X"; return 1; }
Definition at line 41 of file ALIRmDataFromFile.cc.
References theAngleY, and theDataFilled.
Referenced by setAngle().
{ theAngleY = val; theDataFilled += "Y"; return 1; }
Definition at line 49 of file ALIRmDataFromFile.cc.
References theAngleZ, and theDataFilled.
Referenced by setAngle().
{ theAngleZ = val; theDataFilled += "Z"; return 1; }
ALIdouble ALIRmDataFromFile::theAngleX [private] |
Definition at line 38 of file ALIRmDataFromFile.h.
Referenced by angleX(), constructRm(), and setAngleX().
ALIdouble ALIRmDataFromFile::theAngleY [private] |
Definition at line 38 of file ALIRmDataFromFile.h.
Referenced by angleY(), constructRm(), and setAngleY().
ALIdouble ALIRmDataFromFile::theAngleZ [private] |
Definition at line 38 of file ALIRmDataFromFile.h.
Referenced by angleZ(), constructRm(), and setAngleZ().
ALIstring ALIRmDataFromFile::theDataFilled [private] |
Definition at line 39 of file ALIRmDataFromFile.h.
Referenced by constructRm(), dataFilled(), setAngleX(), setAngleY(), and setAngleZ().
CLHEP::HepRotation ALIRmDataFromFile::theRm [private] |
Definition at line 37 of file ALIRmDataFromFile.h.
Referenced by constructRm(), and rm().