#include <OptOLaser.h>
Public Member Functions | |
void | constructSolidShape () |
virtual void | defaultBehaviour (LightRay &lightray, Measurement &meas) |
OptOLaser (OpticalObject *parent, const ALIstring &type, const ALIstring &name, const ALIbool copy_data) | |
OptOLaser () | |
~OptOLaser () |
Definition at line 18 of file OptOLaser.h.
OptOLaser::OptOLaser | ( | ) | [inline] |
Definition at line 23 of file OptOLaser.h.
{ };
OptOLaser::OptOLaser | ( | OpticalObject * | parent, |
const ALIstring & | type, | ||
const ALIstring & | name, | ||
const ALIbool | copy_data | ||
) | [inline] |
Definition at line 24 of file OptOLaser.h.
: OpticalObject( parent, type, name, copy_data){ };
OptOLaser::~OptOLaser | ( | ) | [inline] |
Definition at line 26 of file OptOLaser.h.
{ };
void OptOLaser::constructSolidShape | ( | ) | [virtual] |
Reimplemented from OpticalObject.
Definition at line 59 of file OptOLaser.cc.
References GlobalOptionMgr::getGlobalOptionValue(), GlobalOptionMgr::getInstance(), m, and OpticalObject::theSolidShape.
{ ALIdouble go; GlobalOptionMgr* gomgr = GlobalOptionMgr::getInstance(); gomgr->getGlobalOptionValue("VisScale", go ); theSolidShape = new CocoaSolidShapeTubs( "Tubs", go*0.*cm/m, go*1.*cm/m, go*5.*cm/m ); //COCOA internal units are meters }
void OptOLaser::defaultBehaviour | ( | LightRay & | lightray, |
Measurement & | meas | ||
) | [virtual] |
Reimplemented from OpticalObject.
Definition at line 23 of file OptOLaser.cc.
References gather_cfg::cout, ALIUtils::debug, and LightRay::startLightRay().
{ if(ALIUtils::debug >= 3) std::cout << "create laser lightray " << std::endl; lightray.startLightRay( this ); }