FairShip
Loading...
Searching...
No Matches
FairShipFields.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP
3// Collaboration
4
5/*
6generic interface to B fields of FairShip
7*/
8
9#ifndef FIELD_FAIRSHIPFIELDS_H_
10#define FIELD_FAIRSHIPFIELDS_H_
11
12#include "AbsBField.h"
13#include "ShipCompField.h"
14
15namespace genfit {
16
21class FairShipFields : public AbsBField {
22 public:
25
27 inline void setField(ShipCompField* gField) { gField_ = gField; }
28
30 TVector3 get(const TVector3& pos) const;
31 void get(const double& posX, const double& posY, const double& posZ,
32 double& Bx, double& By, double& Bz) const;
33
34 private:
36};
37
38} /* End of namespace genfit */
41#endif // FIELD_FAIRSHIPFIELDS_H_
Class that defines a magnetic field composed from many fields.
Definition: ShipCompField.h:19
void setField(ShipCompField *gField)
set field if not gMC present
TVector3 get(const TVector3 &pos) const
return value at position
ShipCompField * gField_