CERN ROOT Tutorial 28: Using ROOT in Python with PyROOT

preview_player
Показать описание
You can visit the full playlist for watching all videos of this tutorial series:

In this video, I am explaining how to use ROOT in combination with Python with the help of the PyROOT Package which is included in the ROOT installation.

0:00 Intro
0:42 Creating Python File
2:22 Drawing Histogram
4:02 Installing Snap Version
6:09 Using pyroot Command

Рекомендации по теме
Комментарии
Автор

OMG! This is what I wanted for so long) But honestly, I am currently at lesson 18, so it will take me some time to come over here. Thank you so much!

shakhzod
Автор

Thanks man, I am just starting to work with pyroot. Your tutorials will help a lot.

iftikharahmad
Автор

man! you should have mentioned the method of executing the python script the : pyroot <file.py>, at the beginning of this lecture. I looked for this around 20 minutes everywhere while your video was paused at 3:45

shivstark
Автор

Hello! I was wondering whether you could help me in this as I was having trouble. I am using wsl. When I run root in terminal, everything runs just fine but when I try to run a python script that has "import ROOT", it says that there is no module named "ROOT"?

amritaanshsrivastava
Автор

Great i have learned alot from your video. Can you just guide me how to open root files in pyhton . For example i have completed my Geant4 simulation for different depth and i want to c the results in python

Aadamjani
Автор

Hi! Your videos have been super helpful, thank you! Can you maybe make a video on how to fit a Relativistic Breit Wigner function to a histogram? Thanks! :)

sumarifaul
Автор

May be you can also make a vedio about installation of root in windows?

sumankhan
Автор

Is there a way to use PyROOT from Jupyter notebook?

deyachatterjee
Автор

Hi, what type of template do you use? Thank you, you help me a lot

mariahelenamartins
Автор

How can I use a user defined function in TF1 in python? I am unable to define a function. In python, no datatype needs to be mentioned in the function definition. I tried this:
def fun(double x):
return x
f=TF1("f", "fun(x)", 0, 10)
f.Draw()
input()

but it did not work. Thanks in advance

souravdutta
Автор

Hi! Great videos, i have started to use ROOT to read .root files i acquire via a digitizer of a PAC machine and im having trouble reading them to use that data because need the data to be processed by a python script in order to perform some calculations. Can you help me by any chance?

andremiranda
Автор

I cannot use pyROOT of the box. Did you manually install pyRoot or did you install it with all ROOT packages? I am using a different OS from yours.

RemusPaun