ATLAS Offline Software
Loading...
Searching...
No Matches
SurfaceIntersectionTest.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6// IntersectionTest.h, (c) ATLAS Detector software
8
9#ifndef TRKDETDESCRUNITTESTS_SURFACEINTERSECTIONTEST_H
10#define TRKDETDESCRUNITTESTS_SURFACEINTERSECTIONTEST_H
11
12// Athena & Gaudi includes
13#include "GaudiKernel/ServiceHandle.h"
14#include "GaudiKernel/ToolHandle.h"
15// Trk includes
18
19
20namespace Trk {
21
28
30 public:
31
33 using TrkDetDescrUnitTestBase::TrkDetDescrUnitTestBase;
34
35 /* finalize */
36 StatusCode finalize();
37
38 /* specify the test here */
39 StatusCode runTest();
40
42 StatusCode initializeTest();
43
44 private:
45
46 ToolHandle<ISurfaceBuilder> m_surfaceBuilder{this, "SurfaceBuilder", ""};
47
48 Gaudi::Property<size_t> m_testsPerSurface
49 {this, "NumberOfTestsPerSurface", 100};
50 size_t m_eventCounter = 0;
51
52 std::vector<size_t> m_surfaces = std::vector<size_t>(6, 0);
53 std::vector<size_t> m_surfaceAttempts = std::vector<size_t>(6, 0);
54 std::vector<size_t> m_surfaceSuccessful = std::vector<size_t>(6, 0);
55 std::vector<std::string> m_surfaceNames = std::vector<std::string>(6, "");
56 std::vector<bool> m_surfaceNamesSet = std::vector<bool>(6, false);
57
58 Gaudi::Property<bool> m_writeTTree{this, "WriteTTree", true};
59 std::string m_treeFolder = "/val/";
60
61 };
62}
63
64#endif
Gaudi::Property< bool > m_writeTTree
StatusCode initializeTest()
initialize the test, i.e.
ToolHandle< ISurfaceBuilder > m_surfaceBuilder
std::vector< size_t > m_surfaceAttempts
std::vector< size_t > m_surfaceSuccessful
Gaudi::Property< size_t > m_testsPerSurface
std::vector< std::string > m_surfaceNames
Base class for all unit tests in the TrkDetDescr package, gives access to gaussian and flat random nu...
Ensure that the ATLAS eigen extensions are properly loaded.