Belle II Software light-2406-ragdoll
BaseAngle Class Reference

Class to compare if two angles are compatible withing a given error range. More...

#include <Angle.h>

Inheritance diagram for BaseAngle:

Public Member Functions

 BaseAngle (double angle, double error)
 Constructor.
 
virtual ~BaseAngle ()
 Destructor.
 
double getAngle () const
 Getter for the angle.
 
double getError () const
 Getter for the error of the angle.
 
double getAngleInDeg () const
 Getter for angle in degrees.
 
double getErrorInDeg () const
 Getter for the error of the angle in degrees.
 

Protected Attributes

double m_angle
 Angle in rad.
 
double m_error
 Error in rad.
 

Detailed Description

Class to compare if two angles are compatible withing a given error range.

Definition at line 24 of file Angle.h.

Constructor & Destructor Documentation

◆ BaseAngle()

BaseAngle ( double  angle,
double  error 
)
inline

Constructor.

Parameters
angleangle to compare
errorerror on the angle

Definition at line 30 of file Angle.h.

30: m_angle(angle), m_error(error) {};
double m_error
Error in rad.
Definition: Angle.h:54
double m_angle
Angle in rad.
Definition: Angle.h:53

◆ ~BaseAngle()

virtual ~BaseAngle ( )
inlinevirtual

Destructor.

Definition at line 33 of file Angle.h.

33{};

Member Function Documentation

◆ getAngle()

double getAngle ( ) const
inline

Getter for the angle.

Definition at line 37 of file Angle.h.

37{ return m_angle; }

◆ getAngleInDeg()

double getAngleInDeg ( ) const
inline

Getter for angle in degrees.

Definition at line 45 of file Angle.h.

45{ return m_angle * TMath::RadToDeg(); }

◆ getError()

double getError ( ) const
inline

Getter for the error of the angle.

Definition at line 41 of file Angle.h.

41{ return m_error; }

◆ getErrorInDeg()

double getErrorInDeg ( ) const
inline

Getter for the error of the angle in degrees.

Definition at line 49 of file Angle.h.

49{ return m_error * TMath::RadToDeg(); }

Member Data Documentation

◆ m_angle

double m_angle
protected

Angle in rad.

Definition at line 53 of file Angle.h.

◆ m_error

double m_error
protected

Error in rad.

Definition at line 54 of file Angle.h.


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