This is an example macro for generating single particle spectra according to flat distributions and user- defined distributions in pt and eta.