BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnFieldMapData.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- BmnFieldMapData header file -----
3// ----- V. Friese 13/02/06 -----
4// -------------------------------------------------------------------------
5
6/** BmnFieldMapData.h
7 ** @author V.Friese <v.friese@gsi.de>
8 ** @since 14.02.2006
9 ** @version1.0
10 **
11 ** This class holds the real data arrays of a magnetic field map,
12 ** which are read from / written to file. Nota bene: Field values
13 ** are in Tesla, in contrast to BmnFieldMap, whcih holds the
14 ** field in kG.
15 **/
16
17#ifndef CBMMAGFIELDMAPDATA_H
18#define CBMMAGFIELDMAPDATA_H
19
20#include "TNamed.h"
21
22class TArrayF;
23
24class BmnFieldMap;
25
26class BmnFieldMapData : public TNamed
27{
28
29 public:
30 /** Default constructor **/
32
33 /** Standard constructor **/
34 BmnFieldMapData(const char* name);
35
36 /** Constructor from an existing BmnFieldMap **/
37 BmnFieldMapData(const char* name, const BmnFieldMap& map);
38
39 /** Destructor **/
41
42 /** Accessors to field parameters in local coordinate system **/
43 Int_t GetType() const { return fType; }
44 Double_t GetXmin() const { return fXmin; }
45 Double_t GetYmin() const { return fYmin; }
46 Double_t GetZmin() const { return fZmin; }
47 Double_t GetXmax() const { return fXmax; }
48 Double_t GetYmax() const { return fYmax; }
49 Double_t GetZmax() const { return fZmax; }
50 Int_t GetNx() const { return fNx; }
51 Int_t GetNy() const { return fNy; }
52 Int_t GetNz() const { return fNz; }
53
54 /** Accessors to the field value arrays **/
55 TArrayF* GetBx() const { return fBx; }
56 TArrayF* GetBy() const { return fBy; }
57 TArrayF* GetBz() const { return fBz; }
58
59 private:
60 /** Type of map. 1 = BmnFieldMap, 2 = Sym2, 3 = Sym3 **/
62
63 /** Field limits in local coordinate system **/
67
68 /** Number of grid points **/
69 Int_t fNx, fNy, fNz;
70
71 /** Arrays with the field values in T **/
72 TArrayF* fBx;
73 TArrayF* fBy;
74 TArrayF* fBz;
75
78
80};
81
82#endif
int Int_t
double Double_t
#define ClassDef(name, id)
TArrayF * GetBy() const
Double_t GetYmax() const
TArrayF * fBx
Arrays with the field values in T.
BmnFieldMapData(const char *name)
Standard constructor.
Double_t GetZmin() const
Double_t GetXmin() const
TArrayF * GetBz() const
Int_t GetNz() const
Int_t GetType() const
Accessors to field parameters in local coordinate system.
BmnFieldMapData & operator=(const BmnFieldMapData &)=delete
BmnFieldMapData()
Default constructor.
BmnFieldMapData(const char *name, const BmnFieldMap &map)
Constructor from an existing BmnFieldMap.
Double_t GetXmax() const
Int_t GetNy() const
BmnFieldMapData(const BmnFieldMapData &)=delete
TArrayF * GetBx() const
Accessors to the field value arrays.
Int_t GetNx() const
virtual ~BmnFieldMapData()
Destructor.
Double_t GetYmin() const
Double_t fXmin
Field limits in local coordinate system.
Int_t fType
Type of map.
Int_t fNx
Number of grid points.
Double_t GetZmax() const