Exemplo n.º 1
0
cmssw_major = int(cmssw_version.split('_')[1])
if options.year == 2016 and not (cmssw_major == 7 or cmssw_major == 8):
    raise ValueError(
        "2016 config should not be used in non-2016 CMSSW version (" +
        cmssw_version + ")")
elif options.year == 2017 and not (cmssw_major == 9):
    raise ValueError(
        "2017 config should not be used in non-2017 CMSSW version (" +
        cmssw_version + ")")
elif options.year == 2018 and not (cmssw_major == 10):
    raise ValueError(
        "2018 config should not be used in non-2018 CMSSW version (" +
        cmssw_version + ")")

# check events
if options.maxEventsIn == -1: options.maxEventsIn = options.maxEvents

# make full config name using year
options.config = "SVJ.Production." + (
    str(options.year) + "." if options.year > 0 else "") + options.config

# this is needed because options.outpre is not really a list
setattr(options, "_outpre", [x for x in options.outpre])
if len(options.scan) > 0:
    options._outpre = [x + "_" + options.scan for x in options._outpre]
    if len(options.inpre) > 0: options.inpre += "_" + options.scan

_helper = svjHelper()
_helper.setModel(options.channel,
                 options.mMediator,
                 options.mDark,