CbmRoot
|
#include <CbmFieldMapCreator.h>
Public Member Functions | |
CbmFieldMapCreator () | |
CbmFieldMapCreator (const char *mapName) | |
virtual | ~CbmFieldMapCreator () |
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) |
void | AddField (FairField *field) |
Bool_t | CreateMap (const char *fileName="") |
TString | GetMapName () const |
Int_t | GetNx () const |
Int_t | GetNy () const |
Int_t | GetNz () const |
Double_t | GetXmin () const |
Double_t | GetXmax () const |
Double_t | GetYmin () const |
Double_t | GetYmax () const |
Double_t | GetZmin () const |
Double_t | GetZmax () const |
TArrayF * | GetBx () const |
TArrayF * | GetBy () const |
TArrayF * | GetBz () const |
Private Member Functions | |
CbmFieldMapCreator (const CbmFieldMapCreator &) | |
CbmFieldMapCreator & | operator= (const CbmFieldMapCreator &) |
ClassDef (CbmFieldMapCreator, 1) | |
Private Attributes | |
TString | fMapName |
Int_t | fNx |
Int_t | fNy |
Int_t | fNz |
Double_t | fXmin |
Double_t | fXmax |
Double_t | fYmin |
Double_t | fYmax |
Double_t | fZmin |
Double_t | fZmax |
TArrayF * | fBx |
TArrayF * | fBy |
TArrayF * | fBz |
TList | fFieldList |
Bool_t | fInit |
Definition at line 33 of file CbmFieldMapCreator.h.
CbmFieldMapCreator::CbmFieldMapCreator | ( | ) |
Default constructor
Definition at line 25 of file CbmFieldMapCreator.cxx.
CbmFieldMapCreator::CbmFieldMapCreator | ( | const char * | mapName | ) |
Standard constructor
mapName | Name of field map. Defines also the output file name. |
Definition at line 47 of file CbmFieldMapCreator.cxx.
|
virtual |
Destructor
Definition at line 70 of file CbmFieldMapCreator.cxx.
References fBx, fBy, fBz, and fFieldList.
|
private |
|
inline |
|
private |
Bool_t CbmFieldMapCreator::CreateMap | ( | const char * | fileName = "" | ) |
Create the field map By default, the output file name is defined by the map name plus the extension .root. Other file names can be choosen.
fileName | Name of output file @value Success of map creation |
Definition at line 99 of file CbmFieldMapCreator.cxx.
References fBx, fBy, fBz, fFieldList, fInit, fMapName, fNx, fNy, fNz, fXmax, fXmin, fYmax, fYmin, fZmax, fZmin, CbmFieldMap::WriteRootFile(), x, and y.
|
inline |
Definition at line 84 of file CbmFieldMapCreator.h.
References fBx.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 85 of file CbmFieldMapCreator.h.
References fBy.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 86 of file CbmFieldMapCreator.h.
References fBz.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Accessors
Definition at line 74 of file CbmFieldMapCreator.h.
References fMapName.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 75 of file CbmFieldMapCreator.h.
References fNx.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 76 of file CbmFieldMapCreator.h.
References fNy.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 77 of file CbmFieldMapCreator.h.
References fNz.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 79 of file CbmFieldMapCreator.h.
References fXmax.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 78 of file CbmFieldMapCreator.h.
References fXmin.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 81 of file CbmFieldMapCreator.h.
References fYmax.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 80 of file CbmFieldMapCreator.h.
References fYmin.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 83 of file CbmFieldMapCreator.h.
References fZmax.
Referenced by CbmFieldMap::CbmFieldMap().
|
inline |
Definition at line 82 of file CbmFieldMapCreator.h.
References fZmin.
Referenced by CbmFieldMap::CbmFieldMap().
|
private |
void CbmFieldMapCreator::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 ) |
Set parameters
nx,ny,nz | Number of grid cells in x,y,z |
xmin,xmax | Extension in x coordinate |
ymin,ymax | Extension in y coordinate |
zmin,zmax | Extension in z coordinate |
Definition at line 81 of file CbmFieldMapCreator.cxx.
References fInit, fNx, fNy, fNz, fXmax, fXmin, fYmax, fYmin, fZmax, and fZmin.
|
private |
Definition at line 95 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetBx(), and ~CbmFieldMapCreator().
|
private |
Definition at line 96 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetBy(), and ~CbmFieldMapCreator().
|
private |
Definition at line 97 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetBz(), and ~CbmFieldMapCreator().
|
private |
Definition at line 98 of file CbmFieldMapCreator.h.
Referenced by AddField(), CreateMap(), and ~CbmFieldMapCreator().
|
private |
Definition at line 99 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), and SetGridParameters().
|
private |
Definition at line 90 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), and GetMapName().
|
private |
Definition at line 91 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetNx(), and SetGridParameters().
|
private |
Definition at line 91 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetNy(), and SetGridParameters().
|
private |
Definition at line 91 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetNz(), and SetGridParameters().
|
private |
Definition at line 92 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetXmax(), and SetGridParameters().
|
private |
Definition at line 92 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetXmin(), and SetGridParameters().
|
private |
Definition at line 93 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetYmax(), and SetGridParameters().
|
private |
Definition at line 93 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetYmin(), and SetGridParameters().
|
private |
Definition at line 94 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetZmax(), and SetGridParameters().
|
private |
Definition at line 94 of file CbmFieldMapCreator.h.
Referenced by CreateMap(), GetZmin(), and SetGridParameters().