Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2_cff import Phase2
0004 process = cms.Process("GEMDIGI", Phase2)
0005 
0006 process.load('Configuration.StandardSequences.Services_cff')
0007 process.load('FWCore.MessageService.MessageLogger_cfi')
0008 process.load('Configuration.EventContent.EventContent_cff')
0009 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0010 process.load('Configuration.Geometry.GeometryExtended2023D4Reco_cff')
0011 process.load('Configuration.Geometry.GeometryExtended2023D4_cff')
0012 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0013 process.load('Configuration.StandardSequences.SimIdeal_cff')
0014 process.load('Configuration.StandardSequences.Generator_cff')
0015 process.load('Configuration.StandardSequences.Digi_cff')
0016 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0017 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0018 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0019 from Configuration.AlCa.GlobalTag import GlobalTag
0020 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '')
0021 
0022 process.maxEvents = cms.untracked.PSet( 
0023     input = cms.untracked.int32(1) 
0024 )
0025 
0026 #process.Timing = cms.Service("Timing")
0027 process.options = cms.untracked.PSet( 
0028     wantSummary = cms.untracked.bool(True) 
0029 )
0030 
0031 # customization of the process.pdigi sequence to add the GEM digitizer 
0032 from SimMuon.Configuration.customizeMuonDigi import customize_digi_addGEM_muon_only
0033 process = customize_digi_addGEM_muon_only(process) 
0034 
0035 ### Fix RPC Digitization ###
0036 ############################
0037 from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads import fixRPCConditions 
0038 process = fixRPCConditions(process)
0039 ############################
0040 
0041 process.source = cms.Source("PoolSource",
0042     fileNames = cms.untracked.vstring(
0043     'file:out_sim.root'
0044     )
0045 )
0046 
0047 process.output = cms.OutputModule("PoolOutputModule",
0048     fileName = cms.untracked.string( 
0049         'file:out_digi.root'
0050     ),
0051     outputCommands = cms.untracked.vstring(
0052         'keep  *_*_*_*',
0053         # drop all CF stuff
0054         ##'drop *_mix_*_*',
0055         # drop tracker simhits
0056         ##'drop PSimHits_*_Tracker*_*',
0057         # drop calorimetry stuff
0058         ##'drop PCaloHits_*_*_*',
0059         # clean up simhits from other detectors
0060         ##'drop PSimHits_*_Totem*_*',
0061         ##'drop PSimHits_*_FP420*_*',
0062         ##'drop PSimHits_*_BSC*_*',
0063         # drop some not useful muon digis and links
0064         ##'drop *_*_MuonCSCStripDigi_*',
0065         ##'drop *_*_MuonCSCStripDigiSimLinks_*',
0066         #'drop *SimLink*_*_*_*',
0067         ##'drop *RandomEngineStates_*_*_*',
0068         ##'drop *_randomEngineStateProducer_*_*'
0069     ),
0070     SelectEvents = cms.untracked.PSet(
0071         SelectEvents = cms.vstring('digi_step')
0072     )
0073 )
0074 
0075 #process.contentAna = cms.EDAnalyzer("EventContentAnalyzer")
0076 
0077 process.digi_step     = cms.Path(process.pdigi)
0078 process.endjob_step   = cms.Path(process.endOfProcess)
0079 process.out_step      = cms.EndPath(process.output)
0080 
0081 
0082 process.schedule = cms.Schedule(
0083     process.digi_step,
0084     process.endjob_step,
0085     process.out_step
0086 )