Project
Loading...
Searching...
No Matches
MagneticFieldAdapter.h
Go to the documentation of this file.
1// Copyright 2019-2026 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
17
18#ifndef ALICEO2_ACTS_MAGNETICFIELDADAPTER_H
19#define ALICEO2_ACTS_MAGNETICFIELDADAPTER_H
20
21#include "Acts/MagneticField/MagneticFieldProvider.hpp"
22
23namespace o2::field
24{
25class MagneticField;
26}
27
28namespace o2::acts
29{
30
42class MagneticFieldAdapter : public Acts::MagneticFieldProvider
43{
44 public:
48
51
52 Cache makeCache(const Acts::MagneticFieldContext& mctx) const final;
53
54 Acts::Result<Acts::Vector3> getField(const Acts::Vector3& position, Cache& cache) const final;
55
56 const o2::field::MagneticField* getO2Field() const { return mField; }
57
58 private:
59 struct CacheImpl {
60 };
61
62 o2::field::MagneticField* mField = nullptr;
63};
64
65} // namespace o2::acts
66
67#endif // ALICEO2_ACTS_MAGNETICFIELDADAPTER_H
Acts::Vector3 position
Cache makeCache(const Acts::MagneticFieldContext &mctx) const final
Acts::Result< Acts::Vector3 > getField(const Acts::Vector3 &position, Cache &cache) const final
const o2::field::MagneticField * getO2Field() const
std::vector< Entry > Cache