After turn csv to ttree, how to get value of column at each row

      for(int i = 0; i<tree->GetEntries(); i++) {
         if (tree->Branchname == i); {

My idea is to first loop all entries within tree, and then get value to do analysis. Can I use tree->Branchname to get value of column at each row?

Hi @xinyih8 ,

see Trees - ROOT , Dataframes - ROOT and the corresponding tutorials that are linked from there for explanations and documentation about reading TTree data.

You can also search the forum in case you have a specific question that is not answered by the docs. Let us know in case something is missing/unclear.


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