def make_generated_events_str(config):
    """Generate configuration string for the number of generated
    events in each MC sample."""

    ngen = [v['ngen'] for k, v in config.items()]
    logemin = [v['logemin'] for k, v in config.items()]
    logemax = [v['logemax'] for k, v in config.items()]
    out_str = ''
    out_str += "Data.generated = %s\n" % str(ngen)
    out_str += "Data.logemin = %s\n" % str(logemin)
    out_str += "Data.logemax = %s\n" % str(logemax)
    return out_str