29 if (
name_[namelength] ==
'X') {
31 }
else if (
name_[namelength] ==
'Y') {
33 }
else if (
name_[namelength] ==
'Z') {
49 if (
name_[namelength] ==
'X') {
52 }
else if (
name_[namelength] ==
'Y') {
55 }
else if (
name_[namelength] ==
'Z') {
64 std::cout <<
this <<
"ENtryAnglesAffAngle displaceOriginalOriginal" <<
name_ << std::endl;
65 if (
name_[namelength] ==
'X') {
68 }
else if (
name_[namelength] ==
'Y') {
71 }
else if (
name_[namelength] ==
'Z') {
90 std::vector<double> localrot =
95 std::cout <<
" localrot " << localrot[0] <<
" " << localrot[1] <<
" " << localrot[2] << std::endl;
98 if (
name() ==
"angles_X") {
100 }
else if (
name() ==
"angles_Y") {
102 }
else if (
name() ==
"angles_Z") {
140 const CLHEP::Hep3Vector& _axisOrig,
141 const std::vector<double>& localrot,
142 const std::vector<double>& localrotorig)
const {
143 CLHEP::Hep3Vector axis = _axis;
144 CLHEP::Hep3Vector axisOrig = _axisOrig;
146 if (
name() ==
"angles_X") {
148 }
else if (
name() ==
"angles_Y") {
150 }
else if (
name() ==
"angles_Z") {
155 axis.rotateX(localrot[0]);
156 axisOrig.rotateX(localrotorig[0]);
159 axis.rotateY(localrot[1]);
160 axisOrig.rotateY(localrotorig[1]);
163 axis.rotateZ(localrot[2]);
164 axisOrig.rotateZ(localrotorig[2]);
const ALIstring & name() const
void displaceRmGlobOriginalOriginal(const OpticalObject *opto1stRotated, const XYZcoor coor, const ALIdouble disp)
std::vector< double > getRotationAnglesFromMatrix(CLHEP::HepRotation &rmLocal, const std::vector< Entry *> &entries) const
static void dumprm(const CLHEP::HepRotation &rm, const std::string &msg, std::ostream &out=std::cout)
void setName(const ALIstring &name)
void displace(ALIdouble disp) override
const ALIstring & name() const
static GlobalOptionMgr * getInstance()
virtual void FillName(const ALIstring &name)
OpticalObject * OptOCurrent() const
ALIdouble valueDisplaced() const override
void displaceRmGlobAroundGlobal(OpticalObject *opto1stRotated, const XYZcoor coor, const ALIdouble disp)
void displaceRmGlobAroundLocal(OpticalObject *opto1stRotated, const XYZcoor coor, const ALIdouble disp)
void displaceOriginal(ALIdouble disp) override
void displaceRmGlobOriginal(const OpticalObject *opto1stRotated, const XYZcoor coor, const ALIdouble disp)
EntryAngleAffAngles(const ALIstring &type)
const CLHEP::HepRotation & rmGlob() const
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
ALIdouble checkDiff(const CLHEP::Hep3Vector &axis, const CLHEP::Hep3Vector &axisOrig, const std::vector< double > &localrot, const std::vector< double > &localrotorig) const
const OpticalObject * parent() const
const CLHEP::HepRotation & rmGlobOriginal() const
void displaceOriginalOriginal(ALIdouble disp) override