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

#include <PndDipolePar.h>

Inheritance diagram for PndDipolePar:
PndMapPar

Public Member Functions

 PndDipolePar (const char *name, const char *title, const char *context)
 
 PndDipolePar ()
 
 ~PndDipolePar ()
 
 ClassDef (PndDipolePar, 1)
 
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

PndDipolePar.h

Author
M.Al-Turany
Since
30.01.2007
Version
1.0

Parameter set for the Panda Dipole. For the runtime database.

Definition at line 16 of file PndDipolePar.h.

Constructor & Destructor Documentation

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

Standard constructor

Definition at line 3 of file PndDipolePar.cxx.

4  : PndMapPar(name, title, context) { }
TString name
PndDipolePar::PndDipolePar ( )

default constructor

Definition at line 5 of file PndDipolePar.cxx.

5 {}
PndDipolePar::~PndDipolePar ( )

Destructor

Definition at line 6 of file PndDipolePar.cxx.

6 { }

Member Function Documentation

PndDipolePar::ClassDef ( PndDipolePar  ,
 
)
PndMapPar::ClassDef ( PndMapPar  ,
 
)
protectedinherited
Bool_t PndMapPar::getParams ( FairParamList *  list)
virtualinherited

Get parameters

Reimplemented in PndMultiFieldPar, and PndConstPar.

Definition at line 70 of file PndMapPar.cxx.

References PndMapPar::fMapName, PndMapPar::fPosX, PndMapPar::fPosY, PndMapPar::fPosZ, PndMapPar::fScale, and PndMapPar::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
inlineinherited

Definition at line 59 of file PndMapPar.h.

References PndMapPar::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
inlineinherited

Definition at line 60 of file PndMapPar.h.

References PndMapPar::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
inlineinherited

Definition at line 61 of file PndMapPar.h.

References PndMapPar::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
inlineinherited

Definition at line 62 of file PndMapPar.h.

References PndMapPar::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
inlineinherited
Double_t PndMapPar::GetXmax ( ) const
inlineinherited

Definition at line 53 of file PndMapPar.h.

References PndMapPar::fXmax.

Referenced by PndConstField::PndConstField().

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

Definition at line 52 of file PndMapPar.h.

References PndMapPar::fXmin.

Referenced by PndConstField::PndConstField().

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

Definition at line 55 of file PndMapPar.h.

References PndMapPar::fYmax.

Referenced by PndConstField::PndConstField().

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

Definition at line 54 of file PndMapPar.h.

References PndMapPar::fYmin.

Referenced by PndConstField::PndConstField().

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

Definition at line 57 of file PndMapPar.h.

References PndMapPar::fZmax.

Referenced by PndConstField::PndConstField().

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

Definition at line 56 of file PndMapPar.h.

References PndMapPar::fZmin.

Referenced by PndConstField::PndConstField().

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

Definition at line 58 of file PndMapPar.h.

References PndMapPar::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)
virtualinherited

Put parameters

Reimplemented in PndMultiFieldPar, and PndConstPar.

Definition at line 54 of file PndMapPar.cxx.

References PndMapPar::fMapName, PndMapPar::fPosX, PndMapPar::fPosY, PndMapPar::fPosZ, PndMapPar::fScale, and PndMapPar::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)
inherited

Set parameters from FairField

Definition at line 91 of file PndMapPar.cxx.

References PndMapPar::fMapName, PndMapPar::fPosX, PndMapPar::fPosY, PndMapPar::fPosZ, PndMapPar::fScale, PndMapPar::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
protectedinherited

Field map name in case of field map

Definition at line 84 of file PndMapPar.h.

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

Double_t PndMapPar::fPosX
protectedinherited

Field centre position for field map

Definition at line 88 of file PndMapPar.h.

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

Double_t PndMapPar::fPosY
protectedinherited
Double_t PndMapPar::fPosZ
protectedinherited
Double_t PndMapPar::fScale
protectedinherited

Scaling factor for field map

Definition at line 92 of file PndMapPar.h.

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

Int_t PndMapPar::fType
protectedinherited

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(), PndMapPar::getParams(), PndMapPar::GetType(), PndConstPar::PndConstPar(), PndConstPar::putParams(), PndMultiFieldPar::putParams(), PndMapPar::putParams(), PndConstPar::SetParameters(), PndMultiFieldPar::SetParameters(), and PndMapPar::SetParameters().

Double_t PndMapPar::fXmax
protectedinherited
Double_t PndMapPar::fXmin
protectedinherited

Field limits in case of constant field

Definition at line 77 of file PndMapPar.h.

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

Double_t PndMapPar::fYmax
protectedinherited
Double_t PndMapPar::fYmin
protectedinherited
Double_t PndMapPar::fZmax
protectedinherited
Double_t PndMapPar::fZmin
protectedinherited

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