Read from the file” model_event.root " a branch with particle collision events containing objects of the Event class (the file Event.cxx).
Build a two-dimensional histogram with the number of intervals (bin) equal to 50 and for the module radius of the vertex vector(√𝑉𝑥2+𝑉𝑦2+𝑉𝑧2) and full momentum (√𝑃𝑥2+𝑃𝑦2+𝑃𝑧2).
I attached a script with my attempt to solve problems, I can’t read the branch with Px, Py and Pz.
Help me, please! https://drive.google.com/drive/folders/1jjx54Lbo5nmAB6-rPpTQ5Fib4fskPi1B?usp=sharing
What is the type of fTracks, a TClonesArray? It looks like myEvent->GetTrack() should give you back some array-like data stored for that event. So you should not run a nested loop that calls again t->GetEntry, in that nested loop you should just iterate on the array you got and get the properties of its elements.