ATLAS Offline Software
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 
15 namespace 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 
51 inline unsigned int DiscLayerAttemptsCalculator::maxLayerAttempts() const {
52  return m_maxLayerAttempts;
53 }
54 } // namespace Trk
55 
56 #endif
Trk::DiscLayerAttemptsCalculator::maxLayerAttempts
virtual unsigned int maxLayerAttempts() const override final
The max attempts.
Definition: DiscLayerAttemptsCalculator.h:51
Trk::positiveFaceXY
@ positiveFaceXY
Definition: BoundarySurfaceFace.h:33
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
Trk::BoundarySurfaceFace
BoundarySurfaceFace
Definition: BoundarySurfaceFace.h:31
LayerAttemptsCalculator.h
Trk::DiscLayerAttemptsCalculator::layerAttempts
virtual unsigned int layerAttempts(BoundarySurfaceFace bsFace=Trk::undefinedFace) const override final
one single interface method
Definition: DiscLayerAttemptsCalculator.h:42
Trk::negativeFaceXY
@ negativeFaceXY
Definition: BoundarySurfaceFace.h:32
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
BoundarySurfaceFace.h
Trk::DiscLayerAttemptsCalculator
Definition: DiscLayerAttemptsCalculator.h:23
Trk::undefinedFace
@ undefinedFace
Definition: BoundarySurfaceFace.h:59
Trk::LayerAttemptsCalculator
Definition: LayerAttemptsCalculator.h:23
Trk::DiscLayerAttemptsCalculator::m_faceAttempts
unsigned int m_faceAttempts
number of face attampts
Definition: DiscLayerAttemptsCalculator.h:38
Trk::DiscLayerAttemptsCalculator::DiscLayerAttemptsCalculator
DiscLayerAttemptsCalculator(unsigned int faceAttempts, unsigned int maxAttempts)
Constructor.
Definition: DiscLayerAttemptsCalculator.h:26
Trk::DiscLayerAttemptsCalculator::m_maxLayerAttempts
unsigned int m_maxLayerAttempts
the max attempt number
Definition: DiscLayerAttemptsCalculator.h:39