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" ) {
157 if(
name() ==
"angles_X" ) {
159 }
else if(
name() ==
"angles_Y" ) {
161 }
else if(
name() ==
"angles_Z" ) {
166 axis.rotateX( localrot[0] );
167 axisOrig.rotateX( localrotorig[0] );
169 axis.rotateY( localrot[1] );
170 axisOrig.rotateY( localrotorig[1] );
172 axis.rotateZ( localrot[2] );
173 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)
virtual void displaceOriginal(ALIdouble disp)
void setName(const ALIstring &name)
static GlobalOptionMgr * getInstance()
virtual void FillName(const ALIstring &name)
const CLHEP::HepRotation & rmGlob() const
void displaceRmGlobAroundGlobal(OpticalObject *opto1stRotated, const XYZcoor coor, const ALIdouble disp)
virtual void displace(ALIdouble disp)
void displaceRmGlobAroundLocal(OpticalObject *opto1stRotated, const XYZcoor coor, const ALIdouble disp)
const OpticalObject * parent() const
virtual void displaceOriginalOriginal(ALIdouble disp)
std::vector< double > getRotationAnglesFromMatrix(CLHEP::HepRotation &rmLocal, std::vector< Entry * > entries) 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
ALIdouble checkDiff(CLHEP::Hep3Vector axis, CLHEP::Hep3Vector axisOrig, std::vector< double > localrot, std::vector< double > localrotorig) const
const ALIstring & name() const
OpticalObject * OptOCurrent() const
virtual ALIdouble valueDisplaced() const
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()