14 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h" 15 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h" 17 #include "CLHEP/Units/GlobalSystemOfUnits.h" 32 CLHEP::Hep3Vector ZAxis(0., 0., 1.);
33 CLHEP::HepRotation rmt =
rmGlob();
39 CLHEP::Hep3Vector ZAxisdt(0., 0., 1.);
40 const CLHEP::HepRotation& rmtdt = opto_prev->
rmGlob();
41 ZAxisdt = rmtdt * ZAxisdt;
51 CLHEP::Hep3Vector inters = dm_line.
intersect(dt_plane);
53 dm_centre = inters - dm_centre;
70 std::cout <<
"REAL value: D: " << meas.
value()[0] * 1000. <<
" (mm) " << (
this)->
name() << std::endl;
77 ALIVRMLMgr& vrmlmgr = ALIVRMLMgr::getInstance();
78 ALIColour*
col =
new ALIColour(1., 0., 1., 0.);
79 vrmlmgr.AddBox(*
this, .2, .2, 1., col);
80 vrmlmgr.SendReferenceFrame(*
this, 1.2);
81 vrmlmgr.SendName(*
this, 0.1);
86 ALIColour*
col =
new ALIColour(1., 0., 0.5, 0.);
87 std::vector<ALIdouble> spar;
90 CLHEP::HepRotation
rm;
91 rm.rotateX(90. * deg);
92 IgCocoaFileMgr::getInstance().addSolid(*
this,
"CYLINDER", spar, col, CLHEP::Hep3Vector(), rm);
103 "Tubs", go * 0. * cm /
m, go * 2. * cm /
m, go * 5. * cm /
m);
CocoaSolidShape * theSolidShape
CLHEP::Hep3Vector intersect(const ALILine &l2, bool notParallel=false)
void constructSolidShape() override
static GlobalOptionMgr * getInstance()
const CLHEP::HepRotation & rmGlob() const
int getGlobalOptionValue(const ALIstring &sstr, ALIdouble &val)
--— Search a string in theGlobalOptions and return 1 if found
void setValueSimulated(ALIint coor, ALIdouble value)
void makeMeasurement(LightRay &lightray, Measurement &meas) override
static void dump3v(const CLHEP::Hep3Vector &vec, const std::string &msg)
const OpticalObject * getPreviousOptO(const OpticalObject *Popto) const
void defaultBehaviour(LightRay &lightray, Measurement &meas) override
virtual void fillIguana()
const CLHEP::Hep3Vector & centreGlob() const
const ALIdouble * value() const
const ALIdouble valueSimulated(ALIuint ii) const
const ALIstring & name() const