A client program that also fills in 2 histograms and creates a TTree. Every 1,000,000 fills the histogram and the…