Belle II Software  release-05-01-25
Belle2::TrackFindingCDC::NRightLeft Namespace Reference

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

Enumerations

enum  ERightLeft : signed short {
  c_Right = 1,
  c_Unknown = 0,
  c_Left = -1,
  c_Invalid = SHRT_MIN
}
 Enumeration to represent the distinct possibilities of the right left passage. More...
 

Functions

ERightLeft reversed (ERightLeft eRightLeft)
 Return the reversed right left indicator. Leaves ERightLeft::c_Invalid the same.
 
bool isValid (ERightLeft eRightLeft)
 Check whether the given enum instance is one of the valid values.
 

Detailed Description

Namespace hiding the constants of the enum.

Enumeration Type Documentation

◆ ERightLeft

enum ERightLeft : signed short

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

Enumerator
c_Right 

Constant for right passage.

c_Unknown 

Constant for an not yet determined right left passage.

c_Left 

Constant for left passage.

c_Invalid 

Constant for an invalid passage information.

Definition at line 35 of file ERightLeft.h.

44  { return ERightLeft(-eRightLeft); }
45 
47  inline bool isValid(ERightLeft eRightLeft)
48  { return std::abs(eRightLeft) <= 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::NRightLeft::ERightLeft
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
Definition: ERightLeft.h:35