#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 |
Definition at line 20 of file LightRay.h.
LightRay::LightRay | ( | ) |
LightRay::LightRay | ( | OpticalObject * | p1, |
OpticalObject * | p2 | ||
) |
Definition at line 48 of file LightRay.cc.
References OpticalObject::centreGlob(), gather_cfg::cout, ALIUtils::debug, dumpData(), OpticalObject::name(), setDirection(), and setPoint().
LightRay::LightRay | ( | CLHEP::Hep3Vector & | vec1, |
CLHEP::Hep3Vector & | vec2 | ||
) |
Definition at line 68 of file LightRay.cc.
References ALIUtils::debug, DeadROC_duringRun::dir, dumpData(), setDirection(), and setPoint().
|
inline |
Definition at line 27 of file LightRay.h.
|
inline |
Definition at line 58 of file LightRay.h.
References _direction.
Referenced by OptOMirror::detailedDeviatesLightRay(), intersect(), OptOSensor2D::makeMeasurement(), refract(), and OptOUserDefined::userDefinedBehaviour().
void LightRay::dumpData | ( | const ALIstring & | str | ) | const |
Definition at line 374 of file LightRay.cc.
References _direction, _point, gather_cfg::cout, ALIUtils::dump3v(), and str.
Referenced by OptOPinhole::defaultBehaviour(), OptOPlateSplitter::detailedDeviatesLightRay(), OptOMirror::detailedDeviatesLightRay(), OptOOpticalSquare::detailedDeviatesLightRay(), OptOCubeSplitter::detailedDeviatesLightRay(), OptOModifiedRhomboidPrism::detailedDeviatesLightRay(), OptOPlateSplitter::detailedTraversesLightRay(), OptOCubeSplitter::detailedTraversesLightRay(), OptOModifiedRhomboidPrism::detailedTraversesLightRay(), OptOSensor2D::detailedTraversesLightRay(), OptOMirror::detailedTraversesLightRay(), OptOModifiedRhomboidPrism::fastDeviatesLightRay(), OptOCubeSplitter::fastDeviatesLightRay(), OptOOpticalSquare::fastDeviatesLightRay(), OptOPlateSplitter::fastDeviatesLightRay(), OptOMirror::fastDeviatesLightRay(), OptOModifiedRhomboidPrism::fastTraversesLightRay(), OptOOpticalSquare::fastTraversesLightRay(), OptOCubeSplitter::fastTraversesLightRay(), OptOSensor2D::fastTraversesLightRay(), OptOPlateSplitter::fastTraversesLightRay(), OptOCOPS::fastTraversesLightRay(), OptOMirror::fastTraversesLightRay(), LightRay(), reflect(), refract(), startLightRay(), and OptOUserDefined::userDefinedBehaviour().
void LightRay::intersect | ( | const ALIPlane & | plane | ) |
Definition at line 93 of file LightRay.cc.
References _direction, _point, funct::abs(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, ALIUtils::debug, direction(), ALIUtils::dump3v(), beamvalidation::exit(), ALIPlane::normal(), and ALIPlane::point().
Referenced by OptOMirror::detailedDeviatesLightRay(), OptOSensor2D::detailedTraversesLightRay(), OptOModifiedRhomboidPrism::fastDeviatesLightRay(), OptOOpticalSquare::fastDeviatesLightRay(), OptOModifiedRhomboidPrism::fastTraversesLightRay(), OptOCubeSplitter::fastTraversesLightRay(), OptOOpticalSquare::fastTraversesLightRay(), OptOSensor2D::fastTraversesLightRay(), OptOCOPS::fastTraversesLightRay(), OptOPlateSplitter::fastTraversesLightRay(), OptOMirror::fastTraversesLightRay(), intersect(), OptOSensor2D::makeMeasurement(), OptOCOPS::makeMeasurement(), reflect(), refract(), and OptOUserDefined::userDefinedBehaviour().
void LightRay::intersect | ( | const OpticalObject & | opto | ) |
Definition at line 80 of file LightRay.cc.
References OpticalObject::centreGlob(), gather_cfg::cout, ALIUtils::debug, intersect(), and OpticalObject::rmGlob().
CLHEP::Hep3Vector LightRay::IntersectWithOptOPlane | ( | const OpticalObject * | optoplane | ) |
CLHEP::Hep3Vector LightRay::IntersectWithPlane | ( | const CLHEP::Hep3Vector & | plane_point, |
const CLHEP::Hep3Vector & | plane_normal | ||
) |
|
inline |
Definition at line 57 of file LightRay.h.
References _point.
Referenced by MeasurementSensor2D::calculateSimulatedValue(), MeasurementDistancemeter::calculateSimulatedValue(), MeasurementDistancemeter3dim::calculateSimulatedValue(), MeasurementCOPS::calculateSimulatedValue(), OptOPinhole::defaultBehaviour(), OptOMirror::detailedDeviatesLightRay(), OptOSensor2D::detailedTraversesLightRay(), OptOSensor2D::fastTraversesLightRay(), OptOCOPS::fastTraversesLightRay(), OptOSensor2D::makeMeasurement(), OptOCOPS::makeMeasurement(), setPoint(), and OptOUserDefined::userDefinedBehaviour().
void LightRay::reflect | ( | const ALIPlane & | plane | ) |
Definition at line 138 of file LightRay.cc.
References _direction, gather_cfg::cout, ALIUtils::debug, ALIUtils::dump3v(), dumpData(), intersect(), and ALIPlane::normal().
Referenced by OptOPlateSplitter::detailedDeviatesLightRay(), OptOModifiedRhomboidPrism::detailedDeviatesLightRay(), OptOOpticalSquare::detailedDeviatesLightRay(), OptOCubeSplitter::detailedDeviatesLightRay(), OptOOpticalSquare::fastDeviatesLightRay(), OptOCubeSplitter::fastDeviatesLightRay(), OptOPlateSplitter::fastDeviatesLightRay(), and OptOMirror::fastDeviatesLightRay().
void LightRay::refract | ( | const ALIPlane & | plate, |
const ALIdouble | refra_ind1, | ||
const ALIdouble | refra_ind2 | ||
) |
Definition at line 157 of file LightRay.cc.
References funct::abs(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, ALIUtils::debug, direction(), ALIUtils::dump3v(), dumpData(), beamvalidation::exit(), intersect(), ALIPlane::normal(), setDirection(), and mathSSE::sqrt().
Referenced by OptOCubeSplitter::detailedDeviatesLightRay(), OptOModifiedRhomboidPrism::detailedDeviatesLightRay(), OptOOpticalSquare::detailedDeviatesLightRay(), OptOPlateSplitter::detailedTraversesLightRay(), OptOCubeSplitter::detailedTraversesLightRay(), OptOModifiedRhomboidPrism::detailedTraversesLightRay(), OptOOpticalSquare::detailedTraversesLightRay(), OptOSensor2D::detailedTraversesLightRay(), and OptOMirror::detailedTraversesLightRay().
|
inline |
Definition at line 62 of file LightRay.h.
References _direction.
Referenced by OptOPinhole::defaultBehaviour(), OptOMirror::detailedDeviatesLightRay(), LightRay(), refract(), startLightRay(), and OptOUserDefined::userDefinedBehaviour().
|
inline |
Definition at line 63 of file LightRay.h.
References _point, and point().
Referenced by OptOPinhole::defaultBehaviour(), OptOSensor2D::detailedTraversesLightRay(), OptOSensor2D::fastTraversesLightRay(), OptOCOPS::fastTraversesLightRay(), LightRay(), startLightRay(), and OptOUserDefined::userDefinedBehaviour().
void LightRay::shiftAndDeviateWhileTraversing | ( | const OpticalObject * | opto, |
char | behav | ||
) |
Definition at line 235 of file LightRay.cc.
References gather_cfg::cout, ALIUtils::debug, and OpticalObject::findExtraEntryValue().
Referenced by OptOCubeSplitter::fastDeviatesLightRay(), OptOModifiedRhomboidPrism::fastDeviatesLightRay(), OptOOpticalSquare::fastDeviatesLightRay(), OptOPlateSplitter::fastDeviatesLightRay(), OptOMirror::fastDeviatesLightRay(), OptOOpticalSquare::fastTraversesLightRay(), OptOCubeSplitter::fastTraversesLightRay(), OptOModifiedRhomboidPrism::fastTraversesLightRay(), OptOSensor2D::fastTraversesLightRay(), OptOPlateSplitter::fastTraversesLightRay(), and OptOMirror::fastTraversesLightRay().
void LightRay::shiftAndDeviateWhileTraversing | ( | const OpticalObject * | opto, |
ALIdouble | shiftX, | ||
ALIdouble | shiftY, | ||
ALIdouble | shiftZ, | ||
ALIdouble | deviX, | ||
ALIdouble | deviY, | ||
ALIdouble | deviZ | ||
) |
Definition at line 265 of file LightRay.cc.
References _direction, _point, gather_cfg::cout, ALIUtils::debug, ALIUtils::dump3v(), and OpticalObject::rmGlob().
void LightRay::startLightRay | ( | OpticalObject * | opto | ) |
Definition at line 26 of file LightRay.cc.
References OpticalObject::centreGlob(), gather_cfg::cout, ALIUtils::debug, dumpData(), ALIUtils::dumprm(), OpticalObject::name(), OpticalObject::rmGlob(), setDirection(), setPoint(), and OpticalObject::type().
Referenced by OptOLaser::defaultBehaviour(), OptOXLaser::defaultBehaviour(), OptOSource::defaultBehaviour(), and FittedEntriesManager::GetDifferentBetweenLasers().
CLHEP::Hep3Vector LightRay::_direction |
Definition at line 73 of file LightRay.h.
Referenced by direction(), dumpData(), intersect(), LightRay(), reflect(), setDirection(), and shiftAndDeviateWhileTraversing().
CLHEP::Hep3Vector LightRay::_point |
Definition at line 74 of file LightRay.h.
Referenced by dumpData(), intersect(), LightRay(), point(), setPoint(), and shiftAndDeviateWhileTraversing().