PandaRoot
PndConstField.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
20 #ifndef PNDCONSTFIELD_H
21 #define PNDCONSTFIELD_H 1
22 
23 #include "FairField.h"
24 
25 class PndConstPar;
26 
27 class PndConstField : public FairField {
28 
29  public:
31  PndConstField();
32 
40  PndConstField(const char *name, Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax, Double_t bX, Double_t bY, Double_t bZ);
41 
43  PndConstField(PndConstPar *fieldPar);
44 
46  virtual ~PndConstField();
47 
48  void FillParContainer();
49 
55  void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax);
56 
60  void SetField(Double_t bX, Double_t bY, Double_t bZ);
61 
65  virtual Double_t GetBx(Double_t x, Double_t y, Double_t z);
69  virtual Double_t GetBy(Double_t x, Double_t y, Double_t z);
73  virtual Double_t GetBz(Double_t x, Double_t y, Double_t z);
77  virtual void GetBxyz(const Double_t point[3], Double_t *bField);
78 
80  Double_t GetXmin() const { return fXmin; }
81  Double_t GetXmax() const { return fXmax; }
82  Double_t GetYmin() const { return fYmin; }
83  Double_t GetYmax() const { return fYmax; }
84  Double_t GetZmin() const { return fZmin; }
85  Double_t GetZmax() const { return fZmax; }
86 
88  Double_t GetBx() const { return fBx; }
89  Double_t GetBy() const { return fBy; }
90  Double_t GetBz() const { return fBz; }
91 
93  virtual void Print();
94 
96 
97  private:
99  Double_t fXmin;
100  Double_t fXmax;
101  Double_t fYmin;
102  Double_t fYmax;
103  Double_t fZmin;
104  Double_t fZmax;
105 
107  Double_t fBx;
108  Double_t fBy;
109  Double_t fBz;
110 };
111 
112 #endif
Double_t GetBx() const
Definition: PndConstField.h:88
Double_t GetYmax() const
Definition: PndConstField.h:83
Double_t GetBz() const
Definition: PndConstField.h:90
virtual void Print()
Double_t GetYmin() const
Definition: PndConstField.h:82
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
ClassDef(PndConstField, 1)
void SetField(Double_t bX, Double_t bY, Double_t bZ)
Double_t GetZmax() const
Definition: PndConstField.h:85
void FillParContainer()
Double_t GetZmin() const
Definition: PndConstField.h:84
virtual void GetBxyz(const Double_t point[3], Double_t *bField)
Double_t GetXmin() const
Definition: PndConstField.h:80
virtual ~PndConstField()
Double_t GetXmax() const
Definition: PndConstField.h:81
Double_t GetBy() const
Definition: PndConstField.h:89