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

#include <PndConstPar.h>

Inheritance diagram for PndConstPar:
PndMapPar

Public Member Functions

 PndConstPar (const char *name, const char *title, const char *context)
 
 PndConstPar ()
 
 ~PndConstPar ()
 
void putParams (FairParamList *list)
 
Bool_t getParams (FairParamList *list)
 
void SetParameters (FairField *field)
 
Double_t GetBx () const
 
Double_t GetBy () const
 
Double_t GetBz () const
 
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 (PndConstPar, 1)
 
 ClassDef (PndMapPar, 1)
 

Protected Attributes

Double_t fBx
 
Double_t fBy
 
Double_t fBz
 
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 15 of file PndConstPar.h.

Constructor & Destructor Documentation

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

Standard constructor

Definition at line 5 of file PndConstPar.cxx.

References PndMapPar::fType.

6  : PndMapPar(name, title, context), fBx(0), fBy(0), fBz(0)
7 {
8  fType=0;
9 }
Double_t fBy
Definition: PndConstPar.h:48
Double_t fBx
Definition: PndConstPar.h:48
TString name
Int_t fType
Definition: PndMapPar.h:73
Double_t fBz
Definition: PndConstPar.h:48
PndConstPar::PndConstPar ( )

default constructor

Definition at line 11 of file PndConstPar.cxx.

References PndMapPar::fType.

12  : PndMapPar(), fBx(0), fBy(0), fBz(0)
13 {
14  fType=0;
15 }
Double_t fBy
Definition: PndConstPar.h:48
Double_t fBx
Definition: PndConstPar.h:48
Int_t fType
Definition: PndMapPar.h:73
Double_t fBz
Definition: PndConstPar.h:48
PndConstPar::~PndConstPar ( )

Destructor

Definition at line 17 of file PndConstPar.cxx.

17 { }

Member Function Documentation

PndConstPar::ClassDef ( PndConstPar  ,
 
)
protected
PndMapPar::ClassDef ( PndMapPar  ,
 
)
protectedinherited
Double_t PndConstPar::GetBx ( ) const
inline

Definition at line 41 of file PndConstPar.h.

References fBx.

Referenced by PndConstField::PndConstField().

41 { return fBx; }
Double_t fBx
Definition: PndConstPar.h:48
Double_t PndConstPar::GetBy ( ) const
inline

Definition at line 42 of file PndConstPar.h.

References fBy.

Referenced by PndConstField::PndConstField().

42 { return fBy; }
Double_t fBy
Definition: PndConstPar.h:48
Double_t PndConstPar::GetBz ( ) const
inline

Definition at line 43 of file PndConstPar.h.

References fBz.

Referenced by PndConstField::PndConstField().

43 { return fBz; }
Double_t fBz
Definition: PndConstPar.h:48
Bool_t PndConstPar::getParams ( FairParamList *  list)
virtual

Get parameters

Reimplemented from PndMapPar.

Definition at line 39 of file PndConstPar.cxx.

References fBx, fBy, fBz, PndMapPar::fType, PndMapPar::fXmax, PndMapPar::fXmin, PndMapPar::fYmax, PndMapPar::fYmin, PndMapPar::fZmax, and PndMapPar::fZmin.

40 {
41  if ( ! list ) return kFALSE;
42  if ( ! list->fill("Field Type", &fType) ) return kFALSE;
43  if ( ! list->fill("Field min x", &fXmin) ) return kFALSE;
44  if ( ! list->fill("Field max x", &fXmax) ) return kFALSE;
45  if ( ! list->fill("Field min y", &fYmin) ) return kFALSE;
46  if ( ! list->fill("Field max y", &fYmax) ) return kFALSE;
47  if ( ! list->fill("Field min z", &fZmin) ) return kFALSE;
48  if ( ! list->fill("Field max z", &fZmax) ) return kFALSE;
49  if ( ! list->fill("Field Bx", &fBx) ) return kFALSE;
50  if ( ! list->fill("Field By", &fBy) ) return kFALSE;
51  if ( ! list->fill("Field Bz", &fBz) ) return kFALSE;
52  return kTRUE;
53 }
Double_t fBy
Definition: PndConstPar.h:48
Double_t fYmax
Definition: PndMapPar.h:78
Double_t fBx
Definition: PndConstPar.h:48
Double_t fXmin
Definition: PndMapPar.h:77
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 fBz
Definition: PndConstPar.h:48
Double_t fZmax
Definition: PndMapPar.h:79
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 PndConstPar::putParams ( FairParamList *  list)
virtual

Put parameters

Reimplemented from PndMapPar.

Definition at line 19 of file PndConstPar.cxx.

References fBx, fBy, fBz, PndMapPar::fType, PndMapPar::fXmax, PndMapPar::fXmin, PndMapPar::fYmax, PndMapPar::fYmin, PndMapPar::fZmax, and PndMapPar::fZmin.

