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:

"ts/i:ds[16][8]/s:tf/i:hf[4]/i:df[4][4096]/s"

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,

Daniela

Maybe:
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
${ROOTSYS}/tutorials/tree/*

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.