Пример #1
0
def customiseSimL1EmulatorForPostLS1(process):
    #print "INFO:  Customising L1T emulator for 2015 run configuration"
    #print "INFO:  Customize the L1 menu"
    # the following line will break HLT if HLT menu is not updated with the corresponding menu
    process=customiseL1Menu(process)
    #print "INFO:  loading RCT LUTs"
    process.load("L1Trigger.L1TCalorimeter.caloStage1RCTLuts_cff")
    if hasattr(process,'L1simulation_step'):
        #print "INFO:  Removing GCT from simulation and adding new Stage 1"
        process.load('L1Trigger.L1TCalorimeter.caloStage1Params_cfi')
        process.load('L1Trigger.L1TCalorimeter.L1TCaloStage1_cff')
        process.L1simulation_step.replace(process.simGctDigis,process.L1TCaloStage1)
        process.rctUpgradeFormatDigis.regionTag = cms.InputTag("simRctDigis")
        process.rctUpgradeFormatDigis.emTag = cms.InputTag("simRctDigis")
        #print "New L1 simulation step is:", process.L1simulation_step
        process.simGtDigis.GmtInputTag = 'gtDigis'
        process.simGtDigis.GctInputTag = 'caloStage1LegacyFormatDigis'
        process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag( )
        process.gctDigiToRaw.gctInputLabel = 'caloStage1LegacyFormatDigis'
    return process
Пример #2
0
def customise(process):
    from L1Trigger.Configuration.L1Trigger_custom import customiseL1Menu
    process = customiseL1Menu(process)
    return process
Пример #3
0
# process

processName = "L1GtTriggerMenuTester"
process = cms.Process(processName)

process.load("L1TriggerConfig.L1GtConfigProducers.l1GtTriggerMenuTester_cfi")
process.l1GtTriggerMenuTester.OverwriteHtmlFile = True
process.l1GtTriggerMenuTester.HtmlFile = "L1Menu_Collisions2015_25ns_v1_L1T_Scales_20101224_Imp0_0x102f.html"
process.l1GtTriggerMenuTester.UseHltMenu = useHltMenuOption
process.l1GtTriggerMenuTester.HltProcessName = processName
#process.l1GtTriggerMenuTester.NoThrowIncompatibleMenu = False
#process.l1GtTriggerMenuTester.PrintPfsRates = True
#process.l1GtTriggerMenuTester.IndexPfSet = 1

from L1Trigger.Configuration.L1Trigger_custom import customiseL1Menu
process = customiseL1Menu(process)

# number of events and source
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(1))

if useHltMenuOption == True:
    readFiles = cms.untracked.vstring()
    secFiles = cms.untracked.vstring()
    selectedLumis = cms.untracked.VLuminosityBlockRange()
    selectedEvents = cms.untracked.VEventRange()

    # files are used only to run HLT on an event - the HLT menu is overwritten with the menu from HLT_GRun_cff
    readFiles.extend([
        'file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/DQMTest/MinimumBias__RAW__v1__165633__1CC420EE-B686-E011-A788-0030487CD6E8.root'
    ])
Пример #4
0
def customise(process):
    from L1Trigger.Configuration.L1Trigger_custom import customiseL1Menu
    process = customiseL1Menu(process)
    return process
Пример #5
0
# Frontier GlobalTag to use for EventSetup, should match source data

if useRelValSample == True :
    globalTag = 'auto:startup'
else :
    globalTag = 'auto:com10'        # GR_R_*


# L1 menu selection via L1Trigger_custom  - if True, modify correspondingly L1Trigger_custom

customL1Menu = True
#customL1Menu = False

if customL1Menu == True :
    from L1Trigger.Configuration.L1Trigger_custom import customiseL1Menu
    process=customiseL1Menu(process)

# reset all prescale factors and masks
from L1Trigger.Configuration.L1Trigger_custom import customiseResetPrescalesAndMasks
process = customiseResetPrescalesAndMasks(process)


