#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 52 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 73 of file LightRay.cc.
References ALIUtils::debug, dir, dumpData(), setDirection(), and setPoint().
|
inline |
Definition at line 28 of file LightRay.h.
References intersect(), reflect(), refract(), shiftAndDeviateWhileTraversing(), and startLightRay().
|
inline |
Definition at line 55 of file LightRay.h.
References _direction, dumpData(), and harvestTrackValidationPlots::str.
Referenced by OptOMirror::detailedDeviatesLightRay(), intersect(), OptOSensor2D::makeMeasurement(), refract(), and OptOUserDefined::userDefinedBehaviour().
void LightRay::dumpData | ( | const ALIstring & | str | ) | const |
Definition at line 382 of file LightRay.cc.
References _direction, _point, gather_cfg::cout, and ALIUtils::dump3v().
Referenced by OptOPinhole::defaultBehaviour(), OptOPlateSplitter::detailedDeviatesLightRay(), OptOMirror::detailedDeviatesLightRay(), OptOOpticalSquare::detailedDeviatesLightRay(), OptOCubeSplitter::detailedDeviatesLightRay(), OptOModifiedRhomboidPrism::detailedDeviatesLightRay(), OptOPlateSplitter::detailedTraversesLightRay(), OptOModifiedRhomboidPrism::detailedTraversesLightRay(), OptOCubeSplitter::detailedTraversesLightRay(), OptOMirror::detailedTraversesLightRay(), OptOSensor2D::detailedTraversesLightRay(), direction(), OptOModifiedRhomboidPrism::fastDeviatesLightRay(), OptOOpticalSquare::fastDeviatesLightRay(), OptOCubeSplitter::fastDeviatesLightRay(), OptOPlateSplitter::fastDeviatesLightRay(), OptOMirror::fastDeviatesLightRay(), OptOCubeSplitter::fastTraversesLightRay(), OptOModifiedRhomboidPrism::fastTraversesLightRay(), OptOOpticalSquare::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 101 of file LightRay.cc.
References _direction, _point, funct::abs(), MessageLogger_cfi::cerr, gather_cfg::cout, ALIUtils::debug, direction(), ALIUtils::dump3v(), cmsRelvalreport::exit, ALIPlane::normal(), and ALIPlane::point().
Referenced by OptOMirror::detailedDeviatesLightRay(), OptOSensor2D::detailedTraversesLightRay(), OptOModifiedRhomboidPrism::fastDeviatesLightRay(), OptOOpticalSquare::fastDeviatesLightRay(), OptOCubeSplitter::fastTraversesLightRay(), OptOModifiedRhomboidPrism::fastTraversesLightRay(), OptOOpticalSquare::fastTraversesLightRay(), OptOSensor2D::fastTraversesLightRay(), OptOCOPS::fastTraversesLightRay(), OptOPlateSplitter::fastTraversesLightRay(), OptOMirror::fastTraversesLightRay(), intersect(), OptOSensor2D::makeMeasurement(), OptOCOPS::makeMeasurement(), reflect(), refract(), OptOUserDefined::userDefinedBehaviour(), and ~LightRay().
void LightRay::intersect | ( | const OpticalObject & | opto | ) |
Definition at line 87 of file LightRay.cc.
References OpticalObject::centreGlob(), gather_cfg::cout, ALIUtils::debug, intersect(), and OpticalObject::rmGlob().
CLHEP::Hep3Vector LightRay::IntersectWithOptOPlane | ( | const OpticalObject * | optoplane | ) |
Referenced by setPoint().
CLHEP::Hep3Vector LightRay::IntersectWithPlane | ( | const CLHEP::Hep3Vector & | plane_point, |
const CLHEP::Hep3Vector & | plane_normal | ||
) |
Referenced by setPoint().
|
inline |
Definition at line 52 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 142 of file LightRay.cc.
References _direction, gather_cfg::cout, ALIUtils::debug, ALIUtils::dump3v(), dumpData(), intersect(), and ALIPlane::normal().
Referenced by OptOPlateSplitter::detailedDeviatesLightRay(), OptOCubeSplitter::detailedDeviatesLightRay(), OptOModifiedRhomboidPrism::detailedDeviatesLightRay(), OptOOpticalSquare::detailedDeviatesLightRay(), OptOCubeSplitter::fastDeviatesLightRay(), OptOOpticalSquare::fastDeviatesLightRay(), OptOPlateSplitter::fastDeviatesLightRay(), OptOMirror::fastDeviatesLightRay(), and ~LightRay().
void LightRay::refract | ( | const ALIPlane & | plate, |
const ALIdouble | refra_ind1, | ||
const ALIdouble | refra_ind2 | ||
) |
Definition at line 163 of file LightRay.cc.
References funct::abs(), MessageLogger_cfi::cerr, gather_cfg::cout, ALIUtils::debug, direction(), ALIUtils::dump3v(), dumpData(), cmsRelvalreport::exit, intersect(), ALIPlane::normal(), setDirection(), and mathSSE::sqrt().
Referenced by OptOCubeSplitter::detailedDeviatesLightRay(), OptOModifiedRhomboidPrism::detailedDeviatesLightRay(), OptOOpticalSquare::detailedDeviatesLightRay(), OptOPlateSplitter::detailedTraversesLightRay(), OptOCubeSplitter::detailedTraversesLightRay(), OptOOpticalSquare::detailedTraversesLightRay(), OptOModifiedRhomboidPrism::detailedTraversesLightRay(), OptOSensor2D::detailedTraversesLightRay(), OptOMirror::detailedTraversesLightRay(), and ~LightRay().
|
inline |
Definition at line 61 of file LightRay.h.
References _direction.
Referenced by OptOPinhole::defaultBehaviour(), OptOMirror::detailedDeviatesLightRay(), LightRay(), refract(), startLightRay(), and OptOUserDefined::userDefinedBehaviour().
|
inline |
Definition at line 64 of file LightRay.h.
References _point, IntersectWithOptOPlane(), IntersectWithPlane(), 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 241 of file LightRay.cc.
References gather_cfg::cout, ALIUtils::debug, and OpticalObject::findExtraEntryValue().
Referenced by OptOCubeSplitter::fastDeviatesLightRay(), OptOOpticalSquare::fastDeviatesLightRay(), OptOModifiedRhomboidPrism::fastDeviatesLightRay(), OptOPlateSplitter::fastDeviatesLightRay(), OptOMirror::fastDeviatesLightRay(), OptOOpticalSquare::fastTraversesLightRay(), OptOModifiedRhomboidPrism::fastTraversesLightRay(), OptOCubeSplitter::fastTraversesLightRay(), OptOSensor2D::fastTraversesLightRay(), OptOPlateSplitter::fastTraversesLightRay(), OptOMirror::fastTraversesLightRay(), and ~LightRay().
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.
References _direction, _point, gather_cfg::cout, ALIUtils::debug, ALIUtils::dump3v(), and OpticalObject::rmGlob().
void LightRay::startLightRay | ( | OpticalObject * | opto | ) |
Definition at line 28 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(), FittedEntriesManager::GetDifferentBetweenLasers(), and ~LightRay().
CLHEP::Hep3Vector LightRay::_direction |
Definition at line 78 of file LightRay.h.
Referenced by direction(), dumpData(), intersect(), LightRay(), reflect(), setDirection(), and shiftAndDeviateWhileTraversing().
CLHEP::Hep3Vector LightRay::_point |
Definition at line 79 of file LightRay.h.
Referenced by dumpData(), intersect(), LightRay(), point(), setPoint(), and shiftAndDeviateWhileTraversing().