Root Programming: Input/Output Comparison

  • Thread starter Thread starter lamyaa
  • Start date Start date
  • Tags Tags
    Programming Root
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
lamyaa
Messages
5
Reaction score
0
Hi all,

I want ask you about root programming , if I have A (mass number) for output and input data for experiment how I can comparison between A input and A output
see attachments
 

Attachments

  • A-input.jpg
    A-input.jpg
    32.8 KB · Views: 489
  • A-output.jpg
    A-output.jpg
    34.1 KB · Views: 475
Physics news on Phys.org
Draw both in the same diagram? (histogram->Draw("SAME") iirc).
Draw a two-dimensional plot (probably not in the object browser)?
 
thanks a lot ,

but I am beginner in this programming

please, can you explain this point in details

how I can draw both in the same diagram?
 
It's not super easy to overlay two histograms on the same canvas in root using the root browser.

It's easiest to just use the command prompt or write a script to be executed by root. ROOT is essentially just a collection of C++ libraries, so there really isn't 'root programming' its just C++. One of the previous posters already gave the basic commands for that. I can give a more explicit example if you need it.