13 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h"
14 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h"
19 using namespace CLHEP;
32 CLHEP::HepRotation rmt = rmGlob();
33 CLHEP::Hep3Vector ZAxisl(0., 0., 1.);
42 CLHEP::Hep3Vector XAxisg(1., 0., 0.);
43 CLHEP::Hep3Vector ZAxisg(0., 0., 1.);
44 CLHEP::Hep3Vector ZAxis_proj = (ZAxisl * XAxisg) * XAxisg + (ZAxisl * ZAxisg) * ZAxisg;
45 ZAxis_proj *= (1. / ZAxis_proj.mag());
48 ALIdouble measvalue = acos(ZAxisl * ZAxis_proj / ZAxisl.mag() / ZAxis_proj.mag());
51 measvalue *= (ZAxisl.y() / fabs(ZAxisl.y()));
57 ALIUtils::dump3v(ZAxis_proj,
" Projection of Local Z axis on global XZ plane ");
59 << (
this)->
name() << std::endl;
60 std::cout <<
"REAL value: TA: " << std::setprecision(8) << 1000 * meas.
value()[0] <<
" (mrad) " << (
this)->
name()
108 ALIVRMLMgr& vrmlmgr = ALIVRMLMgr::getInstance();
109 ALIColour*
col =
new ALIColour(1., 1., 0., 0.);
110 vrmlmgr.AddBox(*
this, .2, .2, 1.,
col);
111 vrmlmgr.SendReferenceFrame(*
this, 0.6);
112 vrmlmgr.SendName(*
this, 0.01);
117 ALIColour*
col =
new ALIColour(1., 0., 0.9, 0.);
118 std::vector<ALIdouble> spar;
122 IgCocoaFileMgr::getInstance().addSolid(*
this,
"BOX", spar,
col);
133 "Box", go * 2. * cm /
m, go * 2. * cm /
m, go * 5. * cm /
m);