Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
MagField.cxx
1/*
2 * Field.cxx
3 *
4 * Created on: 5 maj 2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "MagField.h"
10namespace Hal {
11 MagField::MagField() {
12 // TODO Auto-generated constructor stub
13 }
14
15 MagField::~MagField() {
16 // TODO Auto-generated destructor stub
17 }
18
19 void MagField::GetFieldValue(const Double_t point[3], Double_t* bField) const {
20 auto field = GetField(point[0], point[1], point[2]);
21 bField[0] = field.X();
22 bField[1] = field.Y();
23 bField[2] = field.Z();
24 }
25
26} // namespace Hal
void GetFieldValue(const Double_t point[3], Double_t *bFiel) const
Definition MagField.cxx:19
virtual TVector3 GetField(Double_t, Double_t, Double_t) const
Definition MagField.h:29