23 #include "TObjArray.h"
61 obj=contList->FindObject(
"PndMultiFieldPar");
64 cout <<
"PndFieldCreator::SetParm() " << obj <<endl;
69 }
else if (contList->FindObject(
"PndFieldPar")) {
71 }
else if (contList->FindObject(
"PndSolenoidPar")) {
73 }
else if (contList->FindObject(
"PndDipolePar")) {
75 }
else if (contList->FindObject(
"PndTransPar")) {
77 }
else if (contList->FindObject(
"PndConstPar")) {
86 FairField *fMagneticField=0;
93 if (fMagneticField)
return fMagneticField;
103 if (Type==-1) {
delete MField; MField=0;}
108 TIterator *Iter=fParArray->MakeIterator();
111 while( (fPar = (
PndMapPar*)Iter->Next() ) ) {
139 if (Type==-1) {
delete fField1; fField1=0;}
140 if(fField1)fMagneticField=fField1;
145 if (Type==-1){
delete fField2; fField2=0;}
146 if(fField2)fMagneticField=fField2;
151 if (Type==-1) {
delete fField3; fField3=0;}
152 if(fField3)fMagneticField=fField3;
157 if (Type==-1) {
delete fField4; fField4=0;}
158 if(fField4)fMagneticField=fField4;
163 if (Type==-1){
delete fField5; fField5=0;}
164 if(fField5)fMagneticField=fField5;
172 fMagneticField->
Init();
174 return fMagneticField;