36 if (
name_[namelength] ==
'X' ) {
38 }
else if (
name_[namelength] ==
'Y' ) {
40 }
else if (
name_[namelength] ==
'Z' ) {
59 if (
name_[namelength] ==
'X' ) {
62 }
else if (
name_[namelength] ==
'Y' ) {
65 }
else if (
name_[namelength] ==
'Z' ) {
76 if (
name_[namelength] ==
'X' ) {
79 }
else if (
name_[namelength] ==
'Y' ) {
82 }
else if (
name_[namelength] ==
'Z' ) {
109 std::cout <<
" localrot " << localrot[0] <<
" " << localrot[1] <<
" " << localrot[2] << std::endl;
112 if(
name() ==
"angles_X" ) {
114 }
else if(
name() ==
"angles_Y" ) {
116 }
else if(
name() ==
"angles_Z" ) {
156 CLHEP::Hep3Vector axis = _axis;
157 CLHEP::Hep3Vector axisOrig = _axisOrig;
159 if(
name() ==
"angles_X" ) {
161 }
else if(
name() ==
"angles_Y" ) {
163 }
else if(
name() ==
"angles_Z" ) {
168 axis.rotateX( localrot[0] );
169 axisOrig.rotateX( localrotorig[0] );
171 axis.rotateY( localrot[1] );
172 axisOrig.rotateY( localrotorig[1] );
174 axis.rotateZ( localrot[2] );
175 axisOrig.rotateZ( localrotorig[2] );
void displaceRmGlobOriginalOriginal(const OpticalObject *opto1stRotated, const XYZcoor coor, const ALIdouble disp)
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
static GlobalOptionMgr * getInstance()
virtual void FillName(const ALIstring &name)
const CLHEP::HepRotation & rmGlob() const
void displaceRmGlobAroundGlobal(OpticalObject *opto1stRotated, const XYZcoor coor, const ALIdouble disp)
ALIdouble valueDisplaced() const override
void displaceRmGlobAroundLocal(OpticalObject *opto1stRotated, const XYZcoor coor, const ALIdouble disp)
void displaceOriginal(ALIdouble disp) override
const OpticalObject * parent() const
void displaceRmGlobOriginal(const OpticalObject *opto1stRotated, const XYZcoor coor, const ALIdouble disp)
EntryAngleAffAngles(const ALIstring &type)
const ALIstring & name() const
const CLHEP::HepRotation & rmGlobOriginal() const
std::vector< double > getRotationAnglesFromMatrix(CLHEP::HepRotation &rmLocal, const std::vector< Entry * > &entries) const
const ALIstring & name() const
OpticalObject * OptOCurrent() 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
void displaceOriginalOriginal(ALIdouble disp) override