You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 36c9bb1
Browse filesBrowse the repository at this point in the historyBrowse files
// The current DF is not found in the parent map (this should not happen and is a fatal error)
310
364
auto rootFS = std::dynamic_pointer_cast<TFileFileSystem>(mCurrentFilesystem);
311
365
if (!parentFileName) {
312
-
throwstd::runtime_error(fmt::format(R"(parent file map exists but does not contain the current DF "{}" in file "{}")", folderName.c_str(), rootFS->GetFile()->GetName()));
313
-
returnnullptr;
366
+
throwInvalidAODReadError(fmt::format(R"(parent file map exists but does not contain the current DF "{}" in file "{}")", folderName.c_str(), rootFS->GetFile()->GetName()));
if (parentFileName->GetString().CompareTo(parentRootFS->GetFile()->GetName()) == 0) {
320
373
returnmParentFile;
321
374
} else {
322
-
mParentFile->closeInputFile();
323
-
mParentFile.reset();
375
+
releaseParentFile();
324
376
}
325
377
}
326
378
327
379
if (mLevel == mContext.allowedParentLevel) {
328
-
throwstd::runtime_error(fmt::format(R"(while looking for tree "{}", the parent file was requested but we are already at level {} of maximal allowed level {} for DF "{}" in file "{}")", treename.c_str(), mLevel, mContext.allowedParentLevel, folderName.c_str(),
329
-
rootFS->GetFile()->GetName()));
380
+
throwInvalidAODReadError(fmt::format(R"(while looking for tree "{}", the parent file was requested but we are already at level {} of maximal allowed level {} for DF "{}" in file "{}")", treename.c_str(), mLevel, mContext.allowedParentLevel, folderName.c_str(),
381
+
rootFS->GetFile()->GetName()));
330
382
}
331
383
332
384
LOGP(info, "Opening parent file {} for DF {}", parentFileName->GetString().Data(), folderName.c_str());
auto rootFS = std::dynamic_pointer_cast<TFileFileSystem>(mCurrentFilesystem);
506
-
throwstd::runtime_error(fmt::format(R"(No parent file found for "{}" while looking for level {} in "{}")", treename, wantedLevel, rootFS->GetFile()->GetName()));
578
+
throwInvalidAODReadError(fmt::format(R"(No parent file found for "{}" while looking for level {} in "{}")", treename, wantedLevel, rootFS->GetFile()->GetName()));
507
579
}
508
580
if (parentNumTF == -1) {
509
581
auto parentRootFS = std::dynamic_pointer_cast<TFileFileSystem>(parentFile->mCurrentFilesystem);
510
-
throwstd::runtime_error(fmt::format(R"(DF not found in parent file "{}")", parentRootFS->GetFile()->GetName()));
582
+
throwInvalidAODReadError(fmt::format(R"(DF not found in parent file "{}")", parentRootFS->GetFile()->GetName()));
std::throw_with_nested(InvalidAODReadError(fmt::format("Unable to resolve parent file for tree {}", treename)));
554
-
}
621
+
auto parentFile = getParentFile(counter, numTF, treename, wantedLevel, wantedOrigin);
555
622
if (parentFile == nullptr) {
556
623
auto rootFS = std::dynamic_pointer_cast<TFileFileSystem>(mCurrentFilesystem);
557
624
throwstd::runtime_error(fmt::format(R"(Couldn't get TTree "{}" from "{}". Please check https://aliceo2group.github.io/analysis-framework/docs/troubleshooting/#tree-not-found for more information.)", fullpath.path(), rootFS->GetFile()->GetName()));
0 commit comments