CbmRoot
|
#include <CbmBeam.h>
Public Member Functions | |
CbmBeam (Double_t x=0., Double_t y=0., Double_t z=0., Double_t thetaX=0., Double_t thetaY=0.) | |
Default constructor. | |
virtual | ~CbmBeam () |
Destructor | |
TVector3 | ExtrapolateToPlane (const TVector3 &point, const TVector3 &normal) const |
Extrapolation of the beam to a plane. | |
TVector3 | GetDirection () const |
Beam direction vector return Direction vector (tx, ty, 1.) | |
TVector3 | GetPosition () const |
Beam position vector in the focal plane. | |
Double_t | GetThetaX () const |
Beam angle in the x-z plane. | |
Double_t | GetThetaY () const |
Beam angle in the y-z plane. | |
std::string | ToString () const |
Info on current beam trajectory. | |
Private Attributes | |
TVector3 | fPosition |
Position vector. | |
TVector3 | fDirection |
Direction vector (dx/dz, dy/dz, 1.) | |
Class describing a beam trajectory, which is assumed to be a straight line defined by a point and a direction vector. All parameters are defined w.r.t. the global coordinate system.
CbmBeam::CbmBeam | ( | Double_t | x = 0., |
Double_t | y = 0., | ||
Double_t | z = 0., | ||
Double_t | thetaX = 0., | ||
Double_t | thetaY = 0. ) |
Default constructor.
x | x position [cm] |
y | y position [cm] |
z | z position [cm] |
thetaX | Angle in x-z plane [rad] |
thetaY | Angle in y-z plane [rad] |
Definition at line 17 of file CbmBeam.cxx.
TVector3 CbmBeam::ExtrapolateToPlane | ( | const TVector3 & | point, |
const TVector3 & | normal ) const |
Extrapolation of the beam to a plane.
point | Coordinates of a point in the plane |
norm | A vector perpendicular to the plane |
The method returns the intersection point of the beam trajectory with a plane specified by an anchor point and a vector perpendicular to the plane. The latter need not be normalised.
Definition at line 26 of file CbmBeam.cxx.
References fDirection, and fPosition.
Referenced by CbmBeamProfile::ExtrapolateToPlane().
|
inline |
Beam direction vector return Direction vector (tx, ty, 1.)
Definition at line 62 of file CbmBeam.h.
References fDirection.
|
inline |
|
inline |
Beam angle in the x-z plane.
Definition at line 74 of file CbmBeam.h.
References fDirection.
|
inline |
Beam angle in the y-z plane.
Definition at line 80 of file CbmBeam.h.
References fDirection.
std::string CbmBeam::ToString | ( | ) | const |
Info on current beam trajectory.
Definition at line 41 of file CbmBeam.cxx.
References fDirection, and fPosition.
|
private |
Direction vector (dx/dz, dy/dz, 1.)
Definition at line 89 of file CbmBeam.h.
Referenced by ExtrapolateToPlane(), GetDirection(), GetThetaX(), GetThetaY(), and ToString().
|
private |
Position vector.
Definition at line 88 of file CbmBeam.h.
Referenced by ExtrapolateToPlane(), GetPosition(), and ToString().