Online Analysis

Hello, I am trying to write an online analysis code so that we are able to make trees and plot a histogram from the data acquired. The leaf list in mind is as follows:


As an undergrad new to ROOT, I am not sure how to create and fill the Trees and how to draw the histograms in real time. I was wondering if I could get some help/hints to get started.

Thank you,


ROOT User’s Guide -> Trees -> Example 2: A Tree with a C Structure
ROOT User’s Guide -> Trees -> Example 4: A Tree with an Event Class

Indeed! As a matter of fact, nowadays I would recommend to not use leaf lists anymore, but rely on C++, by calling tree->Branch("branchname", &variable). But that’s awkward for multi-dimensional arrays. @pcanal what’s your recommendation?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.