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.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Root programming Date
How to plot generalized hypergeometric function in ROOT? May 4, 2017
Fortran Getting the cubic root Sep 23, 2016
C/++/# ROOT TLegend fill box Jul 31, 2016
Root programming Feb 4, 2013
Hi,Below is a fortran program to calculate the roots of an Aug 9, 2011