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
LOGP(debug, "Could not find tree {}. Trying in parent file.", fullpath.path());
539
-
auto parentFile = getParentFile(counter, numTF, treename, wantedLevel, wantedOrigin);
540
-
if (parentFile != nullptr) {
541
-
int parentNumTF = parentFile->findDFNumber(0, folder.path());
542
-
if (parentNumTF == -1) {
543
-
auto parentRootFS = std::dynamic_pointer_cast<TFileFileSystem>(parentFile->mCurrentFilesystem);
544
-
throwstd::runtime_error(fmt::format(R"(DF {} listed in parent file map but not found in the corresponding file "{}")", folder.path(), parentRootFS->GetFile()->GetName()));
545
-
}
546
-
// first argument is 0 as the parent file object contains only 1 file
throwInvalidAODReadError(fmt::format("Unable to resolve parent file for tree {}: {}", treename, e.what()));
545
+
} catch (...) {
546
+
throwInvalidAODReadError(fmt::format("Unable to resolve parent file for tree {}", treename));
547
+
}
548
+
if (parentFile == nullptr) {
549
+
auto rootFS = std::dynamic_pointer_cast<TFileFileSystem>(mCurrentFilesystem);
550
+
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()));
548
551
}
549
-
auto rootFS = std::dynamic_pointer_cast<TFileFileSystem>(mCurrentFilesystem);
550
-
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()));
552
+
int parentNumTF = parentFile->findDFNumber(0, folder.path());
553
+
if (parentNumTF == -1) {
554
+
auto parentRootFS = std::dynamic_pointer_cast<TFileFileSystem>(parentFile->mCurrentFilesystem);
555
+
throwInvalidAODReadError(fmt::format(R"(DF {} listed in parent file map but not found in the corresponding file "{}")", folder.path(), parentRootFS->GetFile()->GetName()));
556
+
}
557
+
// first argument is 0 as the parent file object contains only 1 file
0 commit comments