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