Skip to content
Snippets Groups Projects
Commit 909bbd78 authored by Maciej Pawel Szymanski's avatar Maciej Pawel Szymanski
Browse files

fix iterating over the branches to get the first pattern match

parent 9e4a5d43
1 merge request!67972make ROOTTREE default storage for metadata instead of ROOTTREEINDEX
......@@ -320,7 +320,7 @@ namespace xAOD {
const TObjArray * pBranches = tree->GetListOfBranches();
const std::regex pattern( ".*" + pre + ".*" );
for( int i = 0; i < pBranches->GetLast() ; ++i ) {
for( int i = 0; i <= pBranches->GetLast() ; ++i ) {
const std::string name = pBranches->At(i)->GetName();
if( std::regex_match( name, pattern ) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment