CbmRoot
Loading...
Searching...
No Matches
CbmBeam Class Reference

#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.)
 

Detailed Description

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
1 August 2019
Date
1 August 2019

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.

Definition at line 30 of file CbmBeam.h.

Constructor & Destructor Documentation

◆ CbmBeam()

CbmBeam::CbmBeam ( Double_t x = 0.,
Double_t y = 0.,
Double_t z = 0.,
Double_t thetaX = 0.,
Double_t thetaY = 0. )

Default constructor.

Parameters
xx position [cm]
yy position [cm]
zz position [cm]
thetaXAngle in x-z plane [rad]
thetaYAngle in y-z plane [rad]

Definition at line 17 of file CbmBeam.cxx.

◆ ~CbmBeam()

virtual CbmBeam::~CbmBeam ( )
inlinevirtual

Destructor

Definition at line 44 of file CbmBeam.h.

Member Function Documentation

◆ ExtrapolateToPlane()

TVector3 CbmBeam::ExtrapolateToPlane ( const TVector3 & point,
const TVector3 & normal ) const

Extrapolation of the beam to a plane.

Parameters
pointCoordinates of a point in the plane
normA vector perpendicular to the plane
Returns
Intersection point of beam with 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().

◆ GetDirection()

TVector3 CbmBeam::GetDirection ( ) const
inline

Beam direction vector return Direction vector (tx, ty, 1.)

Definition at line 62 of file CbmBeam.h.

References fDirection.

◆ GetPosition()

TVector3 CbmBeam::GetPosition ( ) const
inline

Beam position vector in the focal plane.

Returns
Position vector [cm]

Definition at line 68 of file CbmBeam.h.

References fPosition.

◆ GetThetaX()

Double_t CbmBeam::GetThetaX ( ) const
inline

Beam angle in the x-z plane.

Returns
Beam angle in x-z [rad]

Definition at line 74 of file CbmBeam.h.

References fDirection.

◆ GetThetaY()

Double_t CbmBeam::GetThetaY ( ) const
inline

Beam angle in the y-z plane.

Returns
Beam angle in y-z [rad]

Definition at line 80 of file CbmBeam.h.

References fDirection.

◆ ToString()

std::string CbmBeam::ToString ( ) const

Info on current beam trajectory.

Definition at line 41 of file CbmBeam.cxx.

References fDirection, and fPosition.

Member Data Documentation

◆ fDirection

TVector3 CbmBeam::fDirection
private

Direction vector (dx/dz, dy/dz, 1.)

Definition at line 89 of file CbmBeam.h.

Referenced by ExtrapolateToPlane(), GetDirection(), GetThetaX(), GetThetaY(), and ToString().

◆ fPosition

TVector3 CbmBeam::fPosition
private

Position vector.

Definition at line 88 of file CbmBeam.h.

Referenced by ExtrapolateToPlane(), GetPosition(), and ToString().


The documentation for this class was generated from the following files: