Example #1
0
def getOptionsDataVersion(dataVersion, options=None, useDefaultSignalTrigger=True):
    options = getOptions(options)
    if options.dataVersion != "":
        dataVersion = options.dataVersion
    print "Data version is", dataVersion

    dataVersion = DataVersion(dataVersion)
    if useDefaultSignalTrigger and len(options.trigger) == 0 and dataVersion.isMC() and options.tauEmbeddingInput == 0:
        options.trigger = [dataVersion.getDefaultSignalTrigger()]

    return (options, dataVersion)
Example #2
0
def getOptionsDataVersion(dataVersion, options=None, useDefaultSignalTrigger=True):
    options = getOptions(options)

    if options.dataVersion != "":
        dataVersion = options.dataVersion
    print "Data version is", dataVersion

    dataVersion = DataVersion(dataVersion)

    if useDefaultSignalTrigger and len(options.trigger) == 0 and dataVersion.isMC():
        options.trigger = [dataVersion.getDefaultSignalTrigger()]

    return (options, dataVersion)
Example #3
0
process.muonSelectionSequence = muonSelection.addMuonSelectionForEmbedding(process)
#process.path = cms.Path(
#    process.commonSequence *
#    process.muonSelectionSequence
#)

# CHS jets + JER, JES variations
jetSelectionModules = [process.goodJets, process.goodJetFilter, process.muonSelectionJets]
for m in jetSelectionModules:
    process.muonSelectionSequence.remove(m)
#    process.path *= m

jetCollections = [
    ("",        "selectedPatJets"),
]
if dataVersion.isMC():
    jetCollections.extend([
    ("Smeared", "smearedPatJets"),
    ("ResDown", "smearedPatJetsResDown"),
    ("ResUp",   "smearedPatJetsResUp"),
    ("EnDown",  "shiftedPatJetsEnDownForCorrMEt"),
    ("EnUp",    "shiftedPatJetsEnUpForCorrMEt"),
    ])
jetPostfixes = ["", "Chs"]
for jetPostfix in jetPostfixes:
    for collPostfix, src in jetCollections:
        postfix = collPostfix+jetPostfix
        path = cms.Path(
            process.commonSequence *
            process.muonSelectionSequence
        )