Homework tutorial 14
- Due 10 Nov 2019 by 23:59
- Points 5
- Submitting a text entry box, a website url, or a file upload
- Available 18 Oct 2019 at 0:00 - 11 Nov 2019 at 23:59
The compulsory solution (max 4 points) to the exercises that should be submitted is
•a macro called EG_v2.C
•the macro have to be compilable in ROOT without any warnings:.L EG_v2.C+
•the macro must have a function called: void rootfuncgenerate(Int_t nEvents, Int_t nTracks, Double_t v2)
•the function should produce a histogram called hPhi that is drawn and shows the generated φ distribution
•the function should produce a text file called phi_dist.dat with the generated events.
VG solution tutorial 14
To be eligible for a VG (max 5 points) one should implement also the box generate method, see Sec. 3.1. The solution should have the following additional elements:
•the macro must have a function called: void boxgenerate(Int_t nEvents, Int_t nTracks, Double_t v2)
•the function should produce debug histograms similar to those shown in Fig. 3