# Input files
if useRelValSample == True :
    dataFiles = [
            '/store/relval/CMSSW_5_2_0_pre4/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START52_V1-v1/0033/02B4D46B-BB51-E111-A789-003048678A76.root',
            '/store/relval/CMSSW_5_2_0_pre4/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START52_V1-v1/0033/0EAB51E9-BD51-E111-8C43-003048679228.root',
            '/store/relval/CMSSW_5_2_0_pre4/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START52_V1-v1/0033/16B22002-C251-E111-822B-002618FDA208.root',
            '/store/relval/CMSSW_5_2_0_pre4/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START52_V1-v1/0033/28C19137-C351-E111-80CD-003048FFCBF0.root',
            '/store/relval/CMSSW_5_2_0_pre4/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START52_V1-v1/0033/3034CA86-C051-E111-84F5-00304867D446.root',
            '/store/relval/CMSSW_5_2_0_pre4/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START52_V1-v1/0033/30850A05-C051-E111-9BA8-002618FDA262.root',
Пример #6
0
def customiseSimL1EmulatorForPostLS1(process):
    process = customiseL1Menu(process)
    process = customiseSimL1EmulatorForPostLS1_nomenu(process)
    return process
def customiseL1TriggerConfiguration(process):
    
    # reset algorithm trigger masks
    
    resetL1GtTriggerMaskAlgoTrig = False
    resetL1GtTriggerMaskAlgoTrig = True
    
    if resetL1GtTriggerMaskAlgoTrig == True :
        from L1Trigger.Configuration.L1Trigger_custom import customiseResetMasksAlgoTriggers
        process=customiseResetMasksAlgoTriggers(process)

    # reset technical trigger masks
    
    resetL1GtTriggerMaskTechTrig = False
    resetL1GtTriggerMaskTechTrig = True
    
    if resetL1GtTriggerMaskTechTrig == True :
        from L1Trigger.Configuration.L1Trigger_custom import customiseResetMasksTechTriggers
        process=customiseResetMasksTechTriggers(process)
        
        
    # reset algorithm trigger veto masks
    
    resetL1GtTriggerMaskVetoAlgoTrig = False
    resetL1GtTriggerMaskVetoAlgoTrig = True
    
    if resetL1GtTriggerMaskVetoAlgoTrig == True :
        from L1Trigger.Configuration.L1Trigger_custom import customiseResetVetoMasksAlgoTriggers
        process=customiseResetVetoMasksAlgoTriggers(process)

    # reset technical trigger veto masks
    
    resetL1GtTriggerMaskVetoTechTrig = False
    resetL1GtTriggerMaskVetoTechTrig = True
    
    if resetL1GtTriggerMaskVetoTechTrig == True :
        from L1Trigger.Configuration.L1Trigger_custom import customiseResetVetoMasksTechTriggers
        process=customiseResetVetoMasksTechTriggers(process)

        

    
    # unprescale algorithm triggers (all prescale factors set to 1)
    
    # temporary solution
    unprescaleL1GtAlgoTriggers = False
    unprescaleL1GtAlgoTriggers = True
    
    if unprescaleL1GtAlgoTriggers == True :
        from L1Trigger.Configuration.L1Trigger_custom import customiseUnprescaleAlgoTriggers
        process=customiseUnprescaleAlgoTriggers(process)

    # unprescale technical triggers (all prescale factors set to 1)
    
    # temporary solution
    unprescaleL1GtTechTriggers = False
    unprescaleL1GtTechTriggers = True
    
    if unprescaleL1GtTechTriggers == True :
        from L1Trigger.Configuration.L1Trigger_custom import customiseUnprescaleTechTriggers
        process=customiseUnprescaleTechTriggers(process)



    # overwrite the L1 trigger menu
    
    overwriteL1Menu = False
    #overwriteL1Menu = True
    
    if overwriteL1Menu == True :
        from L1Trigger.Configuration.L1Trigger_custom import customiseL1Menu
        process=customiseL1Menu(process)
        
        
 
    #
    return (process)
Пример #8
0
def customiseSimL1EmulatorForPostLS1(process):
    #print "INFO:  Customising L1T emulator for 2015 run configuration"
    #print "INFO:  Customize the L1 menu"
    # the following line will break HLT if HLT menu is not updated with the corresponding menu
    process = customiseL1Menu(process)
    #print "INFO:  loading RCT LUTs"
    #process.load("L1Trigger.L1TCalorimeter.caloStage1RCTLuts_cff")

    process.load("L1Trigger.L1TCommon.l1tDigiToRaw_cfi")
    process.load("L1Trigger.L1TCommon.l1tRawToDigi_cfi")
    process.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")

    process.load('L1Trigger.L1TCalorimeter.caloStage1Params_cfi')
    process.load('L1Trigger.L1TCalorimeter.L1TCaloStage1_cff')

    if hasattr(process, 'simGtDigis'):
        process.simGtDigis.GmtInputTag = 'simGmtDigis'
        process.simGtDigis.GctInputTag = 'simCaloStage1LegacyFormatDigis'
        process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag()
    if hasattr(process, 'gctDigiToRaw'):
        process.gctDigiToRaw.gctInputLabel = 'simCaloStage1LegacyFormatDigis'

    if hasattr(process, 'simGctDigis'):
        for path in process.paths:
            #print "INFO:  checking path ", path
            #print "BEFORE:  ", getattr(process,path)
            getattr(process, path).replace(process.simGctDigis,
                                           process.L1TCaloStage1)
            #print "AFTER:  ", getattr(process,path)

    if hasattr(process, 'DigiToRaw'):
        #print "INFO:  customizing DigiToRaw for Stage 1"
        #print process.DigiToRaw
        process.l1tDigiToRaw.InputLabel = cms.InputTag(
            "simCaloStage1FinalDigis", "")
        process.l1tDigiToRaw.TauInputLabel = cms.InputTag(
            "simCaloStage1FinalDigis", "rlxTaus")
        process.l1tDigiToRaw.IsoTauInputLabel = cms.InputTag(
            "simCaloStage1FinalDigis", "isoTaus")
        process.l1tDigiToRaw.HFBitCountsInputLabel = cms.InputTag(
            "simCaloStage1FinalDigis", "HFBitCounts")
        process.l1tDigiToRaw.HFRingSumsInputLabel = cms.InputTag(
            "simCaloStage1FinalDigis", "HFRingSums")
        process.l1tDigiToRawSeq = cms.Sequence(process.gctDigiToRaw +
                                               process.l1tDigiToRaw)
        process.DigiToRaw.replace(process.gctDigiToRaw,
                                  process.l1tDigiToRawSeq)
        #print process.DigiToRaw
        if hasattr(process, 'rawDataCollector'):
            #print "INFO:  customizing rawDataCollector for Stage 1"
            process.rawDataCollector.RawCollectionList.append(
                cms.InputTag("l1tDigiToRaw"))
    if hasattr(process, 'RawToDigi'):
        #print "INFO:  customizing L1RawToDigi for Stage 1"
        #print process.RawToDigi
        process.L1RawToDigiSeq = cms.Sequence(
            process.gctDigis + process.caloStage1Digis +
            process.caloStage1LegacyFormatDigis)
        process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
        #print process.RawToDigi

    if hasattr(process, 'HLTL1UnpackerSequence'):
        #print "INFO: customizing HLTL1UnpackerSequence for Stage 1"
        #print process.HLTL1UnpackerSequence

        # extend sequence to add Layer 1 unpacking and conversion back to legacy format
        process.hltCaloStage1Digis = process.caloStage1Digis.clone()
        process.hltCaloStage1LegacyFormatDigis = process.caloStage1LegacyFormatDigis.clone(
        )
        process.hltCaloStage1LegacyFormatDigis.InputCollection = cms.InputTag(
            "hltCaloStage1Digis")
        process.hltCaloStage1LegacyFormatDigis.InputRlxTauCollection = cms.InputTag(
            "hltCaloStage1Digis:rlxTaus")
        process.hltCaloStage1LegacyFormatDigis.InputIsoTauCollection = cms.InputTag(
            "hltCaloStage1Digis:isoTaus")
        process.hltCaloStage1LegacyFormatDigis.InputHFSumsCollection = cms.InputTag(
            "hltCaloStage1Digis:HFRingSums")
        process.hltCaloStage1LegacyFormatDigis.InputHFCountsCollection = cms.InputTag(
            "hltCaloStage1Digis:HFBitCounts")
        #process.hltL1RawToDigiSeq = cms.Sequence(process.hltGctDigis+process.hltCaloStage1 + process.hltCaloStage1LegacyFormatDigis)
        process.hltL1RawToDigiSeq = cms.Sequence(
            process.hltCaloStage1Digis +
            process.hltCaloStage1LegacyFormatDigis)
        process.HLTL1UnpackerSequence.replace(process.hltGctDigis,
                                              process.hltL1RawToDigiSeq)

    alist = ['hltL1GtObjectMap']
    for a in alist:
        #print "INFO: checking for", a, "in process."
        if hasattr(process, a):
            #print "INFO: customizing ", a, "to use new calo Stage 1 digis converted to legacy format"
            getattr(
                process,
                a).GctInputTag = cms.InputTag("hltCaloStage1LegacyFormatDigis")

    alist = ['hltL1extraParticles']
    for a in alist:
        #print "INFO: checking for", a, "in process."
        if hasattr(process, a):
            #print "INFO:  customizing ", a, "to use new calo Stage 1 digis converted to legacy format"
            getattr(process, a).etTotalSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis")
            getattr(process, a).nonIsolatedEmSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis", "nonIsoEm")
            getattr(process, a).etMissSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis")
            getattr(process, a).htMissSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis")
            getattr(process, a).forwardJetSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis", "forJets")
            getattr(process, a).centralJetSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis", "cenJets")
            getattr(process, a).tauJetSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis", "tauJets")
            getattr(process, a).isoTauJetSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis", "isoTauJets")
            getattr(process, a).isolatedEmSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis", "isoEm")
            getattr(
                process,
                a).etHadSource = cms.InputTag("hltCaloStage1LegacyFormatDigis")
            getattr(process, a).hfRingEtSumsSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis")
            getattr(process, a).hfRingBitCountsSource = cms.InputTag(
                "hltCaloStage1LegacyFormatDigis")

    blist = ['l1extraParticles', 'recoL1extraParticles', 'dqmL1ExtraParticles']
    for b in blist:
        #print "INFO: checking for", b, "in process."
        if hasattr(process, b):
            #print "BEFORE:  ", getattr(process, b).centralJetSource
            if (getattr(process, b).centralJetSource == cms.InputTag(
                    "simGctDigis", "cenJets")):
                getattr(
                    process,
                    b).etTotalSource = cms.InputTag("simCaloStage1FormatDigis")
                getattr(process, b).nonIsolatedEmSource = cms.InputTag(
                    "simCaloStage1FormatDigis", "nonIsoEm")
                getattr(
                    process,
                    b).etMissSource = cms.InputTag("simCaloStage1FormatDigis")
                getattr(
                    process,
                    b).htMissSource = cms.InputTag("simCaloStage1FormatDigis")
                getattr(process, b).forwardJetSource = cms.InputTag(
                    "simCaloStage1FormatDigis", "forJets")
                getattr(process, b).centralJetSource = cms.InputTag(
                    "simCaloStage1FormatDigis", "cenJets")
                getattr(process, b).tauJetSource = cms.InputTag(
                    "simCaloStage1FormatDigis", "tauJets")
                getattr(process, b).isoTauJetSource = cms.InputTag(
                    "simCaloStage1FormatDigis", "isoTauJets")
                getattr(process, b).isolatedEmSource = cms.InputTag(
                    "simCaloStage1FormatDigis", "isoEm")
                getattr(
                    process,
                    b).etHadSource = cms.InputTag("simCaloStage1FormatDigis")
                getattr(process, b).hfRingEtSumsSource = cms.InputTag(
                    "simCaloStage1FormatDigis")
                getattr(process, b).hfRingBitCountsSource = cms.InputTag(
                    "simCaloStage1FormatDigis")
            else:
                #print "INFO:  customizing ", b, "to use new calo Stage 1 digis converted to legacy format"
                getattr(process, b).etTotalSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis")
                getattr(process, b).nonIsolatedEmSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis", "nonIsoEm")
                getattr(process, b).etMissSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis")
                getattr(process, b).htMissSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis")
                getattr(process, b).forwardJetSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis", "forJets")
                getattr(process, b).centralJetSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis", "cenJets")
                getattr(process, b).tauJetSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis", "tauJets")
                getattr(process, b).isoTauJetSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis", "isoTauJets")
                getattr(process, b).isolatedEmSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis", "isoEm")
                getattr(process, b).etHadSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis")
                getattr(process, b).hfRingEtSumsSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis")
                getattr(process, b).hfRingBitCountsSource = cms.InputTag(
                    "caloStage1LegacyFormatDigis")
            #print "AFTER:  ", getattr(process, b).centralJetSource

#    process.MessageLogger = cms.Service(
#        "MessageLogger",
#        destinations   = cms.untracked.vstring(
#            'detailedInfo',
#            'critical'
#            ),
#        detailedInfo   = cms.untracked.PSet(
#            threshold  = cms.untracked.string('DEBUG')
#            ),
#        debugModules = cms.untracked.vstring(
#            'l1tDigiToRaw', 'l1tRawToDigi'
#            )
#        )
#    print process.HLTSchedule

    return process
Пример #9
0
def customiseSimL1EmulatorForPostLS1(process):
    #print "INFO:  Customising L1T emulator for 2015 run configuration"
    #print "INFO:  Customize the L1 menu"
    # the following line will break HLT if HLT menu is not updated with the corresponding menu
    process=customiseL1Menu(process)
    #print "INFO:  loading RCT LUTs"
    #process.load("L1Trigger.L1TCalorimeter.caloStage1RCTLuts_cff")

    process.load("L1Trigger.L1TCommon.l1tDigiToRaw_cfi")
    process.load("L1Trigger.L1TCommon.l1tRawToDigi_cfi")
    process.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")

    process.load('L1Trigger.L1TCalorimeter.caloStage1Params_cfi')
    process.load('L1Trigger.L1TCalorimeter.L1TCaloStage1_cff')

    if hasattr(process, 'simGtDigis'):
        process.simGtDigis.GmtInputTag = 'simGmtDigis'
        process.simGtDigis.GctInputTag = 'simCaloStage1LegacyFormatDigis'
        process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag( )
    if hasattr(process, 'gctDigiToRaw'):
        process.gctDigiToRaw.gctInputLabel = 'simCaloStage1LegacyFormatDigis'

    if hasattr(process, 'simGctDigis'):
        for sequence in process.sequences:
            #print "INFO:  checking sequence ", sequence
            #print "BEFORE:  ", getattr(process,sequence)
            getattr(process,sequence).replace(process.simGctDigis,process.L1TCaloStage1)
            #print "AFTER:  ", getattr(process,sequence)
        for path in process.paths:
            #print "INFO:  checking path ", path
            #print "BEFORE:  ", getattr(process,path)
            getattr(process,path).replace(process.simGctDigis,process.L1TCaloStage1)
            #print "AFTER:  ", getattr(process,path)

    if hasattr(process, 'DigiToRaw'):
        #print "INFO:  customizing DigiToRaw for Stage 1"
        #print process.DigiToRaw
        process.l1tDigiToRaw.InputLabel = cms.InputTag("simCaloStage1FinalDigis", "")
        process.l1tDigiToRaw.TauInputLabel = cms.InputTag("simCaloStage1FinalDigis", "rlxTaus")
        process.l1tDigiToRaw.IsoTauInputLabel = cms.InputTag("simCaloStage1FinalDigis", "isoTaus")
        process.l1tDigiToRaw.HFBitCountsInputLabel = cms.InputTag("simCaloStage1FinalDigis", "HFBitCounts")
        process.l1tDigiToRaw.HFRingSumsInputLabel = cms.InputTag("simCaloStage1FinalDigis", "HFRingSums")
        process.l1tDigiToRawSeq = cms.Sequence(process.gctDigiToRaw + process.l1tDigiToRaw);
        process.DigiToRaw.replace(process.gctDigiToRaw, process.l1tDigiToRawSeq)
        #print process.DigiToRaw
        if hasattr(process, 'rawDataCollector'):
            #print "INFO:  customizing rawDataCollector for Stage 1"
            process.rawDataCollector.RawCollectionList.append(cms.InputTag("l1tDigiToRaw"))
    if hasattr(process, 'RawToDigi'):
        #print "INFO:  customizing L1RawToDigi for Stage 1"
        #print process.RawToDigi
        process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
        process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
        #print process.RawToDigi

    if hasattr(process, 'HLTL1UnpackerSequence'):
        #print "INFO: customizing HLTL1UnpackerSequence for Stage 1"
        #print process.HLTL1UnpackerSequence

        # extend sequence to add Layer 1 unpacking and conversion back to legacy format
        process.hltCaloStage1Digis = process.caloStage1Digis.clone()
        process.hltCaloStage1LegacyFormatDigis = process.caloStage1LegacyFormatDigis.clone()
        process.hltCaloStage1LegacyFormatDigis.InputCollection = cms.InputTag("hltCaloStage1Digis")
        process.hltCaloStage1LegacyFormatDigis.InputRlxTauCollection = cms.InputTag("hltCaloStage1Digis:rlxTaus")
        process.hltCaloStage1LegacyFormatDigis.InputIsoTauCollection = cms.InputTag("hltCaloStage1Digis:isoTaus")
        process.hltCaloStage1LegacyFormatDigis.InputHFSumsCollection = cms.InputTag("hltCaloStage1Digis:HFRingSums")
        process.hltCaloStage1LegacyFormatDigis.InputHFCountsCollection = cms.InputTag("hltCaloStage1Digis:HFBitCounts")
        #process.hltL1RawToDigiSeq = cms.Sequence(process.hltGctDigis+process.hltCaloStage1 + process.hltCaloStage1LegacyFormatDigis)
        process.hltL1RawToDigiSeq = cms.Sequence(process.hltCaloStage1Digis + process.hltCaloStage1LegacyFormatDigis)
        process.HLTL1UnpackerSequence.replace(process.hltGctDigis, process.hltL1RawToDigiSeq)

    alist=['hltL1GtObjectMap']
    for a in alist:
        #print "INFO: checking for", a, "in process."
        if hasattr(process,a):
            #print "INFO: customizing ", a, "to use new calo Stage 1 digis converted to legacy format"
            getattr(process, a).GctInputTag = cms.InputTag("hltCaloStage1LegacyFormatDigis")

    alist=['hltL1extraParticles']
    for a in alist:
        #print "INFO: checking for", a, "in process."
        if hasattr(process,a):
            #print "INFO:  customizing ", a, "to use new calo Stage 1 digis converted to legacy format"
            getattr(process, a).etTotalSource = cms.InputTag("hltCaloStage1LegacyFormatDigis")
            getattr(process, a).nonIsolatedEmSource = cms.InputTag("hltCaloStage1LegacyFormatDigis","nonIsoEm")
            getattr(process, a).etMissSource = cms.InputTag("hltCaloStage1LegacyFormatDigis")
            getattr(process, a).htMissSource = cms.InputTag("hltCaloStage1LegacyFormatDigis")
            getattr(process, a).forwardJetSource = cms.InputTag("hltCaloStage1LegacyFormatDigis","forJets")
            getattr(process, a).centralJetSource = cms.InputTag("hltCaloStage1LegacyFormatDigis","cenJets")
            getattr(process, a).tauJetSource = cms.InputTag("hltCaloStage1LegacyFormatDigis","tauJets")
            getattr(process, a).isoTauJetSource = cms.InputTag("hltCaloStage1LegacyFormatDigis","isoTauJets")
            getattr(process, a).isolatedEmSource = cms.InputTag("hltCaloStage1LegacyFormatDigis","isoEm")
            getattr(process, a).etHadSource = cms.InputTag("hltCaloStage1LegacyFormatDigis")
            getattr(process, a).hfRingEtSumsSource = cms.InputTag("hltCaloStage1LegacyFormatDigis")
            getattr(process, a).hfRingBitCountsSource = cms.InputTag("hltCaloStage1LegacyFormatDigis")

    blist=['l1extraParticles','recoL1extraParticles','dqmL1ExtraParticles']
    for b in blist:
        #print "INFO: checking for", b, "in process."
        if hasattr(process,b):
            #print "BEFORE:  ", getattr(process, b).centralJetSource
            if (getattr(process, b).centralJetSource == cms.InputTag("simGctDigis","cenJets")):
                getattr(process, b).etTotalSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
                getattr(process, b).nonIsolatedEmSource = cms.InputTag("simCaloStage1LegacyFormatDigis","nonIsoEm")
                getattr(process, b).etMissSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
                getattr(process, b).htMissSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
                getattr(process, b).forwardJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","forJets")
                getattr(process, b).centralJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","cenJets")
                getattr(process, b).tauJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","tauJets")
                getattr(process, b).isoTauJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","isoTauJets")
                getattr(process, b).isolatedEmSource = cms.InputTag("simCaloStage1LegacyFormatDigis","isoEm")
                getattr(process, b).etHadSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
                getattr(process, b).hfRingEtSumsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
                getattr(process, b).hfRingBitCountsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
            else:
                #print "INFO:  customizing ", b, "to use new calo Stage 1 digis converted to legacy format"
                getattr(process, b).etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis")
                getattr(process, b).nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm")
                getattr(process, b).etMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
                getattr(process, b).htMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
                getattr(process, b).forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets")
                getattr(process, b).centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets")
                getattr(process, b).tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets")
                getattr(process, b).isoTauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets")
                getattr(process, b).isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm")
                getattr(process, b).etHadSource = cms.InputTag("caloStage1LegacyFormatDigis")
                getattr(process, b).hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis")
                getattr(process, b).hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis")
            #print "AFTER:  ", getattr(process, b).centralJetSource

#    process.MessageLogger = cms.Service(
#        "MessageLogger",
#        destinations   = cms.untracked.vstring(
#            'detailedInfo',
#            'critical'
#            ),
#        detailedInfo   = cms.untracked.PSet(
#            threshold  = cms.untracked.string('DEBUG')
#            ),
#        debugModules = cms.untracked.vstring(
#            'l1tDigiToRaw', 'l1tRawToDigi'
#            )
#        )
#    print process.HLTSchedule

    return process