Analysis Software
Documentation for sPHENIX simulation software
 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 
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 
32 using Grid2D =
34 using Grid3D =
36 using MaterialGrid2D =
38 using MaterialGrid3D =
40 
41 using MaterialGridAxisData = std::tuple<double, double, size_t>;
42 
53  MaterialGridAxisData gridAxis2);
54 
66  MaterialGridAxisData gridAxis2,
67  MaterialGridAxisData gridAxis3);
68 
75 std::function<double(Acts::Vector3)> globalToLocalFromBin(
77 
87  const BinUtility& bins,
88  std::function<Acts::Vector2(Acts::Vector3)>& transfoGlobalToLocal);
89 
99  const BinUtility& bins,
100  std::function<Acts::Vector3(Acts::Vector3)>& transfoGlobalToLocal);
101 
109 
117 
118 } // namespace Acts