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
HomogeneousSurfaceMaterial.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file HomogeneousSurfaceMaterial.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
15
#include <cstddef>
16
#include <iosfwd>
17
18
namespace
Acts {
19
24
class
HomogeneousSurfaceMaterial
:
public
ISurfaceMaterial
{
25
public
:
27
HomogeneousSurfaceMaterial
() =
default
;
28
34
HomogeneousSurfaceMaterial
(
const
MaterialSlab
& full,
double
splitFactor = 1.,
35
MappingType
mappingType
=
MappingType::Default
);
36
40
HomogeneousSurfaceMaterial
(
const
HomogeneousSurfaceMaterial
& hsm) =
default
;
41
45
HomogeneousSurfaceMaterial
(
HomogeneousSurfaceMaterial
&& hsm) =
default
;
46
48
~HomogeneousSurfaceMaterial
()
override
=
default
;
49
53
HomogeneousSurfaceMaterial
&
operator=
(
const
HomogeneousSurfaceMaterial
& hsm) =
54
default
;
55
59
HomogeneousSurfaceMaterial
&
operator=
(
HomogeneousSurfaceMaterial
&& hsm) =
60
default
;
61
66
HomogeneousSurfaceMaterial
&
operator*=
(
double
scale)
final
;
67
71
bool
operator==
(
const
HomogeneousSurfaceMaterial
& hsm)
const
;
72
76
const
MaterialSlab
&
materialSlab
(
const
Vector2
& lp)
const
final
;
77
81
const
MaterialSlab
&
materialSlab
(
const
Vector3
& gp)
const
final
;
82
86
const
MaterialSlab
&
materialSlab
(
size_t
bin0,
size_t
bin1)
const
final
;
87
89
using
ISurfaceMaterial::materialSlab
;
90
92
using
ISurfaceMaterial::factor
;
93
97
std::ostream&
toStream
(std::ostream& sl)
const
final
;
98
99
private
:
101
MaterialSlab
m_fullMaterial
=
MaterialSlab
();
102
};
103
104
inline
const
MaterialSlab
&
HomogeneousSurfaceMaterial::materialSlab
(
105
const
Vector2
&
/*lp*/
)
const
{
106
return
(
m_fullMaterial
);
107
}
108
109
inline
const
MaterialSlab
&
HomogeneousSurfaceMaterial::materialSlab
(
110
const
Vector3
&
/*gp*/
)
const
{
111
return
(
m_fullMaterial
);
112
}
113
114
inline
const
MaterialSlab
&
HomogeneousSurfaceMaterial::materialSlab
(
115
size_t
/*ib0*/
,
size_t
/*ib1*/
)
const
{
116
return
(
m_fullMaterial
);
117
}
118
119
inline
bool
HomogeneousSurfaceMaterial::operator==
(
120
const
HomogeneousSurfaceMaterial
& hsm)
const
{
121
return
(
m_fullMaterial
== hsm.
m_fullMaterial
);
122
}
123
124
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Material
HomogeneousSurfaceMaterial.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:33
using
1.8.2 with
sPHENIX GitHub integration