Belle II Software  release-05-01-25
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 35 of file ERotation.h.

44  { return ERotation(-eRotation); }
45 
47  inline bool isValid(ERotation eRotation)
48  { return std::abs(eRotation) <= 1; }
Belle2::TrackFindingCDC::NForwardBackward::isValid
bool isValid(EForwardBackward eForwardBackward)
Check whether the given enum instance is one of the valid values.
Definition: EForwardBackward.h:55
Belle2::TrackFindingCDC::NRotation::ERotation
ERotation
Enumeration to represent the distinct possibilities of the right left passage information.
Definition: ERotation.h:35