Exemplo n.º 1
0
    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,
                 options.rinv,
                 options.alpha,
                 generate=not options.madgraph,
                 boost=options.boost,
                 yukawa=options.yukawa)
Exemplo n.º 2
0
# incompatible args
if len(options.scan) > 0 and len(options.fragment) > 0:
    raise ValueError("scan and fragment are incompatible options, pick one!")

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

# make full config name using year
options.config = "SVJ.Production." + (
    str(options.year) + "." if len(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
elif len(options.fragment) > 0:
    options._outpre = [x + "_" + options.fragment for x in options._outpre]
    if len(options.inpre) > 0: options.inpre += "_" + options.fragment

if options.suep:
    _helper = suepHelper()
    _helper.setModel(options.mMediator, options.mDark, options.temperature,
                     options.decay)
    options.filterZ2 = False
    options.channel = ""
else:
    _helper = svjHelper()
    _helper.setModel(options.channel,
                     options.mMediator,