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;
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);
const CLHEP::Hep3Vector & centreGlob() const
CocoaSolidShape * theSolidShape
const ALIdouble * value() const
const OpticalObject * getPreviousOptO(const OpticalObject *Popto) const
CLHEP::Hep3Vector intersect(const ALILine &l2, bool notParallel=false)
const ALIstring & name() const
void constructSolidShape() override
static GlobalOptionMgr * getInstance()
int getGlobalOptionValue(const ALIstring &sstr, ALIdouble &val)
--— Search a string in theGlobalOptions and return 1 if found
const ALIdouble valueSimulated(ALIuint ii) const
void setValueSimulated(ALIint coor, ALIdouble value)
void makeMeasurement(LightRay &lightray, Measurement &meas) override
const CLHEP::HepRotation & rmGlob() const
static void dump3v(const CLHEP::Hep3Vector &vec, const std::string &msg)
void defaultBehaviour(LightRay &lightray, Measurement &meas) override
virtual void fillIguana()