ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TrackingGeometry.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackingGeometry.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-2018 CERN for the benefit of the Acts project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
10
// TrackingGeometry.hpp, Acts project
12
13
#pragma once
14
15
#include "
Acts/Geometry/GeometryContext.hpp
"
16
#include "
Acts/Geometry/GeometryID.hpp
"
17
#include "
Acts/Utilities/Definitions.hpp
"
18
19
#include <functional>
20
#include <map>
21
#include <memory>
22
#include <vector>
23
24
namespace
Acts {
25
26
class
TrackingVolume;
27
class
Layer;
28
class
Surface
;
29
class
PerigeeSurface;
30
class
IMaterialDecorator;
31
32
using
TrackingVolumePtr
= std::shared_ptr<const TrackingVolume>;
33
using
MutableTrackingVolumePtr
= std::shared_ptr<TrackingVolume>;
34
43
class
TrackingGeometry
{
45
friend
class
TrackingGeometryBuilder
;
46
47
public
:
53
TrackingGeometry
(
const
MutableTrackingVolumePtr
& highestVolume,
54
const
IMaterialDecorator
* materialDecorator =
nullptr
);
55
57
~TrackingGeometry
();
58
61
const
TrackingVolume
*
highestTrackingVolume
()
const
;
62
69
const
TrackingVolume
*
lowestTrackingVolume
(
const
GeometryContext
&
gctx
,
70
const
Vector3D
& gp)
const
;
71
77
const
TrackingVolume
*
trackingVolume
(
const
std::string&
name
)
const
;
78
85
const
Layer
*
associatedLayer
(
const
GeometryContext
&
gctx
,
86
const
Vector3D
& gp)
const
;
87
91
void
registerBeamTube
(std::shared_ptr<const PerigeeSurface> beam);
92
99
const
Surface
*
getBeamline
()
const
;
100
105
void
visitSurfaces
(
106
const
std::function
<
void
(
const
Acts::Surface
*)>& visitor)
const
;
107
108
private
:
110
TrackingVolumePtr
m_world
;
111
std::shared_ptr<const PerigeeSurface>
m_beam
;
112
114
std::map<std::string, const TrackingVolume*>
m_trackingVolumes
;
115
};
116
117
}
// namespace Acts
acts
blob
master
Core
include
Acts
Geometry
TrackingGeometry.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration