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
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 <stdexcept>
12
13
#include "
Acts/Material/AccumulatedVolumeMaterial.hpp
"
14
#include "
Acts/Material/MaterialProperties.hpp
"
15
#include "
Acts/Utilities/BinUtility.hpp
"
16
#include "
Acts/Utilities/Definitions.hpp
"
17
#include "
Acts/Utilities/detail/Axis.hpp
"
18
#include "
Acts/Utilities/detail/Grid.hpp
"
19
20
namespace
Acts {
21
22
using
RecordedMaterialPoint
=
23
std::vector<std::pair<Acts::MaterialProperties, Acts::Vector3D>>;
24
using
EAxis
=
Acts::detail::EquidistantAxis
;
25
using
Grid2D
=
26
Acts::detail::Grid<Acts::AccumulatedVolumeMaterial, EAxis, EAxis>
;
27
using
Grid3D
=
28
Acts::detail::Grid<Acts::AccumulatedVolumeMaterial, EAxis, EAxis, EAxis>
;
29
using
MaterialGrid2D
=
Acts::detail::Grid<Acts::ActsVectorF<5>
,
EAxis
,
EAxis
>;
30
using
MaterialGrid3D
=
31
Acts::detail::Grid<Acts::ActsVectorF<5>
,
EAxis
,
EAxis
,
EAxis
>;
32
42
Grid2D
createGrid
(std::array<double, 3> gridAxis1,
43
std::array<double, 3> gridAxis2);
44
55
Grid3D
createGrid
(std::array<double, 3> gridAxis1,
56
std::array<double, 3> gridAxis2,
57
std::array<double, 3> gridAxis3);
58
65
std::function<double(Acts::Vector3D)>
globalToLocalFromBin
(
66
Acts::BinningValue
& type);
67
76
Grid2D
createGrid2D
(
77
const
BinUtility
& bins,
78
std::function
<
Acts::Vector2D
(
Acts::Vector3D
)>& transfoGlobalToLocal);
79
88
Grid3D
createGrid3D
(
89
const
BinUtility
& bins,
90
std::function
<
Acts::Vector3D
(
Acts::Vector3D
)>& transfoGlobalToLocal);
91
101
MaterialGrid2D
mapMaterialPoints
(
102
Grid2D
& grid,
const
Acts::RecordedMaterialPoint
& mPoints,
103
std::function
<
Acts::Vector2D
(
Acts::Vector3D
)>& transfoGlobalToLocal);
104
114
MaterialGrid3D
mapMaterialPoints
(
115
Grid3D
& grid,
const
Acts::RecordedMaterialPoint
& mPoints,
116
std::function
<
Acts::Vector3D
(
Acts::Vector3D
)>& transfoGlobalToLocal);
117
118
}
// namespace Acts
acts
blob
master
Core
include
Acts
Material
MaterialGridHelper.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration