Register to reply 
Root programming 
Share this thread: 
#1
Dec2912, 10:57 PM

P: 5

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 


#2
Dec3012, 08:33 AM

Mentor
P: 11,815

Draw both in the same diagram? (histogram>Draw("SAME") iirc).
Draw a twodimensional plot (probably not in the object browser)? 


#3
Dec3112, 12:13 AM

P: 5

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? 


#4
Jan413, 09:53 AM

P: 53

Root programming
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. 


Register to reply 
Related Discussions  
How do you superimpose graphs from different root files in C++/root  Programming & Computer Science  1  
Recommended programming language (and texts) for middleschool beginner programming  Programming & Computer Science  9  
Square root and cube root question  Precalculus Mathematics Homework  4  
Need help with finding Root of an Equation, given another root. Analysis Question.  Precalculus Mathematics Homework  10  
Proove that the cubic root of 2 + the square root of 2 is irrational  Calculus & Beyond Homework  4 