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
ProtoSurfaceMaterial.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ProtoSurfaceMaterial.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/Definitions/Algebra.hpp
"
12
#include "
Acts/Material/ISurfaceMaterial.hpp
"
13
#include "
Acts/Material/MaterialSlab.hpp
"
14
#include "
Acts/Utilities/BinUtility.hpp
"
15
16
#include <cstddef>
17
#include <iosfwd>
18
19
namespace
Acts {
20
29
30
class
ProtoSurfaceMaterial
:
public
ISurfaceMaterial
{
31
public
:
33
ProtoSurfaceMaterial
() =
default
;
34
40
ProtoSurfaceMaterial
(
const
BinUtility
&
binUtility
,
41
MappingType
mappingType
=
MappingType::Default
);
42
46
ProtoSurfaceMaterial
(
const
ProtoSurfaceMaterial
& smproxy) =
default
;
47
51
ProtoSurfaceMaterial
(
ProtoSurfaceMaterial
&& smproxy) =
default
;
52
54
~ProtoSurfaceMaterial
()
override
=
default
;
55
59
ProtoSurfaceMaterial
&
operator=
(
const
ProtoSurfaceMaterial
& smproxy) =
60
default
;
61
65
ProtoSurfaceMaterial
&
operator=
(
ProtoSurfaceMaterial
&& smproxy) =
default
;
66
70
ProtoSurfaceMaterial
&
operator*=
(
double
scale)
final
;
71
73
const
BinUtility
&
binUtility
()
const
;
74
81
const
MaterialSlab
&
materialSlab
(
const
Vector2
& lp)
const
final
;
82
89
const
MaterialSlab
&
materialSlab
(
const
Vector3
& gp)
const
final
;
90
97
const
MaterialSlab
&
materialSlab
(
size_t
ib0,
size_t
ib1)
const
final
;
98
100
std::ostream&
toStream
(std::ostream& sl)
const
final
;
101
102
private
:
106
BinUtility
m_binUtility
;
107
109
MaterialSlab
m_materialSlab
;
110
};
111
}
// namespace Acts
112
113
inline
const
Acts::MaterialSlab
&
Acts::ProtoSurfaceMaterial::materialSlab
(
114
const
Vector2
&
/*lp*/
)
const
{
115
return
(
m_materialSlab
);
116
}
117
118
inline
const
Acts::MaterialSlab
&
Acts::ProtoSurfaceMaterial::materialSlab
(
119
const
Vector3
&
/*gp*/
)
const
{
120
return
(m_materialSlab);
121
}
122
123
inline
const
Acts::MaterialSlab
&
Acts::ProtoSurfaceMaterial::materialSlab
(
124
size_t
/*ib0*/
,
size_t
/*ib1*/
)
const
{
125
return
(m_materialSlab);
126
}
127
128
inline
const
Acts::BinUtility
&
Acts::ProtoSurfaceMaterial::binUtility
()
const
{
129
return
m_binUtility;
130
}
acts
blob
sPHENIX
Core
include
Acts
Material
ProtoSurfaceMaterial.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:33
using
1.8.2 with
sPHENIX GitHub integration