FairShip
Loading...
Searching...
No Matches
ShipBellField.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// ----- ShipBellField header file -----
7// ----- Created 25/03/14 by M. Al-Turany -----
8// -------------------------------------------------------------------------
9
18
19#ifndef FIELD_SHIPBELLFIELD_H_
20#define FIELD_SHIPBELLFIELD_H_
21
22#include "FairField.h"
23
24class ShipFieldPar;
25
26class ShipBellField : public FairField {
27 public:
30
37 explicit ShipBellField(const char* name, Double_t Bpeak, Double_t Zmiddle,
38 Int_t fOrient = 1, Double_t Btube = 500.);
39
41 explicit ShipBellField(ShipFieldPar* fieldPar);
42
44 ~ShipBellField() override;
45
49 Double_t GetBx(Double_t x, Double_t y, Double_t z) override;
50 Double_t GetBy(Double_t x, Double_t y, Double_t z) override;
51 Double_t GetBz(Double_t x, Double_t y, Double_t z) override;
52
53 void IncludeTarget(Double_t xy, Double_t z, Double_t l);
54
56 void Print(Option_t* = "") const override;
57
58 private:
60 Double_t fPeak;
61 Double_t fMiddle;
62 Double_t fBtube;
63 Int_t fOrient{1};
65 Double_t targetXY;
66 Double_t targetZ0;
67 Double_t targetL;
68
70};
71
72#endif // FIELD_SHIPBELLFIELD_H_
Double_t targetL
Double_t targetZ0
void Print(Option_t *="") const override
ClassDefOverride(ShipBellField, 2)
Double_t GetBz(Double_t x, Double_t y, Double_t z) override
~ShipBellField() override
Double_t GetBx(Double_t x, Double_t y, Double_t z) override
void IncludeTarget(Double_t xy, Double_t z, Double_t l)
Double_t targetXY
Double_t GetBy(Double_t x, Double_t y, Double_t z) override
Double_t fMiddle
Double_t fBtube