Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Root programming

  1. Dec 29, 2012 #1
    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

    Attached Files:

  2. jcsd
  3. Dec 30, 2012 #2


    User Avatar
    2017 Award

    Staff: Mentor

    Draw both in the same diagram? (histogram->Draw("SAME") iirc).
    Draw a two-dimensional plot (probably not in the object browser)?
  4. Dec 31, 2012 #3
    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?
  5. Jan 4, 2013 #4
    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook