CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
LightRay Class Reference

#include <LightRay.h>

Public Member Functions

const CLHEP::Hep3Vector & direction () const
 
void dumpData (const ALIstring &str) const
 
void intersect (const ALIPlane &plane)
 
void intersect (const OpticalObject &opto)
 
CLHEP::Hep3Vector IntersectWithOptOPlane (const OpticalObject *optoplane)
 
CLHEP::Hep3Vector IntersectWithPlane (const CLHEP::Hep3Vector &plane_point, const CLHEP::Hep3Vector &plane_normal)
 
 LightRay ()
 
 LightRay (OpticalObject *p1, OpticalObject *p2)
 
 LightRay (CLHEP::Hep3Vector &vec1, CLHEP::Hep3Vector &vec2)
 
const CLHEP::Hep3Vector & point () const
 
void reflect (const ALIPlane &plane)
 
void refract (const ALIPlane &plate, const ALIdouble refra_ind1, const ALIdouble refra_ind2)
 
void setDirection (const CLHEP::Hep3Vector &direc)
 
void setPoint (const CLHEP::Hep3Vector &point)
 
void shiftAndDeviateWhileTraversing (const OpticalObject *opto, char behav)
 
void shiftAndDeviateWhileTraversing (const OpticalObject *opto, ALIdouble shiftX, ALIdouble shiftY, ALIdouble shiftZ, ALIdouble deviX, ALIdouble deviY, ALIdouble deviZ)
 
void startLightRay (OpticalObject *opto)
 
 ~LightRay ()
 

Public Attributes

CLHEP::Hep3Vector _direction
 
CLHEP::Hep3Vector _point
 

Detailed Description

Definition at line 20 of file LightRay.h.

Constructor & Destructor Documentation

LightRay::LightRay ( )

Definition at line 19 of file LightRay.cc.

LightRay::LightRay ( OpticalObject p1,
OpticalObject p2 
)

Definition at line 52 of file LightRay.cc.

LightRay::LightRay ( CLHEP::Hep3Vector &  vec1,
CLHEP::Hep3Vector &  vec2 
)

Definition at line 73 of file LightRay.cc.

LightRay::~LightRay ( )
inline

Definition at line 28 of file LightRay.h.

28 {};

Member Function Documentation

const CLHEP::Hep3Vector& LightRay::direction ( ) const
inline

Definition at line 55 of file LightRay.h.

References _direction.

55  {
56  return _direction;
57  }
CLHEP::Hep3Vector _direction
Definition: LightRay.h:78
void LightRay::dumpData ( const ALIstring str) const

Definition at line 382 of file LightRay.cc.

Referenced by OptOPinhole::defaultBehaviour().

void LightRay::intersect ( const ALIPlane plane)

Definition at line 101 of file LightRay.cc.

void LightRay::intersect ( const OpticalObject opto)

Definition at line 87 of file LightRay.cc.

CLHEP::Hep3Vector LightRay::IntersectWithOptOPlane ( const OpticalObject optoplane)
CLHEP::Hep3Vector LightRay::IntersectWithPlane ( const CLHEP::Hep3Vector &  plane_point,
const CLHEP::Hep3Vector &  plane_normal 
)
const CLHEP::Hep3Vector& LightRay::point ( ) const
inline

Definition at line 52 of file LightRay.h.

References _point.

Referenced by MeasurementSensor2D::calculateSimulatedValue(), MeasurementCOPS::calculateSimulatedValue(), OptOPinhole::defaultBehaviour(), and setPoint().

52  {
53  return _point;
54  }
CLHEP::Hep3Vector _point
Definition: LightRay.h:79
void LightRay::reflect ( const ALIPlane plane)

Definition at line 142 of file LightRay.cc.

void LightRay::refract ( const ALIPlane plate,
const ALIdouble  refra_ind1,
const ALIdouble  refra_ind2 
)

Definition at line 163 of file LightRay.cc.

void LightRay::setDirection ( const CLHEP::Hep3Vector &  direc)
inline

Definition at line 61 of file LightRay.h.

References _direction.

Referenced by OptOPinhole::defaultBehaviour().

61  {
62  _direction = direc;
63  }
CLHEP::Hep3Vector _direction
Definition: LightRay.h:78
void LightRay::setPoint ( const CLHEP::Hep3Vector &  point)
inline

Definition at line 64 of file LightRay.h.

References _point, and point().

Referenced by OptOPinhole::defaultBehaviour().

64  {
65  _point = point;
66  }
CLHEP::Hep3Vector _point
Definition: LightRay.h:79
const CLHEP::Hep3Vector & point() const
Definition: LightRay.h:52
void LightRay::shiftAndDeviateWhileTraversing ( const OpticalObject opto,
char  behav 
)

Definition at line 241 of file LightRay.cc.

void LightRay::shiftAndDeviateWhileTraversing ( const OpticalObject opto,
ALIdouble  shiftX,
ALIdouble  shiftY,
ALIdouble  shiftZ,
ALIdouble  deviX,
ALIdouble  deviY,
ALIdouble  deviZ 
)

Definition at line 273 of file LightRay.cc.

void LightRay::startLightRay ( OpticalObject opto)

Member Data Documentation

CLHEP::Hep3Vector LightRay::_direction

Definition at line 78 of file LightRay.h.

Referenced by direction(), and setDirection().

CLHEP::Hep3Vector LightRay::_point

Definition at line 79 of file LightRay.h.

Referenced by point(), and setPoint().