CbmRoot
Loading...
Searching...
No Matches
CbmFieldMapCreator.h
Go to the documentation of this file.
1/* Copyright (C) 2008-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmFieldMapCreator header file -----
7// ----- Created 15/01/08 by V. Friese -----
8// -------------------------------------------------------------------------
9
10
21#ifndef CBMFIELDMAPCREATOR_H
22#define CBMFIELDMAPCREATOR_H 1
23
24#include <FairField.h> // for FairField
25
26#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
27#include <RtypesCore.h> // for Double_t, Int_t, Bool_t
28#include <TList.h> // for TList
29#include <TString.h> // for TString
30
31class TArrayF;
32
34
35
36public:
39
40
43 CbmFieldMapCreator(const char* mapName);
44
45
47 virtual ~CbmFieldMapCreator();
48
49
56 void SetGridParameters(Int_t nx, Double_t xmin, Double_t xmax, Int_t ny, Double_t ymin, Double_t ymax, Int_t nz,
57 Double_t zmin, Double_t zmax);
58
59
61 void AddField(FairField* field) { fFieldList.Add(field); }
62
63
70 Bool_t CreateMap(const char* fileName = "");
71
72
74 TString GetMapName() const { return fMapName; }
75 Int_t GetNx() const { return fNx; }
76 Int_t GetNy() const { return fNy; }
77 Int_t GetNz() const { return fNz; }
78 Double_t GetXmin() const { return fXmin; }
79 Double_t GetXmax() const { return fXmax; }
80 Double_t GetYmin() const { return fYmin; }
81 Double_t GetYmax() const { return fYmax; }
82 Double_t GetZmin() const { return fZmin; }
83 Double_t GetZmax() const { return fZmax; }
84 TArrayF* GetBx() const { return fBx; }
85 TArrayF* GetBy() const { return fBy; }
86 TArrayF* GetBz() const { return fBz; }
87
88
89private:
90 TString fMapName; // Name of field map to be created
91 Int_t fNx, fNy, fNz; // Number of grid points in each dimension
92 Double_t fXmin, fXmax; // Field limits in x
93 Double_t fYmin, fYmax; // Field limits in y
94 Double_t fZmin, fZmax; // Field limits in z
95 TArrayF* fBx; // Array of Bx values;
96 TArrayF* fBy; // Array of By values;
97 TArrayF* fBz; // Array of Bz values;
98 TList fFieldList; // List of input fields;
99 Bool_t fInit; // Flag whether map is initialised
100
103
105};
106
107#endif
Double_t GetYmax() const
void SetGridParameters(Int_t nx, Double_t xmin, Double_t xmax, Int_t ny, Double_t ymin, Double_t ymax, Int_t nz, Double_t zmin, Double_t zmax)
CbmFieldMapCreator(const CbmFieldMapCreator &)
Double_t GetZmax() const
TString GetMapName() const
void AddField(FairField *field)
Double_t GetXmin() const
Double_t GetXmax() const
TArrayF * GetBz() const
Double_t GetYmin() const
Bool_t CreateMap(const char *fileName="")
CbmFieldMapCreator & operator=(const CbmFieldMapCreator &)
Double_t GetZmin() const
ClassDef(CbmFieldMapCreator, 1)
TArrayF * GetBy() const
TArrayF * GetBx() const