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: 464
  • A-output.jpg
    A-output.jpg
    34.1 KB · Views: 454
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.
 
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
I am trying to run an .ipynb file and have installed Miniconda as well as created an environment as such -conda create -n <env_name> python=3.7 ipykernel jupyter I am assuming this is successful as I can activate this environment via the anaconda prompt and following command -conda activate <env_name> Then I downloaded and installed VS code and I am trying to edit an .ipynb file. I want to select a kernel, via VS Code but when I press the button on the upper right corner I am greeted...

Similar threads

Back
Top