FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PndMapPar Class Reference

#include <PndMapPar.h>

Inheritance diagram for PndMapPar:
PndConstPar PndDipole1Par PndDipole2Par PndDipole3Par PndDipolePar PndMultiFieldPar PndSolenoid1Par PndSolenoid2Par PndSolenoid3Par PndSolenoid4Par PndSolenoidPar PndTransPar

Public Member Functions

 PndMapPar (const char *name, const char *title, const char *context)
 
 PndMapPar ()
 
 ~PndMapPar ()
 
virtual void putParams (FairParamList *list)
 
virtual Bool_t getParams (FairParamList *list)
 
void SetParameters (FairField *field)
 
Int_t GetType () 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
 
void MapName (TString &name)
 
Double_t GetPositionX () const
 
Double_t GetPositionY () const
 
Double_t GetPositionZ () const
 
Double_t GetScale () const
 

Protected Member Functions

 ClassDef (PndMapPar, 1)
 

Protected Attributes

Int_t fType
 
Double_t fXmin
 
Double_t fXmax
 
Double_t fYmin
 
Double_t fYmax
 
Double_t fZmin
 
Double_t fZmax
 
TString fMapName
 
Double_t fPosX
 
Double_t fPosY
 
Double_t fPosZ
 
Double_t fScale
 

Detailed Description

Definition at line 22 of file PndMapPar.h.

Constructor & Destructor Documentation

PndMapPar::PndMapPar ( const char *  name,
const char *  title,
const char *  context 
)

Standard constructor

Definition at line 10 of file PndMapPar.cxx.

12  : FairParGenericSet(name, title, context),
13  fType(-1),
14  fXmin(0),
15  fXmax(0),
16  fYmin(0),
17  fYmax(0),
18  fZmin(0),
19  fZmax(0),
20  fMapName(TString("")),
21  fPosX(0),
22  fPosY(0),
23  fPosZ(0),
24  fScale(0)
25 {
26 }
Double_t fPosZ
Definition: PndMapPar.h:88
Double_t fYmax
Definition: PndMapPar.h:78
Double_t fScale
Definition: PndMapPar.h:92
TString fMapName
Definition: PndMapPar.h:84
Double_t fXmin
Definition: PndMapPar.h:77
Double_t fPosY
Definition: PndMapPar.h:88
TString name
Double_t fXmax
Definition: PndMapPar.h:77
Double_t fYmin
Definition: PndMapPar.h:78
Double_t fZmin
Definition: PndMapPar.h:79
Int_t fType
Definition: PndMapPar.h:73
Double_t fPosX
Definition: PndMapPar.h:88
Double_t fZmax
Definition: PndMapPar.h:79
PndMapPar::PndMapPar ( )

default constructor

Definition at line 29 of file PndMapPar.cxx.

30  :fType(-1),
31  fXmin(0),
32  fXmax(0),
33  fYmin(0),
34  fYmax(0),
35  fZmin(0),
36  fZmax(0),
37  fMapName(TString("")),
38  fPosX(0),
39  fPosY(0),
40  fPosZ(0),
41  fScale(0)
42 {
43 
44 }
Double_t fPosZ
Definition: PndMapPar.h:88
Double_t fYmax
Definition: PndMapPar.h:78
Double_t fScale
Definition: PndMapPar.h:92
TString fMapName
Definition: PndMapPar.h:84
Double_t fXmin
Definition: PndMapPar.h:77
Double_t fPosY
Definition: PndMapPar.h:88
Double_t fXmax
Definition: PndMapPar.h:77
Double_t fYmin
Definition: PndMapPar.h:78
Double_t fZmin
Definition: PndMapPar.h:79
Int_t fType
Definition: PndMapPar.h:73
Double_t fPosX
Definition: PndMapPar.h:88
Double_t fZmax
Definition: PndMapPar.h:79
PndMapPar::~PndMapPar ( )

Destructor

Definition at line 48 of file PndMapPar.cxx.

48 { }

Member Function Documentation

PndMapPar::ClassDef ( PndMapPar  ,
 
)
protected
Bool_t PndMapPar::getParams ( FairParamList *  list)
virtual

Get parameters

Reimplemented in PndMultiFieldPar, and PndConstPar.

Definition at line 70 of file PndMapPar.cxx.

References fMapName, fPosX, fPosY, fPosZ, fScale, and fType.

