Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PassiveLayerBuilder.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PassiveLayerBuilder.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-2020 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/ILayerBuilder.hpp
"
13
#include "
Acts/Utilities/Logger.hpp
"
14
15
#include <memory>
16
#include <string>
17
#include <vector>
18
19
namespace
Acts {
20
21
class
ISurfaceMaterial;
22
28
29
class
PassiveLayerBuilder
:
public
ILayerBuilder
{
30
public
:
34
struct
Config
{
36
std::string
layerIdentification
;
37
38
std::vector<double>
centralLayerRadii
;
39
std::vector<double>
centralLayerHalflengthZ
;
40
std::vector<double>
centralLayerThickness
;
41
std::vector<std::shared_ptr<const ISurfaceMaterial>>
42
centralLayerMaterial
;
43
44
// the layers at p/e side
45
std::vector<double>
posnegLayerPositionZ
;
46
std::vector<double>
posnegLayerRmin
;
47
std::vector<double>
posnegLayerRmax
;
48
std::vector<double>
posnegLayerThickness
;
49
std::vector<std::shared_ptr<const ISurfaceMaterial>>
50
posnegLayerMaterial
;
51
};
52
57
PassiveLayerBuilder
(
const
Config
& plConfig,
58
std::unique_ptr<const Logger>
logger
=
getDefaultLogger
(
59
"PassiveLayerBuilder"
,
Logging::INFO
));
60
62
~PassiveLayerBuilder
()
override
=
default
;
63
70
const
LayerVector
negativeLayers
(
const
GeometryContext
&
gctx
)
const override
;
71
78
const
LayerVector
centralLayers
(
const
GeometryContext
&
gctx
)
const override
;
79
86
const
LayerVector
positiveLayers
(
const
GeometryContext
&
gctx
)
const override
;
87
90
const
std::string
&
identification
()
const override
{
91
return
m_cfg
.
layerIdentification
;
92
}
93
98
void
setConfiguration
(
const
Config
& plConfig);
99
101
Config
getConfiguration
()
const
;
102
106
void
setLogger
(std::unique_ptr<const Logger> newLogger);
107
108
protected
:
109
Config
m_cfg
;
110
111
private
:
119
const
LayerVector
endcapLayers
(
const
GeometryContext
&
gctx
,
int
side)
const
;
120
121
const
Logger
&
logger
()
const
{
return
*
m_logger
; }
122
124
std::unique_ptr<const Logger>
m_logger
;
125
};
126
127
inline
PassiveLayerBuilder::Config
PassiveLayerBuilder::getConfiguration
()
128
const
{
129
return
m_cfg
;
130
}
131
132
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Geometry
PassiveLayerBuilder.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:33
using
1.8.2 with
sPHENIX GitHub integration