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
AccumulatedSurfaceMaterial.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file AccumulatedSurfaceMaterial.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 <array>
12
#include <vector>
13
14
#include "
Acts/Material/AccumulatedMaterialProperties.hpp
"
15
#include "
Acts/Material/ISurfaceMaterial.hpp
"
16
#include "
Acts/Material/MaterialProperties.hpp
"
17
#include "
Acts/Utilities/BinUtility.hpp
"
18
#include "
Acts/Utilities/Definitions.hpp
"
19
20
namespace
Acts {
21
29
class
AccumulatedSurfaceMaterial
{
30
public
:
31
using
AccumulatedVector
= std::vector<AccumulatedMaterialProperties>;
32
using
AccumulatedMatrix
= std::vector<AccumulatedVector>;
33
37
AccumulatedSurfaceMaterial
(
double
splitFactor
= 0.);
38
49
AccumulatedSurfaceMaterial
(
const
BinUtility
&
binUtility
,
50
double
splitFactor
= 0.);
51
55
AccumulatedSurfaceMaterial
(
const
AccumulatedSurfaceMaterial
& asma) =
default
;
56
60
AccumulatedSurfaceMaterial
(
AccumulatedSurfaceMaterial
&& asma) =
default
;
61
65
AccumulatedSurfaceMaterial
&
operator=
(
AccumulatedSurfaceMaterial
&& asma) =
66
default
;
67
71
AccumulatedSurfaceMaterial
&
operator=
(
72
const
AccumulatedSurfaceMaterial
& asma) =
default
;
73
75
~AccumulatedSurfaceMaterial
() =
default
;
76
78
const
BinUtility
&
binUtility
()
const
;
79
86
std::array<size_t, 3>
accumulate
(
const
Vector2D
& lp,
87
const
MaterialProperties
& mp,
88
double
pathCorrection = 1.);
89
96
std::array<size_t, 3>
accumulate
(
const
Vector3D
& gp,
97
const
MaterialProperties
& mp,
98
double
pathCorrection = 1.);
99
105
void
trackAverage
(
const
std::vector<std::array<size_t, 3>>& trackBins = {},
106
bool
emptyHit =
false
);
107
112
void
trackAverage
(
const
Vector3D
& gp,
bool
emptyHit =
false
);
113
115
std::unique_ptr<const ISurfaceMaterial>
totalAverage
();
116
118
const
AccumulatedMatrix
&
accumulatedMaterial
()
const
;
119
121
double
splitFactor
()
const
;
122
123
private
:
125
BinUtility
m_binUtility
{};
126
128
double
m_splitFactor
{0.};
129
131
AccumulatedMatrix
m_accumulatedMaterial
;
132
};
133
134
inline
const
BinUtility
&
AccumulatedSurfaceMaterial::binUtility
()
const
{
135
return
(
m_binUtility
);
136
}
137
138
inline
const
AccumulatedSurfaceMaterial::AccumulatedMatrix
&
139
AccumulatedSurfaceMaterial::accumulatedMaterial
()
const
{
140
return
(
m_accumulatedMaterial
);
141
}
142
143
inline
double
AccumulatedSurfaceMaterial::splitFactor
()
const
{
144
return
m_splitFactor
;
145
}
146
}
// namespace Acts
acts
blob
master
Core
include
Acts
Material
AccumulatedSurfaceMaterial.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration