EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MaterialMapUtils.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MaterialMapUtils.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019 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 
14 #include "Acts/Utilities/Units.hpp"
17 
18 #include <vector>
19 
23 
24 namespace Acts {
25 
57 MaterialMapper<detail::Grid<ActsVectorF<5>, detail::EquidistantAxis,
59 materialMapperRZ(const std::function<size_t(std::array<size_t, 2> binsRZ,
60  std::array<size_t, 2> nBinsRZ)>&
61  materialVectorToGridMapper,
62  std::vector<double> rPos, std::vector<double> zPos,
63  std::vector<Material> material,
64  double lengthUnit = UnitConstants::mm);
65 
107 MaterialMapper<detail::Grid<ActsVectorF<5>, detail::EquidistantAxis,
109 materialMapperXYZ(const std::function<size_t(std::array<size_t, 3> binsXYZ,
110  std::array<size_t, 3> nBinsXYZ)>&
111  materialVectorToGridMapper,
112  std::vector<double> xPos, std::vector<double> yPos,
113  std::vector<double> zPos, std::vector<Material> material,
114  double lengthUnit = UnitConstants::mm);
115 
116 } // namespace Acts