EIC 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 
17 
18 #include <stdexcept>
19 
20 namespace Acts {
21 
24  std::vector<std::pair<Acts::MaterialSlab, std::vector<Acts::Vector3D>>>;
25 
27 using Grid2D =
29 using Grid3D =
31 using MaterialGrid2D =
33 using MaterialGrid3D =
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 
80  const BinUtility& bins,
81  std::function<Acts::Vector2D(Acts::Vector3D)>& transfoGlobalToLocal);
82 
92  const BinUtility& bins,
93  std::function<Acts::Vector3D(Acts::Vector3D)>& transfoGlobalToLocal);
94 
105  Grid2D& grid, const Acts::RecordedMaterialVolumePoint& mPoints,
106  std::function<Acts::Vector2D(Acts::Vector3D)>& transfoGlobalToLocal);
107 
118  Grid3D& grid, const Acts::RecordedMaterialVolumePoint& mPoints,
119  std::function<Acts::Vector3D(Acts::Vector3D)>& transfoGlobalToLocal);
120 
121 } // namespace Acts