ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trk::CylinderLayerAttemptsCalculator Class Referencefinal

#include <CylinderLayerAttemptsCalculator.h>

Inheritance diagram for Trk::CylinderLayerAttemptsCalculator:
Collaboration diagram for Trk::CylinderLayerAttemptsCalculator:

Public Member Functions

 CylinderLayerAttemptsCalculator (unsigned int faceAttempts, unsigned int maxAttempts)
 Constructor. More...
 
virtual unsigned int layerAttempts (BoundarySurfaceFace bsFace=Trk::undefinedFace) const override final
 one single interface method More...
 
virtual unsigned int maxLayerAttempts () const override
 The max attempts. More...
 

Private Attributes

unsigned int m_faceAttempts
 number of face attampts More...
 
unsigned int m_maxLayerAttempts
 the max attempt number More...
 

Detailed Description

Simple helper class for CylinderLayer static array

Author
Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch

Definition at line 24 of file CylinderLayerAttemptsCalculator.h.

Constructor & Destructor Documentation

◆ CylinderLayerAttemptsCalculator()

Trk::CylinderLayerAttemptsCalculator::CylinderLayerAttemptsCalculator ( unsigned int  faceAttempts,
unsigned int  maxAttempts 
)
inline

Constructor.

Definition at line 27 of file CylinderLayerAttemptsCalculator.h.

29  : m_faceAttempts(faceAttempts), m_maxLayerAttempts(maxAttempts) {}

Member Function Documentation

◆ layerAttempts()

unsigned int Trk::CylinderLayerAttemptsCalculator::layerAttempts ( BoundarySurfaceFace  bsFace = Trk::undefinedFace) const
inlinefinaloverridevirtual

one single interface method

Implements Trk::LayerAttemptsCalculator.

Definition at line 43 of file CylinderLayerAttemptsCalculator.h.

44  {
45  // if you go through the Inner/Outer cover only one attempt is allowed
46  if (bsFace == tubeInnerCover || bsFace == tubeOuterCover)
47  return m_faceAttempts;
48  // allow the maximum
49  return m_maxLayerAttempts;
50 }

◆ maxLayerAttempts()

unsigned int Trk::CylinderLayerAttemptsCalculator::maxLayerAttempts ( ) const
inlineoverridevirtual

The max attempts.

Implements Trk::LayerAttemptsCalculator.

Definition at line 52 of file CylinderLayerAttemptsCalculator.h.

52  {
53  return m_maxLayerAttempts;
54 }

Member Data Documentation

◆ m_faceAttempts

unsigned int Trk::CylinderLayerAttemptsCalculator::m_faceAttempts
private

number of face attampts

Definition at line 39 of file CylinderLayerAttemptsCalculator.h.

◆ m_maxLayerAttempts

unsigned int Trk::CylinderLayerAttemptsCalculator::m_maxLayerAttempts
private

the max attempt number

Definition at line 40 of file CylinderLayerAttemptsCalculator.h.


The documentation for this class was generated from the following file:
Trk::CylinderLayerAttemptsCalculator::m_maxLayerAttempts
unsigned int m_maxLayerAttempts
the max attempt number
Definition: CylinderLayerAttemptsCalculator.h:40
Trk::CylinderLayerAttemptsCalculator::m_faceAttempts
unsigned int m_faceAttempts
number of face attampts
Definition: CylinderLayerAttemptsCalculator.h:39
Trk::tubeOuterCover
@ tubeOuterCover
Definition: BoundarySurfaceFace.h:40
Trk::tubeInnerCover
@ tubeInnerCover
Definition: BoundarySurfaceFace.h:39