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
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 virtual ~ShipBellField();
45
49 virtual Double_t GetBx(Double_t x, Double_t y, Double_t z);
50 virtual Double_t GetBy(Double_t x, Double_t y, Double_t z);
51 virtual Double_t GetBz(Double_t x, Double_t y, Double_t z);
52
53 void IncludeTarget(Double_t xy, Double_t z, Double_t l);
54
56 virtual void Print();
57
58 private:
60 Double_t fPeak;
61 Double_t fMiddle;
62 Double_t fBtube;
63 Int_t fOrient;
65 Double_t targetXY;
66 Double_t targetZ0;
67 Double_t targetL;
68
70};
71
72#endif // FIELD_SHIPBELLFIELD_H_
virtual Double_t GetBy(Double_t x, Double_t y, Double_t z)
Double_t targetL
Definition: ShipBellField.h:67
Double_t targetZ0
Definition: ShipBellField.h:66
virtual Double_t GetBx(Double_t x, Double_t y, Double_t z)
Bool_t fInclTarget
Definition: ShipBellField.h:64
ClassDef(ShipBellField, 2)
virtual void Print()
Double_t fPeak
Definition: ShipBellField.h:60
void IncludeTarget(Double_t xy, Double_t z, Double_t l)
Double_t targetXY
Definition: ShipBellField.h:65
virtual ~ShipBellField()
virtual Double_t GetBz(Double_t x, Double_t y, Double_t z)
Double_t fMiddle
Definition: ShipBellField.h:61
Double_t fBtube
Definition: ShipBellField.h:62