ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BFieldUtils.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BFieldUtils.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017 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 
13 #include "Acts/Utilities/Units.hpp"
16 
17 namespace FW {
18 
19 namespace BField {
20 
21 namespace txt {
63 fieldMapperRZ(std::function<size_t(std::array<size_t, 2> binsRZ,
64  std::array<size_t, 2> nBinsRZ)>
65  localToGlobalBin,
66  std::string fieldMapFile = "",
67  double lengthUnit = Acts::units::_mm,
68  double BFieldUnit = Acts::units::_T, size_t nPoints = 1000,
69  bool firstOctant = false);
70 
117 fieldMapperXYZ(std::function<size_t(std::array<size_t, 3> binsXYZ,
118  std::array<size_t, 3> nBinsXYZ)>
119  localToGlobalBin,
120  std::string fieldMapFile = "",
121  double lengthUnit = Acts::units::_mm,
122  double BFieldUnit = Acts::units::_T, size_t nPoints = 1000,
123  bool firstOctant = false);
124 } // namespace txt
125 
126 namespace root {
164 fieldMapperRZ(std::function<size_t(std::array<size_t, 2> binsRZ,
165  std::array<size_t, 2> nBinsRZ)>
166  localToGlobalBin,
167  std::string fieldMapFile = "", std::string treeName = "",
168  double lengthUnit = Acts::units::_mm,
169  double BFieldUnit = Acts::units::_T, bool firstOctant = false);
170 
213 fieldMapperXYZ(std::function<size_t(std::array<size_t, 3> binsXYZ,
214  std::array<size_t, 3> nBinsXYZ)>
215  localToGlobalBin,
216  std::string fieldMapFile = "", std::string treeName = "",
217  double lengthUnit = Acts::units::_mm,
218  double BFieldUnit = Acts::units::_T, bool firstOctant = false);
219 } // namespace root
220 
221 } // namespace BField
222 
223 } // namespace FW