ECCE @ EIC Software
Reference for
ECCE @ 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/MaterialProperties.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
MaterialPropertiesVector
fullProperties,
41
double
splitFactor = 0.);
42
54
BinnedSurfaceMaterial
(
const
BinUtility
& binUtility,
55
MaterialPropertiesMatrix
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
MaterialPropertiesMatrix
&
fullMaterial
()
const
;
87
89
const
MaterialProperties
&
materialProperties
(
const
Vector2D
& lp)
const
final
;
90
92
const
MaterialProperties
&
materialProperties
(
const
Vector3D
& gp)
const
final
;
93
95
const
MaterialProperties
&
materialProperties
(
size_t
bin0,
96
size_t
bin1)
const
final
;
97
99
std::ostream&
toStream
(std::ostream& sl)
const
final
;
100
101
private
:
103
BinUtility
m_binUtility
;
104
106
MaterialPropertiesMatrix
m_fullMaterial
;
107
};
108
109
inline
const
BinUtility
&
BinnedSurfaceMaterial::binUtility
()
const
{
110
return
(
m_binUtility
);
111
}
112
113
inline
const
MaterialPropertiesMatrix
&
BinnedSurfaceMaterial::fullMaterial
()
114
const
{
115
return
m_fullMaterial
;
116
}
117
118
inline
const
MaterialProperties
&
BinnedSurfaceMaterial::materialProperties
(
119
size_t
bin0,
size_t
bin1)
const
{
120
return
m_fullMaterial
[bin1][bin0];
121
}
122
}
// namespace Acts
acts
blob
master
Core
include
Acts
Material
BinnedSurfaceMaterial.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration