EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BFieldMapUtils.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BFieldMapUtils.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017-2018 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
11 #include "Acts/Utilities/Units.hpp"
14 
15 #include <vector>
16 
20 
21 namespace Acts {
22 
23 class SolenoidBField;
24 
68 fieldMapperRZ(const std::function<size_t(std::array<size_t, 2> binsRZ,
69  std::array<size_t, 2> nBinsRZ)>&
70  localToGlobalBin,
71  std::vector<double> rPos, std::vector<double> zPos,
72  std::vector<Acts::Vector2D> bField,
73  double lengthUnit = UnitConstants::mm,
74  double BFieldUnit = UnitConstants::T, bool firstQuadrant = false);
75 
129 fieldMapperXYZ(const std::function<size_t(std::array<size_t, 3> binsXYZ,
130  std::array<size_t, 3> nBinsXYZ)>&
131  localToGlobalBin,
132  std::vector<double> xPos, std::vector<double> yPos,
133  std::vector<double> zPos, std::vector<Acts::Vector3D> bField,
134  double lengthUnit = UnitConstants::mm,
135  double BFieldUnit = UnitConstants::T, bool firstOctant = false);
136 
150 solenoidFieldMapper(std::pair<double, double> rlim,
151  std::pair<double, double> zlim,
152  std::pair<size_t, size_t> nbins,
153  const SolenoidBField& field);
154 
155 } // namespace Acts