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 ActsExamples {
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::UnitConstants::mm,
68  double BFieldUnit = Acts::UnitConstants::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::UnitConstants::mm,
122  double BFieldUnit = Acts::UnitConstants::T,
123  size_t nPoints = 1000, 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::UnitConstants::mm,
169  double BFieldUnit = Acts::UnitConstants::T,
170  bool firstOctant = false);
171 
214 fieldMapperXYZ(std::function<size_t(std::array<size_t, 3> binsXYZ,
215  std::array<size_t, 3> nBinsXYZ)>
216  localToGlobalBin,
217  std::string fieldMapFile = "", std::string treeName = "",
218  double lengthUnit = Acts::UnitConstants::mm,
219  double BFieldUnit = Acts::UnitConstants::T,
220  bool firstOctant = false);
221 } // namespace root
222 
223 } // namespace BField
224 
225 } // namespace ActsExamples