Belle II Software  light-2403-persian
ThetaAngle Class Reference

#include <Angle.h>

Inheritance diagram for ThetaAngle:
Collaboration diagram for ThetaAngle:

Public Member Functions

 ThetaAngle (double angle, double error)
 Constructor using radian units. More...
 
bool contains (const ThetaAngle &angle) const
 Check if two angles are compatible. More...
 
bool containsIn (const ThetaAngle &angle, double sigma) const
 Check if two angles are compatible. More...
 
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

See also
BaseAngle Theta specific.

Definition at line 63 of file Angle.h.

Constructor & Destructor Documentation

โ—† ThetaAngle()

ThetaAngle ( double  angle,
double  error 
)
inline

Constructor using radian units.

Theta in [0, pi].

Parameters
angletheta angle to use
errorerror on the angle

Definition at line 71 of file Angle.h.

Member Function Documentation

โ—† contains()

bool contains ( const ThetaAngle angle) const
inline

Check if two angles are compatible.

Parameters
anglesecond angle to compare to
Returns
true if within one standard deviation

Definition at line 80 of file Angle.h.

โ—† containsIn()

bool containsIn ( const ThetaAngle angle,
double  sigma 
) const
inline

Check if two angles are compatible.

Parameters
anglesecond angle to compare to
sigmawidth of the error band in standard deviations
Returns
true if within sigma standard deviations

Definition at line 90 of file Angle.h.


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