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
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
#include "
Acts/Material/ISurfaceMaterial.hpp
"
11
#include "
Acts/Material/MaterialSlab.hpp
"
12
#include "
Acts/Utilities/BinUtility.hpp
"
13
#include "
Acts/Utilities/Definitions.hpp
"
14
15
namespace
Acts {
16
22
23
class
BinnedSurfaceMaterial
:
public
ISurfaceMaterial
{
24
public
:
26
BinnedSurfaceMaterial
() =
delete
;
27
39
BinnedSurfaceMaterial
(
const
BinUtility
&
binUtility
,
40
MaterialSlabVector
fullProperties,
41
double
splitFactor = 0.);
42
54
BinnedSurfaceMaterial
(
const
BinUtility
& binUtility,
55
MaterialSlabMatrix
fullProperties,
56
double
splitFactor = 0.);
57
61
BinnedSurfaceMaterial
(
BinnedSurfaceMaterial
&& bsm) =
default
;
62
66
BinnedSurfaceMaterial
(
const
BinnedSurfaceMaterial
& bsm) =
default
;
67
69
BinnedSurfaceMaterial
&
operator=
(
BinnedSurfaceMaterial
&& bsm) =
default
;
70
72
BinnedSurfaceMaterial
&
operator=
(
const
BinnedSurfaceMaterial
& bsm) =
default
;
73
75
~BinnedSurfaceMaterial
()
override
=
default
;
76
80
BinnedSurfaceMaterial
&
operator*=
(
double
scale)
final
;
81
83
const
BinUtility
&
binUtility
()
const
;
84
86
const
MaterialSlabMatrix
&
fullMaterial
()
const
;
87
89
const
MaterialSlab
&
materialSlab
(
const
Vector2D
& lp)
const
final
;
90
92
const
MaterialSlab
&
materialSlab
(
const
Vector3D
& gp)
const
final
;
93
95
const
MaterialSlab
&
materialSlab
(
size_t
bin0,
size_t
bin1)
const
final
;
96
98
std::ostream&
toStream
(std::ostream& sl)
const
final
;
99
100
private
:
102
BinUtility
m_binUtility
;
103
105
MaterialSlabMatrix
m_fullMaterial
;
106
};
107
108
inline
const
BinUtility
&
BinnedSurfaceMaterial::binUtility
()
const
{
109
return
(
m_binUtility
);
110
}
111
112
inline
const
MaterialSlabMatrix
&
BinnedSurfaceMaterial::fullMaterial
()
const
{
113
return
m_fullMaterial
;
114
}
115
116
inline
const
MaterialSlab
&
BinnedSurfaceMaterial::materialSlab
(
117
size_t
bin0,
size_t
bin1)
const
{
118
return
m_fullMaterial
[bin1][bin0];
119
}
120
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Material
BinnedSurfaceMaterial.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:23
using
1.8.2 with
EIC GitHub integration