Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("GEMDIGI")
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.GeometryExtended2023D3Reco_cff')
0011 process.load('Configuration.Geometry.GeometryExtended2023D3_cff')
0012 process.load('Configuration.StandardSequences.MagneticField_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.EndOfProcess_cff')
0017 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0018 from Configuration.AlCa.GlobalTag import GlobalTag
0019 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '')
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(-1)
0023 )
0024 
0025 process.source = cms.Source("PoolSource",
0026                             fileNames = cms.untracked.vstring(
0027     'file:step1.root'
0028     )
0029 )
0030 process.options = cms.untracked.PSet(
0031     wantSummary = cms.untracked.bool(True)
0032 )
0033 
0034 process.contentAna = cms.EDAnalyzer("EventContentAnalyzer")
0035 
0036 # GEM digitizer
0037 process.load('SimMuon.GEMDigitizer.muonME0DigisPreReco_cfi')
0038 
0039 # customization of the process.pdigi sequence to add the GEM digitizer
0040 from SimMuon.GEMDigitizer.customizeGEMDigi import *
0041 process = customize_digi_addGEM_addME0_muon_only(process) # only muon+GEM+ME0 digi
0042 
0043 process.output = cms.OutputModule("PoolOutputModule",
0044     fileName = cms.untracked.string(
0045         'file:out_digi_me0.test.root'
0046     ),
0047     outputCommands = cms.untracked.vstring(
0048         'keep  *_*_*_*',
0049         #'drop CastorDataFramesSorted_simCastorDigis_*_GEMDIGI'
0050         # drop all CF stuff
0051         ##'drop *_mix_*_*',
0052         # drop tracker simhits
0053         ##'drop PSimHits_*_Tracker*_*',
0054         # drop calorimetry stuff
0055         ##'drop PCaloHits_*_*_*',
0056         # clean up simhits from other detectors
0057         ##'drop PSimHits_*_Totem*_*',
0058         ##'drop PSimHits_*_FP420*_*',
0059         ##'drop PSimHits_*_BSC*_*',
0060         # drop some not useful muon digis and links
0061         ##'drop *_*_MuonCSCStripDigi_*',
0062         ##'drop *_*_MuonCSCStripDigiSimLinks_*',
0063         #'drop *SimLink*_*_*_*',
0064         ##'drop *RandomEngineStates_*_*_*',
0065         ##'drop *_randomEngineStateProducer_*_*'
0066     ),
0067     SelectEvents = cms.untracked.PSet(
0068         SelectEvents = cms.vstring('digi_step')
0069     )
0070 )
0071 
0072 
0073 process.contentAna = cms.EDAnalyzer("EventContentAnalyzer")
0074 process.digi_step    = cms.Path(process.pdigi)
0075 process.endjob_step  = cms.Path(process.endOfProcess)
0076 process.out_step     = cms.EndPath(process.output)
0077 
0078 process.schedule = cms.Schedule(
0079     process.digi_step,
0080     process.endjob_step,
0081     process.out_step
0082 )