ATLAS Offline Software
Loading...
Searching...
No Matches
CylinderLayerAttemptsCalculator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// CylinderLayerAttemptsCalculator.h, (c) ATLAS Detector software
8
9#ifndef TRKGEOMETY_CYLINDERLAYERATTEMPTSCALCULATOR_H
10#define TRKGEOMETY_CYLINDERLAYERATTEMPTSCALCULATOR_H
11
14
15namespace Trk {
16
23
25 public:
27 CylinderLayerAttemptsCalculator(unsigned int faceAttempts,
28 unsigned int maxAttempts)
29 : m_faceAttempts(faceAttempts), m_maxLayerAttempts(maxAttempts) {}
30
32 virtual unsigned int layerAttempts(
33 BoundarySurfaceFace bsFace = Trk::undefinedFace) const override final;
34
36 virtual unsigned int maxLayerAttempts() const override;
37
38 private:
39 unsigned int m_faceAttempts;
40 unsigned int m_maxLayerAttempts;
41};
42
44 BoundarySurfaceFace bsFace) const {
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}
51
53 return m_maxLayerAttempts;
54}
55} // namespace Trk
56
57#endif
unsigned int m_faceAttempts
number of face attampts
virtual unsigned int maxLayerAttempts() const override
The max attempts.
CylinderLayerAttemptsCalculator(unsigned int faceAttempts, unsigned int maxAttempts)
Constructor.
virtual unsigned int layerAttempts(BoundarySurfaceFace bsFace=Trk::undefinedFace) const override final
one single interface method
unsigned int m_maxLayerAttempts
the max attempt number
Simple helper class that allows to define different number of layer attempts in the extrapolation bef...
Ensure that the ATLAS eigen extensions are properly loaded.
BoundarySurfaceFace
Enum to describe the position of the BoundarySurface respectively to the frame orientatin of the volu...