CbmRoot
Loading...
Searching...
No Matches
Field.cxx
Go to the documentation of this file.
1/* Copyright (C) 2025-2025 Warsaw University of Technology, Warsaw
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Daniel Wielanek [committer] */
4#include "Field.h"
5
6#include <FairField.h>
7
8namespace Hal
9{
10 namespace Fair
11 {
12
13 Field::Field() : fField(nullptr) {}
14
15 TVector3 Field::GetField(Double_t x, Double_t y, Double_t z) const
16 {
17 return TVector3(fField->GetBx(x, y, z), fField->GetBy(x, y, z), fField->GetBz(x, y, z));
18 }
19 Field::~Field() { fField = nullptr; }
20 } // namespace Fair
21} /* namespace Hal */
TVector3 GetField(Double_t x, Double_t y, Double_t z) const
Definition Field.cxx:15
virtual ~Field()
Definition Field.cxx:19
FairField * fField
Definition Field.h:20