Skip to content

Commit

Permalink
Set RootInputFileSequence::usedFallback_
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Dec 9, 2021
1 parent 32d4be6 commit 8bece6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IOPool/Input/src/RootInputFileSequence.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ namespace edm {

lfn_ = logicalFileName().empty() ? fileNames()[0] : logicalFileName();
lfnHash_ = std::hash<std::string>()(lfn_);
usedFallback_ = false;

std::shared_ptr<InputFile> filePtr;
std::list<std::string> originalInfo;
Expand All @@ -238,6 +239,7 @@ namespace edm {
try {
std::unique_ptr<char[]> name(gSystem->ExpandPathName(it->c_str()));
filePtr = std::make_shared<InputFile>(name.get(), " Initiating request to open file ", inputType);
usedFallback_ = (it != fNames.begin());
break;
} catch (cms::Exception const& e) {
if (!skipBadFiles && std::next(it) == fNames.end()) {
Expand Down

0 comments on commit 8bece6a

Please sign in to comment.