File indexing completed on 2024-04-06 12:30:51
0001
0002
0003
0004
0005
0006 import FWCore.ParameterSet.Config as cms
0007 import random
0008
0009
0010 from Configuration.StandardSequences.Eras import eras
0011 process = cms.Process('DIGI2RAW',eras.Run2_2017)
0012
0013
0014 process.load('Configuration.StandardSequences.Services_cff')
0015 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0016 process.load('FWCore.MessageService.MessageLogger_cfi')
0017 process.load('Configuration.EventContent.EventContent_cff')
0018 process.load('Configuration.StandardSequences.MagneticField_cff')
0019 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0020 process.load('Configuration.StandardSequences.Digi_cff')
0021 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0022 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0023 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025
0026 process.load("CondCore.CondDB.CondDB_cfi")
0027 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0028 process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi")
0029
0030 process.maxEvents = cms.untracked.PSet(
0031 input = cms.untracked.int32(-1)
0032 )
0033
0034 process.RandomNumberGeneratorService.g4SimHits.initialSeed = cms.untracked.uint32(random.randint(0,900000000))
0035 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = cms.untracked.uint32(random.randint(0,900000000))
0036
0037
0038
0039 process.source = cms.Source("PoolSource",
0040 dropDescendantsOfDroppedBranches = cms.untracked.bool(False),
0041 fileNames = cms.untracked.vstring('file:GluGlu_GEN_SIM_2017.root'),
0042 inputCommands = cms.untracked.vstring('keep *'),
0043 secondaryFileNames = cms.untracked.vstring()
0044 )
0045
0046
0047 process.configurationMetadata = cms.untracked.PSet(
0048 annotation = cms.untracked.string('step2 nevts:10'),
0049 name = cms.untracked.string('Applications'),
0050 version = cms.untracked.string('$Revision: 1.19 $')
0051 )
0052
0053
0054
0055 process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0056 dataset = cms.untracked.PSet(
0057 dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'),
0058 filterName = cms.untracked.string('')
0059 ),
0060 eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0061 fileName = cms.untracked.string('GluGlu_DIGI_DIGI2RAW_2017.root'),
0062 outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands+['keep *_ctpps*_*_*',"keep *_*RP*_*_*",'keep *_LHCTransport_*_*'],
0063 splitLevel = cms.untracked.int32(0)
0064 )
0065
0066
0067
0068 from Configuration.AlCa.GlobalTag import GlobalTag
0069 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2017_realistic', '')
0070
0071
0072 process.digitisation_step = cms.Path(process.pdigi)
0073 process.L1simulation_step = cms.Path(process.SimL1Emulator)
0074 process.digi2raw_step = cms.Path(process.DigiToRaw)
0075 process.endjob_step = cms.EndPath(process.endOfProcess)
0076 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0077
0078
0079 process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.digi2raw_step)
0080 process.schedule.extend([process.endjob_step,process.FEVTDEBUGHLToutput_step])
0081 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0082 associatePatAlgosToolsTask(process)
0083
0084
0085 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0086 process = customiseEarlyDelete(process)