ATLAS Offline Software
Loading...
Searching...
No Matches
MappingTest.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// MappingTest.h, (c) ATLAS Detector software
8
9#ifndef TRKDETDESCRUNITTESTS_MAPPINGTEST_H
10#define TRKDETDESCRUNITTESTS_MAPPINGTEST_H
11
12// Athena & Gaudi includes
13#include "GaudiKernel/ServiceHandle.h"
14#include "GaudiKernel/ToolHandle.h"
15// Trk includes
18
19class TTree;
20
21namespace Trk {
22
23 class TrackingGeometry;
24
25
32
34 public:
35
37 using Trk::TrkDetDescrUnitTestBase::TrkDetDescrUnitTestBase;
38
39 /* specify the test here */
40 StatusCode runTest();
41
42 /* initialize the test, i.e. retrieve the TrackingGeometry Svc */
43 StatusCode initializeTest();
44
45 /* book the TTree branches */
46 StatusCode bookTree();
47
48 private:
49 bool m_executed = false;
50
52 {this, "TrackingGeometrySvc", "TrackingGeometrySvc/AtlasTrackingGeometrySvc",
53 "Service handle for retrieving the TrackingGeometry"};
55 std::string m_trackingGeometryName = "AtlasTrackingGeometry";
56
57 Gaudi::Property<double> m_etaCutOff
58 {this, "EtaCutOff", 6.0, "do not map beyond this point"};
59 Gaudi::Property<std::string> m_mappingVolumeName
60 {this, "HighestVolume", "InDet::Detectors::Pixel::Barrel",
61 "only map within this volume"};
62
63 Gaudi::Property<std::string> m_mappingTreeName
64 {this, "MappingTreeName", "LayerMappingTest"};
65 Gaudi::Property<std::string> m_mappingTreeDescription
66 {this, "MappingTreeDescription", "Test Algorithm for Layer - 3D point association"};
67 TTree* m_mappingTree = nullptr;
68
73
81
82 TTree* m_unmappedTree = nullptr;
87
88 };
89}
90
91#endif
Test to build the TrackingGeometry and try to map all points to layers.
Definition MappingTest.h:33
StatusCode runTest()
TTree * m_unmappedTree
Definition MappingTest.h:82
float m_mappingPositionY
Definition MappingTest.h:70
Gaudi::Property< std::string > m_mappingVolumeName
Definition MappingTest.h:60
ServiceHandle< Trk::ITrackingGeometrySvc > m_trackingGeometrySvc
Definition MappingTest.h:52
StatusCode initializeTest()
StatusCode bookTree()
Gaudi::Property< std::string > m_mappingTreeDescription
Definition MappingTest.h:66
float m_assignedPositionZ
Definition MappingTest.h:76
float m_unmappedPositionZ
Definition MappingTest.h:85
float m_unmappedPositionX
Definition MappingTest.h:83
Gaudi::Property< std::string > m_mappingTreeName
Definition MappingTest.h:64
float m_assignmentDistance
Definition MappingTest.h:80
bool m_executed
Make sure it only runs once.
Definition MappingTest.h:49
float m_mappingPositionX
Definition MappingTest.h:69
float m_assignedCorrection
Definition MappingTest.h:78
float m_mappingPositionR
Definition MappingTest.h:72
float m_assignedPositionY
Definition MappingTest.h:75
TTree * m_mappingTree
Definition MappingTest.h:67
float m_assignedPositionR
Definition MappingTest.h:77
float m_mappingPositionZ
Definition MappingTest.h:71
float m_unmappedPositionY
Definition MappingTest.h:84
const TrackingGeometry * m_trackingGeometry
The TrackingGeometry to be retrieved.
Definition MappingTest.h:54
Gaudi::Property< double > m_etaCutOff
Definition MappingTest.h:58
std::string m_trackingGeometryName
The Name of the TrackingGeometry.
Definition MappingTest.h:55
float m_unmappedPositionR
Definition MappingTest.h:86
float m_assignedPositionX
Definition MappingTest.h:74
The TrackingGeometry class is the owner of the constructed TrackingVolumes.
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.