12 #include <FairField.h>
13 #include <FairFieldFactory.h>
14 #include <FairRunAna.h>
15 #include <FairRuntimeDb.h>
17 #include <RtypesCore.h>
34 FairRunAna* Run = FairRunAna::Instance();
35 FairRuntimeDb* RunDB = Run->GetRuntimeDb();
40 FairField* fMagneticField = 0;
43 cerr <<
"-E- No field parameters available!" << endl;
62 cerr <<
"-W- FairRunAna::GetField: Unknown field type " << fType << endl;
63 cout <<
"New field at " << fMagneticField <<
", type " << fType << endl;
66 fMagneticField->Init();
67 fMagneticField->Print(
"");
70 return fMagneticField;