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
// FIXME: we should distinguish between an actually missing object and one which has a non compatible
417
417
// format.
418
418
if (!format) {
419
+
LOGP(debug, "Could not find tree {}. Trying in parent file.", fullpath.path());
420
+
auto parentFile = getParentFile(counter, numTF, treename);
421
+
if (parentFile != nullptr) {
422
+
int parentNumTF = parentFile->findDFNumber(0, folder.path());
423
+
if (parentNumTF == -1) {
424
+
auto parentRootFS = std::dynamic_pointer_cast<TFileFileSystem>(parentFile->mCurrentFilesystem);
425
+
throwstd::runtime_error(fmt::format(R"(DF {} listed in parent file map but not found in the corresponding file "{}")", folder.path(), parentRootFS->GetFile()->GetName()));
426
+
}
427
+
// first argument is 0 as the parent file object contains only 1 file
auto rootFS = std::dynamic_pointer_cast<TFileFileSystem>(mCurrentFilesystem);
419
431
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()));
auto fragment = format->MakeFragment(fullpath, {}, *physicalSchema);
434
446
435
-
if (!fragment.ok()) {
436
-
LOGP(debug, "Could not find tree {}. Trying in parent file.", fullpath.path());
437
-
auto parentFile = getParentFile(counter, numTF, treename);
438
-
if (parentFile != nullptr) {
439
-
int parentNumTF = parentFile->findDFNumber(0, folder.path());
440
-
if (parentNumTF == -1) {
441
-
auto parentRootFS = std::dynamic_pointer_cast<TFileFileSystem>(parentFile->mCurrentFilesystem);
442
-
throwstd::runtime_error(fmt::format(R"(DF {} listed in parent file map but not found in the corresponding file "{}")", folder.path(), parentRootFS->GetFile()->GetName()));
443
-
}
444
-
// first argument is 0 as the parent file object contains only 1 file
auto rootFS = std::dynamic_pointer_cast<TFileFileSystem>(mCurrentFilesystem);
448
-
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