Dev random

More macros (from G. mostly!) to get CMS compliant plots.