CbmRoot
Loading...
Searching...
No Matches
CbmFieldPar.h
Go to the documentation of this file.
1/* Copyright (C) 2006-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese, Denis Bertini [committer], Elena Lebedeva */
4
5// -------------------------------------------------------------------------
6// ----- CbmFieldPar header file -----
7// ----- Created 20/02/06 by V. Friese -----
8// -------------------------------------------------------------------------
9
10
20#ifndef CBMFIELDPAR_H
21#define CBMFIELDPAR_H 1
22
23#include <FairParGenericSet.h> // for FairParGenericSet
24
25#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
26#include <RtypesCore.h> // for Double_t, Int_t, Bool_t
27#include <TString.h> // for TString
28
29class FairField;
30class FairParamList;
31
32const int kMaxFieldMapType = 5;
33const int kTypeDistorted = 4;
34
35class CbmFieldPar : public FairParGenericSet {
36
37public:
39 CbmFieldPar(const char* name, const char* title, const char* context);
40
43
46
47
49 virtual void putParams(FairParamList* list);
50
51
53 virtual Bool_t getParams(FairParamList* list);
54
55
57 void SetParameters(FairField* field);
58
59
61 Int_t GetType() const { return fType; }
62 Double_t GetXmin() const { return fXmin; }
63 Double_t GetXmax() const { return fXmax; }
64 Double_t GetYmin() const { return fYmin; }
65 Double_t GetYmax() const { return fYmax; }
66 Double_t GetZmin() const { return fZmin; }
67 Double_t GetZmax() const { return fZmax; }
68 Double_t GetBx() const { return fBx; }
69 Double_t GetBy() const { return fBy; }
70 Double_t GetBz() const { return fBz; }
71 void MapName(TString& name) { name = fMapName; }
72 Double_t GetPositionX() const { return fPosX; }
73 Double_t GetPositionY() const { return fPosY; }
74 Double_t GetPositionZ() const { return fPosZ; }
75 Double_t GetScale() const { return fScale; }
76
77 void GetDistortionFilename(TString& filename) { filename = fDistortionFilename; }
78 void GetParentName(TString& parentname) { parentname = fParentName; }
79 Int_t GetTypeOfParent() const { return fTypeOfParent; }
80
81private:
89 Int_t fType;
90
91
93 Double_t fXmin, fXmax;
94 Double_t fYmin, fYmax;
95 Double_t fZmin, fZmax;
96
97
99 Double_t fBx, fBy, fBz;
100
101
103 TString fMapName;
104
105
107 Double_t fPosX, fPosY, fPosZ;
108
109
111 Double_t fScale;
112
115
117 TString fParentName;
118
121
122
125
127};
128
129
130#endif
const int kTypeDistorted
Definition CbmFieldPar.h:33
const int kMaxFieldMapType
Definition CbmFieldPar.h:32
TString fDistortionFilename
Double_t GetXmin() const
Definition CbmFieldPar.h:62
Double_t GetBy() const
Definition CbmFieldPar.h:69
Int_t fTypeOfParent
Double_t GetXmax() const
Definition CbmFieldPar.h:63
Double_t GetPositionZ() const
Definition CbmFieldPar.h:74
Int_t GetType() const
Definition CbmFieldPar.h:61
Double_t fXmin
Definition CbmFieldPar.h:93
Int_t GetTypeOfParent() const
Definition CbmFieldPar.h:79
Double_t fScale
Double_t fZmax
Definition CbmFieldPar.h:95
Double_t fXmax
Definition CbmFieldPar.h:93
TString fMapName
Double_t fPosY
Double_t fPosX
Double_t GetBx() const
Definition CbmFieldPar.h:68
Double_t fBx
Definition CbmFieldPar.h:99
Double_t fBz
Definition CbmFieldPar.h:99
Double_t GetYmin() const
Definition CbmFieldPar.h:64
void GetParentName(TString &parentname)
Definition CbmFieldPar.h:78
Double_t fZmin
Definition CbmFieldPar.h:95
virtual void putParams(FairParamList *list)
ClassDef(CbmFieldPar, 1)
Double_t GetZmax() const
Definition CbmFieldPar.h:67
void GetDistortionFilename(TString &filename)
Definition CbmFieldPar.h:77
void MapName(TString &name)
Definition CbmFieldPar.h:71
TString fParentName
Double_t GetPositionY() const
Definition CbmFieldPar.h:73
Double_t fPosZ
Double_t fYmax
Definition CbmFieldPar.h:94
Double_t fBy
Definition CbmFieldPar.h:99
Double_t GetZmin() const
Definition CbmFieldPar.h:66
Double_t GetBz() const
Definition CbmFieldPar.h:70
Double_t GetScale() const
Definition CbmFieldPar.h:75
Double_t fYmin
Definition CbmFieldPar.h:94
Double_t GetYmax() const
Definition CbmFieldPar.h:65
CbmFieldPar(const CbmFieldPar &)
virtual Bool_t getParams(FairParamList *list)
void SetParameters(FairField *field)
CbmFieldPar & operator=(const CbmFieldPar &)
Double_t GetPositionX() const
Definition CbmFieldPar.h:72