Belle II Software development
CDCRLWireHitTriple::Shape Class Reference

Type for the different shapes of a triple of neighboring wire hits. More...

#include <CDCRLWireHitTriple.h>

Public Member Functions

 Shape ()
 Default constructor for an invalid shape.
 
 Shape (const short startToMiddleCellDistance, const short middleToEndCellDistance, const short oClockDelta)
 Constructor from cell extend and o'clock direction change.
 
short getStartToMiddleCellDistance () const
 Getter for the start to middle cell distance.
 
short getMiddleToEndCellDistance () const
 Getter for the middle to end cell distance.
 
short getCellExtend () const
 Getter for the sum of cell distances from start to middle and middle to end.
 
short getOClockDelta () const
 Getter for the o'clock direction difference from start to middle compared to middle to end.
 
bool isValid () const
 Check if the shape is considered valid.
 

Private Attributes

char m_startToMiddleCellDistance
 The cell distances from start to middle.
 
char m_middleToEndCellDistance
 The cell distances from middle to end.
 
short m_oClockDelta
 The o'clock direction difference from start to middle compared to middle to end.
 

Detailed Description

Type for the different shapes of a triple of neighboring wire hits.

Definition at line 38 of file CDCRLWireHitTriple.h.

Constructor & Destructor Documentation

◆ Shape() [1/2]

Shape ( )

Default constructor for an invalid shape.

Definition at line 21 of file CDCRLWireHitTriple.cc.

22 : m_startToMiddleCellDistance(CHAR_MAX / 2)
23 , m_middleToEndCellDistance(CHAR_MAX / 2)
24 , m_oClockDelta(SHRT_MIN)
25{
26}
char m_middleToEndCellDistance
The cell distances from middle to end.
char m_startToMiddleCellDistance
The cell distances from start to middle.
short m_oClockDelta
The o'clock direction difference from start to middle compared to middle to end.

◆ Shape() [2/2]

Shape ( const short  startToMiddleCellDistance,
const short  middleToEndCellDistance,
const short  oClockDelta 
)

Constructor from cell extend and o'clock direction change.

Definition at line 28 of file CDCRLWireHitTriple.cc.

31 : m_startToMiddleCellDistance(startToMiddleCellDistance)
32 , m_middleToEndCellDistance(middleToEndCellDistance)
33 , m_oClockDelta(oClockDelta)
34{
35}

Member Function Documentation

◆ getCellExtend()

short getCellExtend ( ) const

Getter for the sum of cell distances from start to middle and middle to end.

Definition at line 47 of file CDCRLWireHitTriple.cc.

◆ getMiddleToEndCellDistance()

short getMiddleToEndCellDistance ( ) const

Getter for the middle to end cell distance.

Definition at line 42 of file CDCRLWireHitTriple.cc.

43{
45}

◆ getOClockDelta()

short getOClockDelta ( ) const

Getter for the o'clock direction difference from start to middle compared to middle to end.

Definition at line 52 of file CDCRLWireHitTriple.cc.

53{
54 return m_oClockDelta;
55}

◆ getStartToMiddleCellDistance()

short getStartToMiddleCellDistance ( ) const

Getter for the start to middle cell distance.

Definition at line 37 of file CDCRLWireHitTriple.cc.

38{
40}

◆ isValid()

bool isValid ( ) const

Check if the shape is considered valid.

Definition at line 57 of file CDCRLWireHitTriple.cc.

58{
59 return getCellExtend() >= 2 and getCellExtend() <= 4;
60}
short getCellExtend() const
Getter for the sum of cell distances from start to middle and middle to end.

Member Data Documentation

◆ m_middleToEndCellDistance

char m_middleToEndCellDistance
private

The cell distances from middle to end.

Definition at line 69 of file CDCRLWireHitTriple.h.

◆ m_oClockDelta

short m_oClockDelta
private

The o'clock direction difference from start to middle compared to middle to end.

Definition at line 72 of file CDCRLWireHitTriple.h.

◆ m_startToMiddleCellDistance

char m_startToMiddleCellDistance
private

The cell distances from start to middle.

Definition at line 66 of file CDCRLWireHitTriple.h.


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