PandaRoot
PndFieldPar.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 
18 #ifndef PNDFIELDPAR_H
19 #define PNDFIELDPAR_H 1
20 
21 #include "FairField.h"
22 #include "FairParGenericSet.h"
23 
24 class FairParamList;
25 
26 class PndFieldPar : public FairParGenericSet {
27  public:
29  PndFieldPar(const char *name, const char *title, const char *context);
30 
32  PndFieldPar();
33 
35  ~PndFieldPar();
36 
38  virtual void putParams(FairParamList *list);
39 
41  virtual Bool_t getParams(FairParamList *list);
42 
44  void SetParameters(FairField *field);
45 
47  Int_t GetType() const { return fType; }
48  Double_t GetXmin() const { return fXmin; }
49  Double_t GetXmax() const { return fXmax; }
50  Double_t GetYmin() const { return fYmin; }
51  Double_t GetYmax() const { return fYmax; }
52  Double_t GetZmin() const { return fZmin; }
53  Double_t GetZmax() const { return fZmax; }
54  Double_t GetBx() const { return fBx; }
55  Double_t GetBy() const { return fBy; }
56  Double_t GetBz() const { return fBz; }
57  void MapName(TString &name) { name = fMapName; }
58  Double_t GetPositionX() const { return fPosX; }
59  Double_t GetPositionY() const { return fPosY; }
60  Double_t GetPositionZ() const { return fPosZ; }
61  Double_t GetScale() const { return fScale; }
62 
63  private:
70  Int_t fType;
71 
73  Double_t fXmin, fXmax;
74  Double_t fYmin, fYmax;
75  Double_t fZmin, fZmax;
76 
78  Double_t fBx, fBy, fBz;
79 
81  TString fMapName;
82 
84  Double_t fPosX, fPosY, fPosZ;
85 
87  Double_t fScale;
88 
89  ClassDef(PndFieldPar, 1);
90 };
91 
92 #endif
Double_t GetZmin() const
Definition: PndFieldPar.h:52
Double_t GetPositionY() const
Definition: PndFieldPar.h:59
virtual void putParams(FairParamList *list)
Double_t GetXmax() const
Definition: PndFieldPar.h:49
void MapName(TString &name)
Definition: PndFieldPar.h:57
virtual Bool_t getParams(FairParamList *list)
void SetParameters(FairField *field)
Double_t GetXmin() const
Definition: PndFieldPar.h:48
Double_t GetPositionX() const
Definition: PndFieldPar.h:58
Int_t GetType() const
Definition: PndFieldPar.h:47
Double_t GetBy() const
Definition: PndFieldPar.h:55
Double_t GetYmax() const
Definition: PndFieldPar.h:51
Double_t GetPositionZ() const
Definition: PndFieldPar.h:60
Double_t GetBz() const
Definition: PndFieldPar.h:56
Double_t GetYmin() const
Definition: PndFieldPar.h:50
Double_t GetBx() const
Definition: PndFieldPar.h:54
Double_t GetScale() const
Definition: PndFieldPar.h:61
Double_t GetZmax() const
Definition: PndFieldPar.h:53