FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MyFieldPar.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 // -------------------------------------------------------------------------
10 // ----- MyFieldPar header file -----
11 // ----- Created 26/03/14 by M. Al-Turany -----
12 // -------------------------------------------------------------------------
13 
14 #ifndef MyFieldPar_H
15 #define MyFieldPar_H 1
16 
17 #include "FairParGenericSet.h"
18 
19 class FairField;
20 class FairParamList;
21 
22 const int kMaxFieldMapType = 5;
23 
24 class MyFieldPar : public FairParGenericSet
25 {
26 
27  public:
29  MyFieldPar(const char* name, const char* title, const char* context);
30 
32  MyFieldPar();
33 
35  ~MyFieldPar();
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  Double_t GetPeak() const { return fPeak; }
63  Double_t GetMiddle() const { return fMiddle; }
64 
65  private:
73  Int_t fType;
74 
76  Double_t fXmin, fXmax;
77  Double_t fYmin, fYmax;
78  Double_t fZmin, fZmax;
79 
81  Double_t fBx, fBy, fBz;
82 
84  TString fMapName;
85 
87  Double_t fPosX, fPosY, fPosZ;
88 
90  Double_t fScale;
91 
93  Double_t fPeak;
94  Double_t fMiddle;
95 
96  MyFieldPar(const MyFieldPar&);
97  MyFieldPar& operator=(const MyFieldPar&);
98 
99  ClassDef(MyFieldPar, 1);
100 };
101 
102 #endif
Double_t GetPositionY() const
Definition: MyFieldPar.h:59
Double_t GetXmax() const
Definition: MyFieldPar.h:49
void SetParameters(FairField *field)
Definition: MyFieldPar.cxx:165
const int kMaxFieldMapType
Definition: MyFieldPar.h:22
Double_t GetXmin() const
Definition: MyFieldPar.h:48
virtual void putParams(FairParamList *list)
Definition: MyFieldPar.cxx:78
Double_t GetYmax() const
Definition: MyFieldPar.h:51
Double_t GetPeak() const
Definition: MyFieldPar.h:62
Double_t GetZmin() const
Definition: MyFieldPar.h:52
Double_t GetPositionX() const
Definition: MyFieldPar.h:58
Double_t GetZmax() const
Definition: MyFieldPar.h:53
Int_t GetType() const
Definition: MyFieldPar.h:47
Double_t GetScale() const
Definition: MyFieldPar.h:61
Double_t GetMiddle() const
Definition: MyFieldPar.h:63
Double_t GetBx() const
Definition: MyFieldPar.h:54
void MapName(TString &name)
Definition: MyFieldPar.h:57
Double_t GetYmin() const
Definition: MyFieldPar.h:50
Double_t GetBz() const
Definition: MyFieldPar.h:56
virtual Bool_t getParams(FairParamList *list)
Definition: MyFieldPar.cxx:110
Double_t GetPositionZ() const
Definition: MyFieldPar.h:60
Double_t GetBy() const
Definition: MyFieldPar.h:55