How to draw data from multiple files onto one board

  • I want to plot the data of 100 files on a graph.
    I can put the data of 1 file on a graph.

You can read the file in a loop and create a graph with each data common from the files add them in a multigraph and draw the multigraph.

1 Like
  • I want to use Tree to draw this graph.Can you give me some help?
tree->Draw("y:x","","L");

I mean how do you use tree to loop through all the files .

You should make a TChain with all the files.

How to make a TChain to loop over all the files?
Can you show me some programs.
Thank you.

TChain::TChain
TChain::Add

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