Belle II Software development
Belle2::TrackFindingCDC::NRotation Namespace Reference

Namespace hiding the constants of the enum. More...

Enumerations

enum  ERotation : signed short {
  c_CounterClockwise = 1 ,
  c_Unknown = 0 ,
  c_Clockwise = -1 ,
  c_Invalid = SHRT_MIN
}
 Enumeration to represent the distinct possibilities of the right left passage information. More...
 

Functions

ERotation reversed (ERotation eRotation)
 Return the reversed rotation. Leaves ERotation::c_Invalid the same.
 
bool isValid (ERotation eRotation)
 Check whether the given enum instance is one of the valid values.
 

Detailed Description

Namespace hiding the constants of the enum.

Enumeration Type Documentation

◆ ERotation

enum ERotation : signed short

Enumeration to represent the distinct possibilities of the right left passage information.

Enumerator
c_CounterClockwise 

Constant for counter clockwise oriented circle.

c_Unknown 

For the orientation of a line.

c_Clockwise 

Constant for clockwise oriented circle.

c_Invalid 

Constant for an invalid information.

Definition at line 25 of file ERotation.h.

25 : signed short {
26
29
31 c_Unknown = 0,
32
34 c_Clockwise = -1,
35
37 c_Invalid = SHRT_MIN,
38 };
@ c_CounterClockwise
Constant for counter clockwise oriented circle.
Definition: ERotation.h:28
@ c_Clockwise
Constant for clockwise oriented circle.
Definition: ERotation.h:34

Function Documentation

◆ isValid()

bool isValid ( ERotation  eRotation)
inline

Check whether the given enum instance is one of the valid values.

Definition at line 45 of file ERotation.h.

46 { return std::abs(eRotation) <= 1; }

◆ reversed()

ERotation reversed ( ERotation  eRotation)
inline

Return the reversed rotation. Leaves ERotation::c_Invalid the same.

Definition at line 41 of file ERotation.h.

42 { return ERotation(-eRotation); }
ERotation
Enumeration to represent the distinct possibilities of the right left passage information.
Definition: ERotation.h:25