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
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/Material/ISurfaceMaterial.hpp
"
12
#include "
Acts/Material/MaterialProperties.hpp
"
13
#include "
Acts/Utilities/Definitions.hpp
"
14
15
namespace
Acts {
16
21
class
HomogeneousSurfaceMaterial
:
public
ISurfaceMaterial
{
22
public
:
24
HomogeneousSurfaceMaterial
() =
default
;
25
30
HomogeneousSurfaceMaterial
(
const
MaterialProperties
& full,
31
double
splitFactor = 1.);
32
36
HomogeneousSurfaceMaterial
(
const
HomogeneousSurfaceMaterial
& hsm) =
default
;
37
41
HomogeneousSurfaceMaterial
(
HomogeneousSurfaceMaterial
&& hsm) =
default
;
42
44
~HomogeneousSurfaceMaterial
()
override
=
default
;
45
49
HomogeneousSurfaceMaterial
&
operator=
(
const
HomogeneousSurfaceMaterial
& hsm) =
50
default
;
51
55
HomogeneousSurfaceMaterial
&
operator=
(
HomogeneousSurfaceMaterial
&& hsm) =
56
default
;
57
62
HomogeneousSurfaceMaterial
&
operator*=
(
double
scale
)
final
;
63
67
bool
operator==
(
const
HomogeneousSurfaceMaterial
& hsm)
const
;
68
72
const
MaterialProperties
&
materialProperties
(
const
Vector2D
& lp)
const
final
;
73
77
const
MaterialProperties
&
materialProperties
(
const
Vector3D
& gp)
const
final
;
78
85
const
MaterialProperties
&
materialProperties
(
size_t
ib0,
86
size_t
ib1)
const
final
;
87
89
using
ISurfaceMaterial::materialProperties
;
90
92
using
ISurfaceMaterial::factor
;
93
97
std::ostream&
toStream
(std::ostream& sl)
const
final
;
98
99
private
:
101
MaterialProperties
m_fullMaterial
=
MaterialProperties
();
102
};
103
104
inline
const
MaterialProperties
&
HomogeneousSurfaceMaterial::materialProperties
(
105
const
Vector2D
&
/*lp*/
)
const
{
106
return
(
m_fullMaterial
);
107
}
108
109
inline
const
MaterialProperties
&
HomogeneousSurfaceMaterial::materialProperties
(
110
const
Vector3D
&
/*gp*/
)
const
{
111
return
(
m_fullMaterial
);
112
}
113
114
inline
const
MaterialProperties
&
HomogeneousSurfaceMaterial::materialProperties
(
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
master
Core
include
Acts
Material
HomogeneousSurfaceMaterial.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration