SND@LHC Software
Loading...
Searching...
No Matches
FairShipFields.h
Go to the documentation of this file.
1/*
2generic interface to B fields of FairShip
3*/
4
5#ifndef genfit_FairShipFields_h
6#define genfit_FairShipFields_h
7
8#include "AbsBField.h"
9#include "ShipCompField.h"
10
11
12namespace genfit {
13
18class FairShipFields : public AbsBField {
19 public:
20
23
25 inline void setField(ShipCompField* gField) { gField_ = gField; }
26
28 TVector3 get(const TVector3& pos) const;
29 void get(const double& posX, const double& posY, const double& posZ, double& Bx, double& By, double& Bz) const;
30
31 private:
33};
34
35} /* End of namespace genfit */
38#endif // genfit_FairShipFields_h
Class that defines a magnetic field composed from many fields.
Abstract Interface to magnetic fields in GENFIT.
Definition AbsBField.h:36
void setField(ShipCompField *gField)
set field if not gMC present
TVector3 get(const TVector3 &pos) const
return value at position
ShipCompField * gField_
Matrix inversion tools.
Definition AbsBField.h:29