20 {
21  if ( ! list ) return;
22 
23  list->add("Field Type", fType);
24 
25  list->add("Field min x", fXmin);
26  list->add("Field max x", fXmax);
27  list->add("Field min y", fYmin);
28  list->add("Field max y", fYmax);
29  list->add("Field min z", fZmin);
30  list->add("Field max z", fZmax);
31  list->add("Field Bx", fBx);
32  list->add("Field By", fBy);
33  list->add("Field Bz", fBz);
34 
35 }
Double_t fBy
Definition: PndConstPar.h:48
Double_t fYmax
Definition: PndMapPar.h:78
Double_t fBx
Definition: PndConstPar.h:48
Double_t fXmin
Definition: PndMapPar.h:77
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 fBz
Definition: PndConstPar.h:48
Double_t fZmax
Definition: PndMapPar.h:79
void PndConstPar::SetParameters ( FairField *  field)

Set parameters from FairField

Definition at line 54 of file PndConstPar.cxx.

References fBx, fBy, fBz, PndMapPar::fMapName, PndMapPar::fPosX, PndMapPar::fPosY, PndMapPar::fPosZ, PndMapPar::fScale, PndMapPar::fType, PndMapPar::fXmax, PndMapPar::fXmin, PndMapPar::fYmax, PndMapPar::fYmin, PndMapPar::fZmax, PndMapPar::fZmin, PndConstField::GetBx(), PndConstField::GetBy(), PndConstField::GetBz(), PndConstField::GetXmax(), PndConstField::GetXmin(), PndConstField::GetYmax(), PndConstField::GetYmin(), PndConstField::GetZmax(), and PndConstField::GetZmin().

Referenced by PndConstField::FillParContainer(), if(), run(), run_test(), runMC(), runMC_dpm(), runSimHF_GiB_DC(), PndMultiFieldPar::SetParameters(), and sim_pid_runSimHF_GiB_DC().

55 {
56  PndConstField* fieldConst = (PndConstField*) field;
57  fBx = fieldConst->GetBx();
58  fBy = fieldConst->GetBy();
59  fBz = fieldConst->GetBz();
60  fXmin = fieldConst->GetXmin();
61  fXmax = fieldConst->GetXmax();
62  fYmin = fieldConst->GetYmin();
63  fYmax = fieldConst->GetYmax();
64  fZmin = fieldConst->GetZmin();
65  fZmax = fieldConst->GetZmax();
66  fMapName = "";
67  fPosX = fPosY = fPosZ = fScale = 0.;
68  fType = fieldConst->GetType();
69 }
Double_t fBy
Definition: PndConstPar.h:48
Double_t fPosZ
Definition: PndMapPar.h:88
Double_t fYmax
Definition: PndMapPar.h:78
Double_t GetYmin() const
Definition: PndConstField.h:88
Double_t fScale
Definition: PndMapPar.h:92
Double_t fBx
Definition: PndConstPar.h:48
Double_t GetXmin() const
Definition: PndConstField.h:86
virtual Double_t GetBx(Double_t x, Double_t y, Double_t z)
TString fMapName
Definition: PndMapPar.h:84
Double_t GetZmax() const
Definition: PndConstField.h:91
Double_t fXmin
Definition: PndMapPar.h:77
Double_t fPosY
Definition: PndMapPar.h:88
virtual Double_t GetBy(Double_t x, Double_t y, Double_t z)
Double_t GetZmin() const
Definition: PndConstField.h:90
Double_t fXmax
Definition: PndMapPar.h:77
Double_t fYmin
Definition: PndMapPar.h:78
Double_t GetYmax() const
Definition: PndConstField.h:89
Double_t fZmin
Definition: PndMapPar.h:79
Int_t fType
Definition: PndMapPar.h:73
virtual Double_t GetBz(Double_t x, Double_t y, Double_t z)
Double_t fBz
Definition: PndConstPar.h:48
Double_t fPosX
Definition: PndMapPar.h:88
Double_t GetXmax() const
Definition: PndConstField.h:87
Double_t fZmax
Definition: PndMapPar.h:79

Member Data Documentation

Double_t PndConstPar::fBx
protected

Field values in [kG]

Definition at line 48 of file PndConstPar.h.

Referenced by GetBx(), getParams(), putParams(), and SetParameters().

Double_t PndConstPar::fBy
protected

Definition at line 48 of file PndConstPar.h.

Referenced by GetBy(), getParams(), putParams(), and SetParameters().

Double_t PndConstPar::fBz
protected

Definition at line 48 of file PndConstPar.h.

Referenced by GetBz(), getParams(), putParams(), and SetParameters().

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

Double_t PndMapPar::fXmax
protectedinherited

Definition at line 77 of file PndMapPar.h.

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

Double_t PndMapPar::fXmin
protectedinherited

Field limits in case of constant field

Definition at line 77 of file PndMapPar.h.

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

Double_t PndMapPar::fYmax
protectedinherited

Definition at line 78 of file PndMapPar.h.

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

Double_t PndMapPar::fYmin
protectedinherited

Definition at line 78 of file PndMapPar.h.

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

Double_t PndMapPar::fZmax
protectedinherited

Definition at line 79 of file PndMapPar.h.

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

Double_t PndMapPar::fZmin
protectedinherited

Definition at line 79 of file PndMapPar.h.

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


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