#include <OptOSource.h>
Public Member Functions | |
void | constructSolidShape () |
virtual void | defaultBehaviour (LightRay &lightray, Measurement &meas) |
OptOSource (OpticalObject *parent, const ALIstring &type, const ALIstring &name, const ALIbool copy_data) | |
OptOSource () | |
~OptOSource () |
Definition at line 18 of file OptOSource.h.
OptOSource::OptOSource | ( | ) |
Definition at line 23 of file OptOSource.cc.
References OpticalObject::setRmGlobal(), and OpticalObject::setRmGlobalOriginal().
{ setRmGlobalOriginal( CLHEP::HepRotation() ); setRmGlobal( CLHEP::HepRotation() ); }
OptOSource::OptOSource | ( | OpticalObject * | parent, |
const ALIstring & | type, | ||
const ALIstring & | name, | ||
const ALIbool | copy_data | ||
) | [inline] |
Definition at line 24 of file OptOSource.h.
: OpticalObject( parent, type, name, copy_data){ };
OptOSource::~OptOSource | ( | ) | [inline] |
Definition at line 26 of file OptOSource.h.
{ };
void OptOSource::constructSolidShape | ( | ) | [virtual] |
Reimplemented from OpticalObject.
Definition at line 65 of file OptOSource.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*2.*cm/m ); //COCOA internal units are meters }
void OptOSource::defaultBehaviour | ( | LightRay & | lightray, |
Measurement & | meas | ||
) | [virtual] |
Reimplemented from OpticalObject.
Definition at line 32 of file OptOSource.cc.
References gather_cfg::cout, ALIUtils::debug, and LightRay::startLightRay().
{ if(ALIUtils::debug >= 3) std::cout << "create laser lightray " << std::endl; lightray.startLightRay( this ); }