Root Programming: Input/Output Comparison

  • Thread starter Thread starter lamyaa
  • Start date Start date
  • Tags Tags
    Programming Root
Click For Summary

Discussion Overview

The discussion revolves around comparing input and output data in ROOT programming, particularly focusing on visualizing mass number (A) through histograms or plots. Participants seek guidance on how to effectively overlay these data representations for analysis.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant inquires about methods to compare input and output data for mass number A in ROOT programming.
  • Another suggests drawing both datasets in the same diagram, mentioning the use of a histogram with the command "Draw('SAME')."
  • A different participant expresses a need for detailed instructions, indicating their beginner status in ROOT programming.
  • One participant notes the complexity of overlaying two histograms on the same canvas using the ROOT browser and recommends using the command prompt or writing a script instead.
  • This participant clarifies that ROOT is a collection of C++ libraries, implying that the programming aspect is fundamentally C++ rather than a distinct language.

Areas of Agreement / Disagreement

Participants express varying levels of familiarity with ROOT programming, and while some provide suggestions for visualizing data, there is no consensus on the best method or a complete solution to the original inquiry.

Contextual Notes

Participants have not fully resolved the specifics of how to overlay histograms, and there may be assumptions about prior knowledge of ROOT programming that are not explicitly stated.

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: 478
  • A-output.jpg
    A-output.jpg
    34.1 KB · Views: 469
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.
 

Similar threads

  • · Replies 29 ·
Replies
29
Views
4K
Replies
11
Views
4K
  • · 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
3K
  • · Replies 1 ·
Replies
1
Views
2K