Ejemplo n.º 1
0
def customise(process):

    #    process.dtDataIntegrityUnpacker.inputLabel = cms.untracked.InputTag('rawDataCollector')

    #    process.DQMOfflineCosmics.remove(process.hcalOfflineDQMSource)

    #    process.load("FWCore.Modules.printContent_cfi")
    #    process.myPath1 = cms.Path( process.printContent )

    process.options = cms.untracked.PSet(wantSummary=cms.untracked.bool(True))

    #using the DQMROOT means that the reco output will be empty
    process.DQMoutput.outputCommands.append('drop *')
    process.DQMoutput.outputCommands.append('keep *_MEtoEDMConverter_*_*')

    #    process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
    #     ignoreTotal=cms.untracked.int32(1),
    #     oncePerEventMode=cms.untracked.bool(False)
    #    )

    # Do not activate by default the logging of where each histogram is booked.
    process.DQMStore.verbose = cms.untracked.int32(2)
    process.load("DQMServices.Components.DQMStoreStats_cfi")
    process.stats = cms.Path(process.dqmStoreStats)
    process.schedule.insert(-1, process.stats)
    #Run only on fat events
    from HLTrigger.HLTfilters.hltHighLevel_cfi import hltHighLevel
    process.hltFatEventFilters = hltHighLevel.clone()
    process.hltFatEventFilters.throw = cms.bool(False)
    process.hltFatEventFilters.HLTPaths = cms.vstring('HLT_L1FatEvents_v*')
    #Run L1TReemulation
    from L1Trigger.Configuration.customiseReEmul import L1TReEmulFromRAW
    process = L1TReEmulFromRAW(process)
    #Put all together into one path, so that reco does not run on non-fat events
    process.p = cms.Path(process.hltFatEventFilters * process.RawToDigi *
                         process.reconstruction * process.DQMOffline *
                         process.L1TReEmul)
    process.e = cms.EndPath(process.DQMoutput)
    process.schedule = cms.Schedule(process.p, process.e)
    return (process)
Ejemplo n.º 2
0
        #'/store/mc/RunIISummer15GS/GluGluHToTauTau_M125_13TeV_powheg_pythia8/GEN-SIM/MCRUN2_71_V1-v1/60000/4473DFF5-9456-E511-9C4B-002590494C8A.root',
        #'/store/mc/RunIISummer15GS/GluGluHToTauTau_M125_13TeV_powheg_pythia8/GEN-SIM/MCRUN2_71_V1-v1/60000/587A9A92-A956-E511-AC52-0025904B11CC.root',
        #'/store/mc/RunIISummer15GS/GluGluHToTauTau_M125_13TeV_powheg_pythia8/GEN-SIM/MCRUN2_71_V1-v1/60000/7076052C-4A57-E511-B371-00259074AE9A.root',
        #'/store/mc/RunIISummer15GS/GluGluHToTauTau_M125_13TeV_powheg_pythia8/GEN-SIM/MCRUN2_71_V1-v1/60000/7CD6A6C7-9C56-E511-87E5-003048C75840.root',
        #'/store/mc/RunIISummer15GS/GluGluHToTauTau_M125_13TeV_powheg_pythia8/GEN-SIM/MCRUN2_71_V1-v1/60000/7E281C8E-4357-E511-8498-00259074AE80.root',
        #'/store/mc/RunIISummer15GS/GluGluHToTauTau_M125_13TeV_powheg_pythia8/GEN-SIM/MCRUN2_71_V1-v1/60000/98884797-4957-E511-82C6-00259073E504.root',
        #'/store/mc/RunIISummer15GS/GluGluHToTauTau_M125_13TeV_powheg_pythia8/GEN-SIM/MCRUN2_71_V1-v1/60000/BE274E99-4957-E511-88ED-0025907A1A2E.root',
    )

process.schedule = cms.Schedule()

## L1 emulation stuff

if not isMC:
    from L1Trigger.Configuration.customiseReEmul import L1TReEmulFromRAW
    process = L1TReEmulFromRAW(process)
else:
    from L1Trigger.Configuration.customiseReEmul import L1TReEmulMCFromRAW
    process = L1TReEmulMCFromRAW(process)
    from L1Trigger.Configuration.customiseUtils import L1TTurnOffUnpackStage2GtGmtAndCalo
    process = L1TTurnOffUnpackStage2GtGmtAndCalo(process)

process.load("L1Trigger.L1TCalorimeter.caloStage2Params_2016_v3_2_cfi")

#### handling of cms line options for tier3 submission
#### the following are dummy defaults, so that one can normally use the config changing file list by hand etc.

if options.JSONfile:
    print "Using JSON: ", options.JSONfile
    process.source.lumisToProcess = LumiList.LumiList(
        filename=options.JSONfile).getVLuminosityBlockRange()