CMS 3D CMS Logo

OptOSource Class Reference

#include <Alignment/CocoaModel/interface/OptOSource.h>

Inheritance diagram for OptOSource:

OpticalObject

List of all members.

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 ()


Detailed Description

Definition at line 18 of file OptOSource.h.


Constructor & Destructor Documentation

OptOSource::OptOSource (  ) 

Definition at line 23 of file OptOSource.cc.

References OpticalObject::setRmGlobal(), and OpticalObject::setRmGlobalOriginal().

00024 { 
00025   setRmGlobalOriginal( CLHEP::HepRotation() ); 
00026   setRmGlobal( CLHEP::HepRotation() ); 
00027 }

OptOSource::OptOSource ( OpticalObject parent,
const ALIstring type,
const ALIstring name,
const ALIbool  copy_data 
) [inline]

Definition at line 24 of file OptOSource.h.

00024                                                                                                            : 
00025   OpticalObject( parent, type, name, copy_data){ };

OptOSource::~OptOSource (  )  [inline]

Definition at line 26 of file OptOSource.h.

00026 { };


Member Function Documentation

void OptOSource::constructSolidShape (  )  [virtual]

Reimplemented from OpticalObject.

Definition at line 65 of file OptOSource.cc.

References GlobalOptionMgr::getGlobalOptionValue(), GlobalOptionMgr::getInstance(), m, and OpticalObject::theSolidShape.

00066 {
00067   ALIdouble go;
00068   GlobalOptionMgr* gomgr = GlobalOptionMgr::getInstance();
00069   gomgr->getGlobalOptionValue("VisScale", go );
00070 
00071   theSolidShape = new CocoaSolidShapeTubs( "Tubs", go*0.*cm/m, go*1.*cm/m, go*2.*cm/m ); //COCOA internal units are meters
00072 }

void OptOSource::defaultBehaviour ( LightRay lightray,
Measurement meas 
) [virtual]

Reimplemented from OpticalObject.

Definition at line 32 of file OptOSource.cc.

References GenMuonPlsPt100GeV_cfg::cout, ALIUtils::debug, lat::endl(), and LightRay::startLightRay().

00033 {
00034   if(ALIUtils::debug >= 3) std::cout << "create laser lightray " << std::endl; 
00035   lightray.startLightRay( this );
00036 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:29:20 2009 for CMSSW by  doxygen 1.5.4