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
BinnedSurfaceMaterial.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file BinnedSurfaceMaterial.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
#include <vector>
19
20
namespace
Acts {
21
27
28
class
BinnedSurfaceMaterial
:
public
ISurfaceMaterial
{
29
public
:
31
BinnedSurfaceMaterial
() =
delete
;
32
45
BinnedSurfaceMaterial
(
const
BinUtility
&
binUtility
,
46
MaterialSlabVector
fullProperties,
47
double
splitFactor = 0.,
48
MappingType
mappingType
=
MappingType::Default
);
49
62
BinnedSurfaceMaterial
(
const
BinUtility
& binUtility,
63
MaterialSlabMatrix
fullProperties,
64
double
splitFactor = 0.,
65
MappingType
mappingType
=
MappingType::Default
);
66
70
BinnedSurfaceMaterial
(
BinnedSurfaceMaterial
&& bsm) =
default
;
71
75
BinnedSurfaceMaterial
(
const
BinnedSurfaceMaterial
& bsm) =
default
;
76
78
BinnedSurfaceMaterial
&
operator=
(
BinnedSurfaceMaterial
&& bsm) =
default
;
79
81
BinnedSurfaceMaterial
&
operator=
(
const
BinnedSurfaceMaterial
& bsm) =
default
;
82
84
~BinnedSurfaceMaterial
()
override
=
default
;
85
89
BinnedSurfaceMaterial
&
operator*=
(
double
scale)
final
;
90
92
const
BinUtility
&
binUtility
()
const
;
93
95
const
MaterialSlabMatrix
&
fullMaterial
()
const
;
96
98
const
MaterialSlab
&
materialSlab
(
const
Vector2
& lp)
const
final
;
99
101
const
MaterialSlab
&
materialSlab
(
const
Vector3
& gp)
const
final
;
102
104
const
MaterialSlab
&
materialSlab
(
size_t
bin0,
size_t
bin1)
const
final
;
105
107
std::ostream&
toStream
(std::ostream& sl)
const
final
;
108
109
private
:
111
BinUtility
m_binUtility
;
112
114
MaterialSlabMatrix
m_fullMaterial
;
115
};
116
117
inline
const
BinUtility
&
BinnedSurfaceMaterial::binUtility
()
const
{
118
return
(
m_binUtility
);
119
}
120
121
inline
const
MaterialSlabMatrix
&
BinnedSurfaceMaterial::fullMaterial
()
const
{
122
return
m_fullMaterial
;
123
}
124
125
inline
const
MaterialSlab
&
BinnedSurfaceMaterial::materialSlab
(
126
size_t
bin0,
size_t
bin1)
const
{
127
return
m_fullMaterial
[bin1][bin0];
128
}
129
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Material
BinnedSurfaceMaterial.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:33
using
1.8.2 with
sPHENIX GitHub integration