Root Programming: Input/Output Comparison

  • Thread starter Thread starter lamyaa
  • Start date Start date
  • Tags Tags
    Programming Root
AI Thread Summary
To compare input and output data in ROOT programming, users can overlay two histograms in the same diagram. While it is possible to use the ROOT browser, it is often easier to use the command prompt or write a script for execution. ROOT is built on C++ libraries, so understanding basic C++ commands is essential. Users can utilize commands like "Draw('SAME')" for histograms, and additional examples can be provided for clarity. For beginners, detailed explanations of these commands and plotting techniques are crucial for effective data visualization.
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: 462
  • A-output.jpg
    A-output.jpg
    34.1 KB · Views: 453
Technology 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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Back
Top