00001 import FWCore.ParameterSet.Config as cms
00002
00003 def customise(process):
00004 REDIGIInputEventSkimming= cms.PSet(
00005 inputCommands=cms.untracked.vstring('drop *')
00006 )
00007
00008 HLTCleaning= cms.PSet(
00009 inputCommands=cms.untracked.vstring('drop FEDRawDataCollection_*_*_*')
00010 )
00011
00012 REDIGIInputEventSkimming.inputCommands.extend(process.RecoGenJetsFEVT.outputCommands)
00013 REDIGIInputEventSkimming.inputCommands.extend(process.RecoGenMETFEVT.outputCommands)
00014 REDIGIInputEventSkimming.inputCommands.extend(process.SimG4CoreRAW.outputCommands)
00015 REDIGIInputEventSkimming.inputCommands.extend(process.GeneratorInterfaceRAW.outputCommands)
00016 REDIGIInputEventSkimming.inputCommands.extend(process.IOMCRAW.outputCommands)
00017 REDIGIInputEventSkimming.inputCommands.extend(process.HLTriggerRAW.outputCommands)
00018 REDIGIInputEventSkimming.inputCommands.extend(HLTCleaning.inputCommands)
00019
00020 process.source.inputCommands = REDIGIInputEventSkimming.inputCommands
00021 process.source.dropDescendantsOfDroppedBranches=cms.untracked.bool(False)
00022
00023 if hasattr(process,"RandomNumberGeneratorService"):
00024 del process.RandomNumberGeneratorService.theSource
00025 else:
00026 process.load("IOMC/RandomEngine/IOMC_cff")
00027 del process.RandomNumberGeneratorService.theSource
00028
00029 process.RandomNumberGeneratorService.restoreStateLabel = cms.untracked.string('randomEngineStateProducer')
00030
00031
00032 process.outputRaw = cms.OutputModule("PoolOutputModule",
00033 outputCommands = process.RAWSIMEventContent.outputCommands,
00034 fileName = cms.untracked.string('New_RAWSIM.root'),
00035 dataset = cms.untracked.PSet(dataTier = cms.untracked.string(''),
00036 filterName = cms.untracked.string('')
00037 )
00038 )
00039
00040 process.out_step_raw = cms.EndPath(process.outputRaw)
00041 process.schedule.append(process.out_step_raw)
00042
00043 return(process)