14 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h" 15 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h" 17 #include "CLHEP/Units/GlobalSystemOfUnits.h" 38 CLHEP::Hep3Vector ZAxis(0.,0.,1.);
39 CLHEP::HepRotation rmt =
rmGlob();
45 CLHEP::Hep3Vector ZAxisdt(0.,0.,1.);
46 const CLHEP::HepRotation& rmtdt = opto_prev->
rmGlob();
47 ZAxisdt = rmtdt * ZAxisdt;
57 CLHEP::Hep3Vector inters = dm_line.
intersect( dt_plane );
59 dm_centre = inters - dm_centre;
76 <<
" (mm) " << (
this)->
name() << std::endl;
78 <<
" (mm) " << (
this)->
name() << std::endl;
87 ALIVRMLMgr& vrmlmgr = ALIVRMLMgr::getInstance();
88 ALIColour*
col =
new ALIColour( 1., 0., 1., 0. );
89 vrmlmgr.AddBox( *
this, .2, .2, 1., col);
90 vrmlmgr.SendReferenceFrame( *
this, 1.2);
91 vrmlmgr.SendName( *
this, 0.1 );
98 ALIColour*
col =
new ALIColour( 1., 0., 0.5, 0. );
99 std::vector<ALIdouble> spar;
102 CLHEP::HepRotation
rm;
103 rm.rotateX( 90.*deg);
104 IgCocoaFileMgr::getInstance().addSolid( *
this,
"CYLINDER", spar, col, CLHEP::Hep3Vector(), rm);
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