FairShip
Loading...
Searching...
No Matches
ShipConstField.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// -------------------------------------------------------------------------
6// ----- ShipConstField header file -----
7// ----- Created 25/03/14 by M. Al-Turany -----
8// -------------------------------------------------------------------------
9
18#ifndef FIELD_SHIPCONSTFIELD_H_
19#define FIELD_SHIPCONSTFIELD_H_
20
21#include "FairField.h"
22
23class ShipFieldPar;
24
25class ShipConstField : public FairField {
26 public:
29
37 explicit ShipConstField(const char* name, Double_t xMin, Double_t xMax,
38 Double_t yMin, Double_t yMax, Double_t zMin,
39 Double_t zMax, Double_t bX, Double_t bY, Double_t bZ);
40
42 explicit ShipConstField(ShipFieldPar* fieldPar);
43
45 virtual ~ShipConstField();
46
52 void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin,
53 Double_t yMax, Double_t zMin, Double_t zMax);
54
58 void SetField(Double_t bX, Double_t bY, Double_t bZ);
59
63 virtual Double_t GetBx(Double_t x, Double_t y, Double_t z);
64 virtual Double_t GetBy(Double_t x, Double_t y, Double_t z);
65 virtual Double_t GetBz(Double_t x, Double_t y, Double_t z);
66
68 Double_t GetXmin() const { return fXmin; }
69 Double_t GetXmax() const { return fXmax; }
70 Double_t GetYmin() const { return fYmin; }
71 Double_t GetYmax() const { return fYmax; }
72 Double_t GetZmin() const { return fZmin; }
73 Double_t GetZmax() const { return fZmax; }
74
76 Double_t GetBx() const { return fBx; }
77 Double_t GetBy() const { return fBy; }
78 Double_t GetBz() const { return fBz; }
79
81 virtual void Print();
82
83 private:
85 Double_t fXmin;
86 Double_t fXmax;
87 Double_t fYmin;
88 Double_t fYmax;
89 Double_t fZmin;
90 Double_t fZmax;
91
93 Double_t fBx;
94 Double_t fBy;
95 Double_t fBz;
96
98};
99
100#endif // FIELD_SHIPCONSTFIELD_H_
Double_t GetXmin() const
virtual ~ShipConstField()
Double_t GetBz() const
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
Double_t GetZmax() const
Double_t GetBy() const
Double_t GetBx() const
Double_t GetYmax() const
virtual void Print()
ClassDef(ShipConstField, 1)
void SetField(Double_t bX, Double_t bY, Double_t bZ)
Double_t GetYmin() const
Double_t GetZmin() const
Double_t GetXmax() const