CbmRoot
CbmFieldPar.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmFieldPar header file -----
3 // ----- Created 20/02/06 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
6 
16 #ifndef CBMFIELDPAR_H
17 #define CBMFIELDPAR_H 1
18 
19 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
20 #include <RtypesCore.h> // for Double_t, Int_t, Bool_t
21 #include <TString.h> // for TString
22 
23 #include <FairParGenericSet.h> // for FairParGenericSet
24 
25 class FairField;
26 class FairParamList;
27 
28 const int kMaxFieldMapType = 5;
29 const int kTypeDistorted = 4;
30 
31 class CbmFieldPar : public FairParGenericSet {
32 
33 public:
35  CbmFieldPar(const char* name, const char* title, const char* context);
36 
38  CbmFieldPar();
39 
41  ~CbmFieldPar();
42 
43 
45  virtual void putParams(FairParamList* list);
46 
47 
49  virtual Bool_t getParams(FairParamList* list);
50 
51 
53  void SetParameters(FairField* field);
54 
55 
57  Int_t GetType() const { return fType; }
58  Double_t GetXmin() const { return fXmin; }
59  Double_t GetXmax() const { return fXmax; }
60  Double_t GetYmin() const { return fYmin; }
61  Double_t GetYmax() const { return fYmax; }
62  Double_t GetZmin() const { return fZmin; }
63  Double_t GetZmax() const { return fZmax; }
64  Double_t GetBx() const { return fBx; }
65  Double_t GetBy() const { return fBy; }
66  Double_t GetBz() const { return fBz; }
67  void MapName(TString& name) { name = fMapName; }
68  Double_t GetPositionX() const { return fPosX; }
69  Double_t GetPositionY() const { return fPosY; }
70  Double_t GetPositionZ() const { return fPosZ; }
71  Double_t GetScale() const { return fScale; }
72 
73  void GetDistortionFilename(TString& filename) {
74  filename = fDistortionFilename;
75  }
76  void GetParentName(TString& parentname) { parentname = fParentName; }
77  Int_t GetTypeOfParent() const { return fTypeOfParent; }
78 
79 private:
87  Int_t fType;
88 
89 
91  Double_t fXmin, fXmax;
92  Double_t fYmin, fYmax;
93  Double_t fZmin, fZmax;
94 
95 
97  Double_t fBx, fBy, fBz;
98 
99 
101  TString fMapName;
102 
103 
105  Double_t fPosX, fPosY, fPosZ;
106 
107 
109  Double_t fScale;
110 
113 
115  TString fParentName;
116 
119 
120 
123 
125 };
126 
127 
128 #endif
CbmFieldPar::~CbmFieldPar
~CbmFieldPar()
Definition: CbmFieldPar.cxx:71
CbmFieldPar::fBy
Double_t fBy
Definition: CbmFieldPar.h:97
CbmFieldPar::GetPositionY
Double_t GetPositionY() const
Definition: CbmFieldPar.h:69
kMaxFieldMapType
const int kMaxFieldMapType
Definition: CbmFieldPar.h:28
CbmFieldPar::fPosY
Double_t fPosY
Definition: CbmFieldPar.h:105
CbmFieldPar::GetYmax
Double_t GetYmax() const
Definition: CbmFieldPar.h:61
CbmFieldPar::GetParentName
void GetParentName(TString &parentname)
Definition: CbmFieldPar.h:76
CbmFieldPar::GetXmax
Double_t GetXmax() const
Definition: CbmFieldPar.h:59
CbmFieldPar::fYmin
Double_t fYmin
Definition: CbmFieldPar.h:92
CbmFieldPar::GetXmin
Double_t GetXmin() const
Definition: CbmFieldPar.h:58
CbmFieldPar::fDistortionFilename
TString fDistortionFilename
Definition: CbmFieldPar.h:112
CbmFieldPar::ClassDef
ClassDef(CbmFieldPar, 1)
CbmFieldPar::GetYmin
Double_t GetYmin() const
Definition: CbmFieldPar.h:60
CbmFieldPar::operator=
CbmFieldPar & operator=(const CbmFieldPar &)
CbmFieldPar::GetPositionX
Double_t GetPositionX() const
Definition: CbmFieldPar.h:68
CbmFieldPar::fTypeOfParent
Int_t fTypeOfParent
Definition: CbmFieldPar.h:118
CbmFieldPar::SetParameters
void SetParameters(FairField *field)
Definition: CbmFieldPar.cxx:160
CbmFieldPar::GetTypeOfParent
Int_t GetTypeOfParent() const
Definition: CbmFieldPar.h:77
CbmFieldPar::fPosX
Double_t fPosX
Definition: CbmFieldPar.h:105
CbmFieldPar::GetScale
Double_t GetScale() const
Definition: CbmFieldPar.h:71
CbmFieldPar::fXmax
Double_t fXmax
Definition: CbmFieldPar.h:91
CbmFieldPar::CbmFieldPar
CbmFieldPar(const CbmFieldPar &)
CbmFieldPar::putParams
virtual void putParams(FairParamList *list)
Definition: CbmFieldPar.cxx:76
CbmFieldPar::fXmin
Double_t fXmin
Definition: CbmFieldPar.h:91
CbmFieldPar::fBz
Double_t fBz
Definition: CbmFieldPar.h:97
CbmFieldPar::fZmax
Double_t fZmax
Definition: CbmFieldPar.h:93
CbmFieldPar::GetBx
Double_t GetBx() const
Definition: CbmFieldPar.h:64
CbmFieldPar::GetPositionZ
Double_t GetPositionZ() const
Definition: CbmFieldPar.h:70
CbmFieldPar::fMapName
TString fMapName
Definition: CbmFieldPar.h:101
CbmFieldPar::fYmax
Double_t fYmax
Definition: CbmFieldPar.h:92
CbmFieldPar::fBx
Double_t fBx
Definition: CbmFieldPar.h:97
CbmFieldPar::GetBy
Double_t GetBy() const
Definition: CbmFieldPar.h:65
CbmFieldPar::MapName
void MapName(TString &name)
Definition: CbmFieldPar.h:67
CbmFieldPar::GetZmin
Double_t GetZmin() const
Definition: CbmFieldPar.h:62
CbmFieldPar::GetType
Int_t GetType() const
Definition: CbmFieldPar.h:57
CbmFieldPar::fZmin
Double_t fZmin
Definition: CbmFieldPar.h:93
CbmFieldPar::getParams
virtual Bool_t getParams(FairParamList *list)
Definition: CbmFieldPar.cxx:112
kTypeDistorted
const int kTypeDistorted
Definition: CbmFieldPar.h:29
CbmFieldPar::GetZmax
Double_t GetZmax() const
Definition: CbmFieldPar.h:63
CbmFieldPar::GetDistortionFilename
void GetDistortionFilename(TString &filename)
Definition: CbmFieldPar.h:73
CbmFieldPar::fPosZ
Double_t fPosZ
Definition: CbmFieldPar.h:105
CbmFieldPar::CbmFieldPar
CbmFieldPar()
Definition: CbmFieldPar.cxx:48
CbmFieldPar
Definition: CbmFieldPar.h:31
CbmFieldPar::fParentName
TString fParentName
Definition: CbmFieldPar.h:115
CbmFieldPar::GetBz
Double_t GetBz() const
Definition: CbmFieldPar.h:66
CbmFieldPar::fType
Int_t fType
Definition: CbmFieldPar.h:87
CbmFieldPar::fScale
Double_t fScale
Definition: CbmFieldPar.h:109