CERN ROOT Tutorial 3: Creating First Histogram

Опубликовано: 21 Октябрь 2024
на канале: Physics Matters
28,890
351

You can visit the full playlist for watching all videos of this tutorial series:

   • CERN ROOT Tutorials  

You can also visit my new website with ROOT tutorials:

https://physicus.net/index.php?url=so...

Create Histogram with 100 bins from 0 to 100:
TH1F *hist = new TH1F("hist", "Histogram", 100, 0, 100);

Create Canvas:
TCanvas *c1 = new TCanvas();


0:00 Preparation
1:18 Create Histogram
3:11 Create Canvas
3:30 Draw Empty Histogram
4:13 Filling Histogram
5:08 Adding Axis Titles


Twitter:   / mattersphysics   Discord:   / discord   If you are interested in fundamental physics, you can visit my new website project: https://physicus.net/