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
MaterialGridHelper.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MaterialGridHelper.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 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/AccumulatedVolumeMaterial.hpp
"
13
#include "
Acts/Material/Material.hpp
"
14
#include "
Acts/Utilities/BinUtility.hpp
"
15
#include "
Acts/Utilities/BinningType.hpp
"
16
#include "
Acts/Utilities/detail/Axis.hpp
"
17
#include "
Acts/Utilities/detail/AxisFwd.hpp
"
18
#include "
Acts/Utilities/detail/Grid.hpp
"
19
20
#include <array>
21
#include <cstddef>
22
#include <functional>
23
#include <tuple>
24
#include <utility>
25
#include <vector>
26
27
namespace
Acts {
28
29
class
MaterialSlab;
30
31
using
EAxis
=
Acts::detail::EquidistantAxis
;
32
using
Grid2D
=
33
Acts::detail::Grid<Acts::AccumulatedVolumeMaterial, EAxis, EAxis>
;
34
using
Grid3D
=
35
Acts::detail::Grid<Acts::AccumulatedVolumeMaterial, EAxis, EAxis, EAxis>
;
36
using
MaterialGrid2D
=
37
Acts::detail::Grid<Acts::Material::ParametersVector, EAxis, EAxis>
;
38
using
MaterialGrid3D
=
39
Acts::detail::Grid<Acts::Material::ParametersVector, EAxis, EAxis, EAxis>
;
40
41
using
MaterialGridAxisData
= std::tuple<double, double, size_t>;
42
52
Grid2D
createGrid
(
MaterialGridAxisData
gridAxis1,
53
MaterialGridAxisData
gridAxis2);
54
65
Grid3D
createGrid
(
MaterialGridAxisData
gridAxis1,
66
MaterialGridAxisData
gridAxis2,
67
MaterialGridAxisData
gridAxis3);
68
75
std::function<double(Acts::Vector3)>
globalToLocalFromBin
(
76
Acts::BinningValue
&
type
);
77
86
Grid2D
createGrid2D
(
87
const
BinUtility
&
bins
,
88
std::function<
Acts::Vector2
(
Acts::Vector3
)>& transfoGlobalToLocal);
89
98
Grid3D
createGrid3D
(
99
const
BinUtility
& bins,
100
std::function<
Acts::Vector3
(
Acts::Vector3
)>& transfoGlobalToLocal);
101
108
MaterialGrid2D
mapMaterialPoints
(
Grid2D
&
grid
);
109
116
MaterialGrid3D
mapMaterialPoints
(
Grid3D
&
grid
);
117
118
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Material
MaterialGridHelper.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:33
using
1.8.2 with
sPHENIX GitHub integration