Root Programming: Input/Output Comparison

  • Thread starter Thread starter lamyaa
  • Start date Start date
  • Tags Tags
    Programming Root
Click For 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: 467
  • A-output.jpg
    A-output.jpg
    34.1 KB · Views: 457
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.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 29 ·
Replies
29
Views
3K
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
3
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K