PandaRoot
PndFieldMapData.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndFieldMapData header file -----
15 // ----- V. Friese 13/02/06 -----
16 // -------------------------------------------------------------------------
17 
29 #ifndef PNDMAGFIELDMAPDATA_H
30 #define PNDMAGFIELDMAPDATA_H
31 
32 #include "TNamed.h"
33 
34 class TArrayF;
35 
36 class PndFieldMap;
37 
38 class PndFieldMapData : public TNamed {
39 
40  public:
43 
45  PndFieldMapData(const char *name);
46 
48  PndFieldMapData(const char *name, const PndFieldMap &map);
49 
51  virtual ~PndFieldMapData();
52 
54  Int_t GetType() const { return fType; }
55  Double_t GetXmin() const { return fXmin; }
56  Double_t GetYmin() const { return fYmin; }
57  Double_t GetZmin() const { return fZmin; }
58  Double_t GetXmax() const { return fXmax; }
59  Double_t GetYmax() const { return fYmax; }
60  Double_t GetZmax() const { return fZmax; }
61  Int_t GetNx() const { return fNx; }
62  Int_t GetNy() const { return fNy; }
63  Int_t GetNz() const { return fNz; }
64 
66  TArrayF *GetBx() const { return fBx; }
67  TArrayF *GetBy() const { return fBy; }
68  TArrayF *GetBz() const { return fBz; }
69 
70  private:
72  PndFieldMapData &operator=(const PndFieldMapData &) { return *this; };
73 
75  Int_t fType;
76 
78  Double_t fXmin, fXmax;
79  Double_t fYmin, fYmax;
80  Double_t fZmin, fZmax;
81 
83  Double_t fUnit;
84 
86  Int_t fNx, fNy, fNz;
87 
89  TArrayF *fBx;
90  TArrayF *fBy;
91  TArrayF *fBz;
92 
93  ClassDef(PndFieldMapData, 1)
94 };
95 
96 #endif
virtual ~PndFieldMapData()
TArrayF * GetBy() const
Int_t GetNy() const
Double_t GetYmax() const
TArrayF * GetBx() const
Int_t GetNx() const
Double_t GetXmin() const
Double_t GetYmin() const
Double_t GetZmin() const
Int_t GetNz() const
Double_t GetXmax() const
TArrayF * GetBz() const
Double_t GetZmax() const
Int_t GetType() const