Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed May 15, 2023
1 parent 99251fb commit 8947a79
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ROOTNTupleReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ std::unique_ptr<ROOTFrameData> ROOTNTupleReader::readEntry(const std::string& ca
const bool isSubsetColl = bufferClass == nullptr;

const auto& bufferFactory = podio::CollectionBufferFactory::instance();
auto maybeBuffers = bufferFactory.createBuffers(m_collectionInfo[category].type[i], m_collectionInfo[category].schemaVersion[i], isSubsetColl);
auto maybeBuffers = bufferFactory.createBuffers(m_collectionInfo[category].type[i],
m_collectionInfo[category].schemaVersion[i], isSubsetColl);
auto collBuffers = maybeBuffers.value_or(podio::CollectionReadBuffers{});

if (!maybeBuffers) {
std::cout << "WARNING: Buffers couldn't be created for collection " << m_collectionInfo[category].name[i]
<< " of type " << m_collectionInfo[category].type[i] << " and schema version " << m_collectionInfo[category].schemaVersion[i]
<< std::endl;
std::cout << "WARNING: Buffers couldn't be created for collection " << m_collectionInfo[category].name[i]
<< " of type " << m_collectionInfo[category].type[i] << " and schema version "
<< m_collectionInfo[category].schemaVersion[i] << std::endl;
return nullptr;
}

Expand Down

0 comments on commit 8947a79

Please sign in to comment.