70  {
71 
72  if ( ! list ) return kFALSE;
73 
74  if ( ! list->fill("Field Type", &fType) ) return kFALSE;
75 
76  Text_t mapName[80];
77  if ( ! list->fill("Field map name", mapName, 80) ) return kFALSE;
78  fMapName = mapName;
79  if ( ! list->fill("Field x position", &fPosX) ) return kFALSE;
80  if ( ! list->fill("Field y position", &fPosY) ) return kFALSE;
81  if ( ! list->fill("Field z position", &fPosZ) ) return kFALSE;
82  if ( ! list->fill("Field scaling factor", &fScale) ) return kFALSE;
83  return kTRUE;
84 
85 }
Double_t fPosZ
Definition: PndMapPar.h:88
Double_t fScale
Definition: PndMapPar.h:92
TString fMapName
Definition: PndMapPar.h:84
Double_t fPosY
Definition: PndMapPar.h:88
Int_t fType
Definition: PndMapPar.h:73
Double_t fPosX
Definition: PndMapPar.h:88
Double_t PndMapPar::GetPositionX ( ) const
inline

Definition at line 59 of file PndMapPar.h.

References fPosX.

Referenced by PndDipoleMap::PndDipoleMap(), PndSolenoidMap::PndSolenoidMap(), and PndTransMap::PndTransMap().

59 { return fPosX; }
Double_t fPosX
Definition: PndMapPar.h:88
Double_t PndMapPar::GetPositionY ( ) const
inline

Definition at line 60 of file PndMapPar.h.

References fPosY.

Referenced by PndDipoleMap::PndDipoleMap(), PndSolenoidMap::PndSolenoidMap(), and PndTransMap::PndTransMap().

60 { return fPosY; }
Double_t fPosY
Definition: PndMapPar.h:88
Double_t PndMapPar::GetPositionZ ( ) const
inline

Definition at line 61 of file PndMapPar.h.

References fPosZ.

Referenced by PndDipoleMap::PndDipoleMap(), PndSolenoidMap::PndSolenoidMap(), and PndTransMap::PndTransMap().

61 { return fPosZ; }
Double_t fPosZ
Definition: PndMapPar.h:88
Double_t PndMapPar::GetScale ( ) const
inline

Definition at line 62 of file PndMapPar.h.

References fScale.

Referenced by PndDipoleMap::PndDipoleMap(), PndSolenoidMap::PndSolenoidMap(), and PndTransMap::PndTransMap().

62 { return fScale; }
Double_t fScale
Definition: PndMapPar.h:92
Int_t PndMapPar::GetType ( ) const
inline
Double_t PndMapPar::GetXmax ( ) const
inline

Definition at line 53 of file PndMapPar.h.

References fXmax.

Referenced by PndConstField::PndConstField().

53 { return fXmax; }
Double_t fXmax
Definition: PndMapPar.h:77
Double_t PndMapPar::GetXmin ( ) const
inline

Definition at line 52 of file PndMapPar.h.

References fXmin.

Referenced by PndConstField::PndConstField().

52 { return fXmin; }
Double_t fXmin
Definition: PndMapPar.h:77
Double_t PndMapPar::GetYmax ( ) const
inline

Definition at line 55 of file PndMapPar.h.

References fYmax.

Referenced by PndConstField::PndConstField().

55 { return fYmax; }
Double_t fYmax
Definition: PndMapPar.h:78
Double_t PndMapPar::GetYmin ( ) const
inline

Definition at line 54 of file PndMapPar.h.

References fYmin.

Referenced by PndConstField::PndConstField().

54 { return fYmin; }
Double_t fYmin
Definition: PndMapPar.h:78
Double_t PndMapPar::GetZmax ( ) const
inline

Definition at line 57 of file PndMapPar.h.

References fZmax.

Referenced by PndConstField::PndConstField().

57 { return fZmax; }
Double_t fZmax
Definition: PndMapPar.h:79
Double_t PndMapPar::GetZmin ( ) const
inline

Definition at line 56 of file PndMapPar.h.

References fZmin.

Referenced by PndConstField::PndConstField().

56 { return fZmin; }
Double_t fZmin
Definition: PndMapPar.h:79
void PndMapPar::MapName ( TString name)
inline

Definition at line 58 of file PndMapPar.h.

References fMapName.

Referenced by PndDipoleMap::PndDipoleMap(), PndSolenoidMap::PndSolenoidMap(), and PndTransMap::PndTransMap().

58 { name = fMapName; }
TString fMapName
Definition: PndMapPar.h:84
TString name
void PndMapPar::putParams ( FairParamList *  list)
virtual

