ECCE @ 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 
11 #include <stdexcept>
12 
19 
20 namespace Acts {
21 
23  std::vector<std::pair<Acts::MaterialProperties, Acts::Vector3D>>;
25 using Grid2D =
27 using Grid3D =
30 using MaterialGrid3D =
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 
77  const BinUtility& bins,
78  std::function<Acts::Vector2D(Acts::Vector3D)>& transfoGlobalToLocal);
79 
89  const BinUtility& bins,
90  std::function<Acts::Vector3D(Acts::Vector3D)>& transfoGlobalToLocal);
91 
102  Grid2D& grid, const Acts::RecordedMaterialPoint& mPoints,
103  std::function<Acts::Vector2D(Acts::Vector3D)>& transfoGlobalToLocal);
104 
115  Grid3D& grid, const Acts::RecordedMaterialPoint& mPoints,
116  std::function<Acts::Vector3D(Acts::Vector3D)>& transfoGlobalToLocal);
117 
118 } // namespace Acts