EIC Software
Reference for
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
TrackingGeometryBuilder.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackingGeometryBuilder.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
9
#pragma once
10
11
#include "
Acts/Geometry/GeometryContext.hpp
"
12
#include "
Acts/Geometry/ITrackingGeometryBuilder.hpp
"
13
#include "
Acts/Geometry/ITrackingVolumeBuilder.hpp
"
14
#include "
Acts/Geometry/ITrackingVolumeHelper.hpp
"
15
#include "
Acts/Utilities/Definitions.hpp
"
16
#include "
Acts/Utilities/Logger.hpp
"
17
18
#include <functional>
19
#include <memory>
20
#include <vector>
21
22
namespace
Acts {
23
24
class
TrackingGeometry
;
25
class
IMaterialDecorator;
26
37
class
TrackingGeometryBuilder
:
public
ITrackingGeometryBuilder
{
38
public
:
41
struct
Config
{
43
std::vector<std::function<std::shared_ptr<TrackingVolume>(
44
const
GeometryContext
&
gctx
,
const
TrackingVolumePtr
&,
45
const
VolumeBoundsPtr
&)>>
46
trackingVolumeBuilders
;
47
49
std::shared_ptr<const ITrackingVolumeHelper>
trackingVolumeHelper
=
nullptr
;
50
52
std::shared_ptr<const IMaterialDecorator>
materialDecorator
=
nullptr
;
53
};
54
59
TrackingGeometryBuilder
(
const
Config
& cgbConfig,
60
std::unique_ptr<const Logger>
logger
=
61
getDefaultLogger
(
"TrackingGeometryBuilder"
,
62
Logging::INFO
));
63
65
~TrackingGeometryBuilder
()
override
=
default
;
66
72
std::unique_ptr<const TrackingGeometry>
trackingGeometry
(
73
const
GeometryContext
&
gctx
)
const
final
;
74
78
void
setConfiguration
(
const
Config
& cgbConfig);
79
82
Config
getConfiguration
()
const
;
83
86
void
setLogger
(std::unique_ptr<const Logger> newLogger);
87
88
private
:
90
Config
m_cfg
;
91
93
const
Logger
&
logger
()
const
{
return
*
m_logger
; }
94
96
std::unique_ptr<const Logger>
m_logger
;
97
};
98
99
inline
TrackingGeometryBuilder::Config
100
TrackingGeometryBuilder::getConfiguration
()
const
{
101
return
m_cfg
;
102
}
103
104
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Geometry
TrackingGeometryBuilder.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:23
using
1.8.2 with
EIC GitHub integration