er  dev
ERFieldPar.h
1 // -------------------------------------------------------------------------
2 // ----- ERFieldPar header file -----
3 // ----- Created 05/17 by V. Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef ERFieldPar_H
7 #define ERFieldPar_H 1
8 
9 #include "FairParGenericSet.h"
10 
11 class FairField;
12 class FairParamList;
13 
14 const int kMaxFieldMapType = 5;
15 const int kTypeDistorted = 4;
16 
17 class ERFieldPar : public FairParGenericSet
18 {
19  public:
21  ERFieldPar(const char* name, const char* title, const char* context);
23  ERFieldPar();
24 
26  ~ERFieldPar();
27 
29  virtual void putParams(FairParamList* list);
31  virtual Bool_t getParams(FairParamList* list);
33  void SetParameters(FairField* field);
34 
36  Int_t GetType() const { return fType; }
37  Double_t GetXmin() const { return fXmin; }
38  Double_t GetXmax() const { return fXmax; }
39  Double_t GetYmin() const { return fYmin; }
40  Double_t GetYmax() const { return fYmax; }
41  Double_t GetZmin() const { return fZmin; }
42  Double_t GetZmax() const { return fZmax; }
43  Double_t GetBx() const { return fBx; }
44  Double_t GetBy() const { return fBy; }
45  Double_t GetBz() const { return fBz; }
46 
47  void MapName(TString& name) { name = fMapName; }
48 
49  Double_t GetPositionX() const { return fPosX; }
50  Double_t GetPositionY() const { return fPosY; }
51  Double_t GetPositionZ() const { return fPosZ; }
52  Double_t GetScale() const { return fScale; }
53 
54  void GetDistortionFilename(TString& filename) { filename = fDistortionFilename; }
55  void GetParentName(TString& parentname) { parentname = fParentName; }
56  Int_t GetTypeOfParent() const { return fTypeOfParent; }
57 
58  private:
59 
68  Int_t fType;
71  Double_t fXmin, fXmax;
72  Double_t fYmin, fYmax;
73  Double_t fZmin, fZmax;
74 
76  Double_t fBx, fBy, fBz;
77 
79  TString fMapName;
80 
82  Double_t fPosX, fPosY, fPosZ;
83 
85  Double_t fScale;
86 
89 
91  TString fParentName;
92 
95 
96  ERFieldPar(const ERFieldPar&);
97 
98  ERFieldPar& operator=(const ERFieldPar&);
99 
100  ClassDef(ERFieldPar,1);
101 };
102 
103 #endif
Double_t fPosX
Definition: ERFieldPar.h:82
TString fMapName
Definition: ERFieldPar.h:79
virtual void putParams(FairParamList *list)
Definition: ERFieldPar.cxx:66
Double_t fBx
Definition: ERFieldPar.h:76
Int_t GetType() const
Definition: ERFieldPar.h:36
Int_t fTypeOfParent
Definition: ERFieldPar.h:94
Int_t fType
Definition: ERFieldPar.h:68
void SetParameters(FairField *field)
Definition: ERFieldPar.cxx:132
Double_t fXmin
Definition: ERFieldPar.h:71
TString fDistortionFilename
Definition: ERFieldPar.h:88
TString fParentName
Definition: ERFieldPar.h:91
virtual Bool_t getParams(FairParamList *list)
Definition: ERFieldPar.cxx:95
Double_t fScale
Definition: ERFieldPar.h:85