Belle II Software development
TOPTrack::TrackAngles Struct Reference

Sine and cosine of track polar and azimuthal angles at assumed photon emission. More...

#include <TOPTrack.h>

Public Member Functions

 TrackAngles ()
 Default constructor.
 
 TrackAngles (const ROOT::Math::XYZVector &direction)
 Constructor from direction vector.
 
ROOT::Math::XYZVector getDirection () const
 Returns direction vector.
 

Public Attributes

double cosTh = 0
 cosine of polar angle
 
double sinTh = 0
 sine of polar angle
 
double cosFi = 0
 cosine of azimuthal angle
 
double sinFi = 0
 sine of azimuthal angle
 

Detailed Description

Sine and cosine of track polar and azimuthal angles at assumed photon emission.

Definition at line 46 of file TOPTrack.h.

Constructor & Destructor Documentation

◆ TrackAngles() [1/2]

TrackAngles ( )
inline

Default constructor.

Definition at line 55 of file TOPTrack.h.

56 {}

◆ TrackAngles() [2/2]

TrackAngles ( const ROOT::Math::XYZVector &  direction)
explicit

Constructor from direction vector.

Parameters
directiontrack direction at photon emission (must be unit vector)

Definition at line 35 of file TOPTrack.cc.

35 :
36 cosTh(dir.Z()), sinTh(sqrt(1 - cosTh * cosTh)), cosFi(dir.X() / sinTh), sinFi(dir.Y() / sinTh)
37 {}
double sqrt(double a)
sqrt for double
Definition: beamHelpers.h:28
double sinFi
sine of azimuthal angle
Definition: TOPTrack.h:50
double cosFi
cosine of azimuthal angle
Definition: TOPTrack.h:49
double cosTh
cosine of polar angle
Definition: TOPTrack.h:47
double sinTh
sine of polar angle
Definition: TOPTrack.h:48

Member Function Documentation

◆ getDirection()

ROOT::Math::XYZVector getDirection ( ) const
inline

Returns direction vector.

Returns
direction vector

Definition at line 68 of file TOPTrack.h.

68{return ROOT::Math::XYZVector(cosFi * sinTh, sinFi * sinTh, cosTh);}

Member Data Documentation

◆ cosFi

double cosFi = 0

cosine of azimuthal angle

Definition at line 49 of file TOPTrack.h.

◆ cosTh

double cosTh = 0

cosine of polar angle

Definition at line 47 of file TOPTrack.h.

◆ sinFi

double sinFi = 0

sine of azimuthal angle

Definition at line 50 of file TOPTrack.h.

◆ sinTh

double sinTh = 0

sine of polar angle

Definition at line 48 of file TOPTrack.h.


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