ATLAS Offline Software
Loading...
Searching...
No Matches
DiscLayerAttemptsCalculator.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// DiscLayerAttemptsCalculator.h, (c) ATLAS Detector software
8
9#ifndef TRKGEOMETY_DISCLAYERATTEMPTSCALCULATOR_H
10#define TRKGEOMETY_DISCLAYERATTEMPTSCALCULATOR_H
11
14
15namespace Trk {
16
24 public:
26 DiscLayerAttemptsCalculator(unsigned int faceAttempts,
27 unsigned int maxAttempts)
28 : m_faceAttempts(faceAttempts), m_maxLayerAttempts(maxAttempts) {}
29
31 virtual unsigned int layerAttempts(
32 BoundarySurfaceFace bsFace = Trk::undefinedFace) const override final;
33
35 virtual unsigned int maxLayerAttempts() const override final;
36
37 private:
38 unsigned int m_faceAttempts;
39 unsigned int m_maxLayerAttempts;
40};
41
43 BoundarySurfaceFace bsFace) const {
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}
50
52 return m_maxLayerAttempts;
53}
54} // namespace Trk
55
56#endif
virtual unsigned int maxLayerAttempts() const override final
The max attempts.
virtual unsigned int layerAttempts(BoundarySurfaceFace bsFace=Trk::undefinedFace) const override final
one single interface method
DiscLayerAttemptsCalculator(unsigned int faceAttempts, unsigned int maxAttempts)
Constructor.
unsigned int m_faceAttempts
number of face attampts
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...
#define private