Put parameters

Reimplemented in PndMultiFieldPar, and PndConstPar.

Definition at line 54 of file PndMapPar.cxx.

References fMapName, fPosX, fPosY, fPosZ, fScale, and fType.

54  {
55 
56  if ( ! list ) return;
57 
58  list->add("Field Type", fType);
59  list->add("Field map name", fMapName);
60  list->add("Field x position", fPosX);
61  list->add("Field y position", fPosY);
62  list->add("Field z position", fPosZ);
63  list->add("Field scaling factor", fScale);
64 }
Double_t fPosZ
Definition: PndMapPar.h:88
Double_t fScale
Definition: PndMapPar.h:92
TString fMapName
Definition: PndMapPar.h:84
Double_t fPosY
Definition: PndMapPar.h:88
Int_t fType
Definition: PndMapPar.h:73
Double_t fPosX
Definition: PndMapPar.h:88
void PndMapPar::SetParameters ( FairField *  field)

Set parameters from FairField

Definition at line 91 of file PndMapPar.cxx.

References fMapName, fPosX, fPosY, fPosZ, fScale, fType, PndFieldMap::GetPositionX(), PndFieldMap::GetPositionY(), PndFieldMap::GetPositionZ(), and PndFieldMap::GetScale().

Referenced by PndTransMap::FillParContainer(), and PndMultiFieldPar::SetParameters().

91  {
92 
93  if ( ! field ) {
94  cerr << "-W- PndMapPar::SetParameters: Empty field pointer!" << endl;
95  return;
96  }
97 
98  PndFieldMap* fieldMap = (PndFieldMap*) field;
99 
100  fMapName = field->GetName();
101  fPosX = fieldMap->GetPositionX();
102  fPosY = fieldMap->GetPositionY();
103  fPosZ = fieldMap->GetPositionZ();
104  fScale = fieldMap->GetScale();
105  fType = fieldMap->GetType();
106 }
Double_t fPosZ
Definition: PndMapPar.h:88
Double_t fScale
Definition: PndMapPar.h:92
Double_t GetPositionY() const
Definition: PndFieldMap.h:105
Double_t GetScale() const
Definition: PndFieldMap.h:110
TString fMapName
Definition: PndMapPar.h:84
Double_t GetPositionX() const
Definition: PndFieldMap.h:104
Double_t fPosY
Definition: PndMapPar.h:88
Int_t fType
Definition: PndMapPar.h:73
Double_t GetPositionZ() const
Definition: PndFieldMap.h:106
Double_t fPosX
Definition: PndMapPar.h:88

Member Data Documentation

TString PndMapPar::fMapName
protected

Field map name in case of field map

Definition at line 84 of file PndMapPar.h.

Referenced by getParams(), MapName(), putParams(), PndConstPar::SetParameters(), and SetParameters().

Double_t PndMapPar::fPosX
protected

Field centre position for field map

Definition at line 88 of file PndMapPar.h.

Referenced by getParams(), GetPositionX(), putParams(), PndConstPar::SetParameters(), and SetParameters().

Double_t PndMapPar::fPosY
protected
Double_t PndMapPar::fPosZ
protected
Double_t PndMapPar::fScale
protected

Scaling factor for field map

Definition at line 92 of file PndMapPar.h.

Referenced by getParams(), GetScale(), putParams(), PndConstPar::SetParameters(), and SetParameters().

Int_t PndMapPar::fType
protected

Field type 0 = constant field 1 = field map 2 = field map sym2 (symmetries in x and y) 3 = field map sym3 (symmetries in x, y and z)

Definition at line 73 of file PndMapPar.h.

Referenced by PndConstPar::getParams(), PndMultiFieldPar::getParams(), getParams(), GetType(), PndConstPar::PndConstPar(), PndConstPar::putParams(), PndMultiFieldPar::putParams(), putParams(), PndConstPar::SetParameters(), PndMultiFieldPar::SetParameters(), and SetParameters().

Double_t PndMapPar::fXmax
protected
Double_t PndMapPar::fXmin
protected

Field limits in case of constant field

Definition at line 77 of file PndMapPar.h.

Referenced by PndConstPar::getParams(), GetXmin(), PndConstPar::putParams(), and PndConstPar::SetParameters().

Double_t PndMapPar::fYmax
protected
Double_t PndMapPar::fYmin
protected
Double_t PndMapPar::fZmax
protected
Double_t PndMapPar::fZmin
protected

The documentation for this class was generated from the following files: