Skip to content

Commit

Permalink
progressbar only if nevents!=0
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfschmieder authored and nshadskiy committed Oct 8, 2024
1 parent 2635d11 commit 95ea5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code_generation/analysis_template_friends.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ int main(int argc, char *argv[]) {
}
// initialize df
ROOT::RDataFrame df0(dataset);
ROOT::RDF::Experimental::AddProgressBar(df0); // add progress bar
// print all available branches to the log
if (nevents != 0) {
ROOT::RDF::Experimental::AddProgressBar(df0); // add progress bar
Logger::get("main")->debug("Available branches:");
for (auto const &branch : df0.GetColumnNames()) {
Logger::get("main")->debug("{}", branch);
Expand Down

0 comments on commit 95ea5cb

Please sign in to comment.