EIC Software
Reference for
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
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/Material/AccumulatedVolumeMaterial.hpp
"
12
#include "
Acts/Material/MaterialSlab.hpp
"
13
#include "
Acts/Utilities/BinUtility.hpp
"
14
#include "
Acts/Utilities/Definitions.hpp
"
15
#include "
Acts/Utilities/detail/Axis.hpp
"
16
#include "
Acts/Utilities/detail/Grid.hpp
"
17
18
#include <stdexcept>
19
20
namespace
Acts {
21
23
using
RecordedMaterialVolumePoint
=
24
std::vector<std::pair<Acts::MaterialSlab, std::vector<Acts::Vector3D>>>;
25
26
using
EAxis
=
Acts::detail::EquidistantAxis
;
27
using
Grid2D
=
28
Acts::detail::Grid<Acts::AccumulatedVolumeMaterial, EAxis, EAxis>
;
29
using
Grid3D
=
30
Acts::detail::Grid<Acts::AccumulatedVolumeMaterial, EAxis, EAxis, EAxis>
;
31
using
MaterialGrid2D
=
32
Acts::detail::Grid<Acts::Material::ParametersVector, EAxis, EAxis>
;
33
using
MaterialGrid3D
=
34
Acts::detail::Grid<Acts::Material::ParametersVector, EAxis, EAxis, EAxis>
;
35
45
Grid2D
createGrid
(std::array<double, 3> gridAxis1,
46
std::array<double, 3> gridAxis2);
47
58
Grid3D
createGrid
(std::array<double, 3> gridAxis1,
59
std::array<double, 3> gridAxis2,
60
std::array<double, 3> gridAxis3);
61
68
std::function<double(Acts::Vector3D)>
globalToLocalFromBin
(
69
Acts::BinningValue
& type);
70
79
Grid2D
createGrid2D
(
80
const
BinUtility
&
bins
,
81
std::function<
Acts::Vector2D
(
Acts::Vector3D
)>& transfoGlobalToLocal);
82
91
Grid3D
createGrid3D
(
92
const
BinUtility
& bins,
93
std::function<
Acts::Vector3D
(
Acts::Vector3D
)>& transfoGlobalToLocal);
94
104
MaterialGrid2D
mapMaterialPoints
(
105
Grid2D
& grid,
const
Acts::RecordedMaterialVolumePoint
& mPoints,
106
std::function<
Acts::Vector2D
(
Acts::Vector3D
)>& transfoGlobalToLocal);
107
117
MaterialGrid3D
mapMaterialPoints
(
118
Grid3D
& grid,
const
Acts::RecordedMaterialVolumePoint
& mPoints,
119
std::function<
Acts::Vector3D
(
Acts::Vector3D
)>& transfoGlobalToLocal);
120
121
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Material
MaterialGridHelper.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:23
using
1.8.2 with
EIC GitHub integration