20 gSystem->ExpandPathName(dstFileName);
21 if (gSystem->AccessPathName(dstFileName.Data()) ==
true)
23 LOG(error)<<
"GetDSTField: no specified file: "<<dstFileName;
27 TFile* dst_file = TFile::Open(dstFileName.Data());
28 if (dst_file->IsZombie())
30 LOG(error)<<
"GetDSTField: opening the input file failed: "<<dstFileName;
38 LOG(error)<<
"GetDSTField: No 'DstRunHeader' branch found in the input file"<<dstFileName;
47 FairField* magField =
nullptr;
65 LOG(error)<<
"GetDSTField: This type of the magnetic field is not supported: "<<fieldType;