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

#include <DiscLayerAttemptsCalculator.h>

Inheritance diagram for Trk::DiscLayerAttemptsCalculator:
Collaboration diagram for Trk::DiscLayerAttemptsCalculator:

Public Member Functions

 DiscLayerAttemptsCalculator (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 final
 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 DiscLAyer static array

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

Definition at line 23 of file DiscLayerAttemptsCalculator.h.

Constructor & Destructor Documentation

◆ DiscLayerAttemptsCalculator()

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

Constructor.

Definition at line 26 of file DiscLayerAttemptsCalculator.h.

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

Member Function Documentation

◆ layerAttempts()

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

one single interface method

Implements Trk::LayerAttemptsCalculator.

Definition at line 42 of file DiscLayerAttemptsCalculator.h.

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

◆ maxLayerAttempts()

unsigned int Trk::DiscLayerAttemptsCalculator::maxLayerAttempts ( ) const
inlinefinaloverridevirtual

The max attempts.

Implements Trk::LayerAttemptsCalculator.

Definition at line 51 of file DiscLayerAttemptsCalculator.h.

51  {
52  return m_maxLayerAttempts;
53 }

Member Data Documentation

◆ m_faceAttempts

unsigned int Trk::DiscLayerAttemptsCalculator::m_faceAttempts
private

number of face attampts

Definition at line 38 of file DiscLayerAttemptsCalculator.h.

◆ m_maxLayerAttempts

unsigned int Trk::DiscLayerAttemptsCalculator::m_maxLayerAttempts
private

the max attempt number

Definition at line 39 of file DiscLayerAttemptsCalculator.h.


The documentation for this class was generated from the following file:
Trk::positiveFaceXY
@ positiveFaceXY
Definition: BoundarySurfaceFace.h:33
Trk::negativeFaceXY
@ negativeFaceXY
Definition: BoundarySurfaceFace.h:32
Trk::DiscLayerAttemptsCalculator::m_faceAttempts
unsigned int m_faceAttempts
number of face attampts
Definition: DiscLayerAttemptsCalculator.h:38
Trk::DiscLayerAttemptsCalculator::m_maxLayerAttempts
unsigned int m_maxLayerAttempts
the max attempt number
Definition: DiscLayerAttemptsCalculator.h:39