code to produce histograms of muon variables