35 std::string checkFilename {
""};
36 std::string membername {
""};
37 std::size_t found = filename.find(
"#");
38 if (found != std::string::npos) {
39 checkFilename = filename.substr(0, found);
40 membername = filename.substr(found + 1);
43 checkFilename = filename;
46 bool wasfound = kFALSE;
52 if (stat(checkFilename.c_str(), &
buffer) == 0) { wasfound = kTRUE; }
55 LOG(error) <<
"Input File " << checkFilename <<
" not found";
59 if (membername.compare(
"") != 0) {
60 TFile* fzip = TFile::Open(checkFilename.c_str());
62 TArchiveFile* archive = fzip->GetArchive();
64 TObjArray* members = archive->GetMembers();
65 if (members->FindObject(membername.c_str()) == 0) {
66 LOG(error) <<
"File " << membername <<
" not found in zipfile " << checkFilename;
70 LOG(info) <<
"File " << membername <<
" found in zipfile " << checkFilename;
75 LOG(error) <<
"Zipfile " << checkFilename <<
" does not contain an archive";
82 LOG(error) <<
"Could not open zipfile " << checkFilename;
87 TFile* rootfile = TFile::Open(checkFilename.c_str());
88 if (rootfile->IsOpen()) {
89 LOG(info) <<
"File " << checkFilename <<
" is a ROOT file.";
93 LOG(error) <<
"File " << checkFilename <<
" is no ROOT file.";