Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("GEMLocalRECO")
0004 
0005 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1))
0006 
0007 #process.Timing = cms.Service("Timing")
0008 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0009 
0010 ####################################
0011 ##### Choose your GEM Geometry #####
0012 ####################################
0013 #  6 eta partitions :: command line option :: --geometry Geometry/GEMGeometry/cmsExtendedGeometryPostLS1plusGEMXML_cfi
0014 #  8 eta partitions :: command line option :: --geometry Geometry/GEMGeometry/cmsExtendedGeometryPostLS1plusGEMr08v01XML_cfi.py
0015 # 10 eta partitions :: command line option :: --geometry Geometry/GEMGeometry/cmsExtendedGeometryPostLS1plusGEMr10v01XML_cfi.py
0016 ###### This results in following lines
0017 ###  6 eta partitions
0018 #process.load('Geometry.GEMGeometry.cmsExtendedGeometryPostLS1plusGEMXML_cfi')
0019 ###  8 eta partitions
0020 #process.load('Geometry.GEMGeometry.cmsExtendedGeometryPostLS1plusGEMr08v01XML_cfi')
0021 ### 10 eta partitions
0022 # process.load('Geometry.GEMGeometry.cmsExtendedGeometryPostLS1plusGEMr10v01XML_cfi')          
0023 
0024 # import of standard configurations
0025 process.load('Configuration.StandardSequences.Services_cff')
0026 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0027 process.load('FWCore.MessageService.MessageLogger_cfi')
0028 process.load('Configuration.EventContent.EventContent_cff')
0029 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0030 # process.load('Configuration.Geometry.GeometryExtended2019Reco_cff')
0031 # process.load('Configuration.Geometry.GeometryExtended2019_cff')
0032 # process.load('Configuration.Geometry.GeometryExtended2023Reco_cff')
0033 # process.load('Configuration.Geometry.GeometryExtended2023_cff')
0034 process.load('Configuration.Geometry.GeometryExtended2015MuonGEMDevReco_cff')
0035 process.load('Configuration.Geometry.GeometryExtended2015MuonGEMDev_cff')
0036 process.load('Configuration.StandardSequences.MagneticField_cff')
0037 process.load('Configuration.StandardSequences.Generator_cff')
0038 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_cfi')
0039 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0040 process.load('Configuration.StandardSequences.SimIdeal_cff')
0041 process.load('Configuration.StandardSequences.Digi_cff')
0042 process.load('Configuration.StandardSequences.Reconstruction_cff')
0043 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0044 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0045 
0046 process.load('RecoLocalMuon.GEMRecHit.gemRecHits_cfi')
0047 process.load('RecoLocalMuon.GEMRecHit.me0RecHits_cfi')
0048 
0049 ### Try to do RecoLocalMuon on all muon detectors ###
0050 #####################################################
0051 from RecoLocalMuon.Configuration.RecoLocalMuon_cff import *
0052 process.localreco = cms.Sequence(muonlocalreco)
0053 
0054 #????
0055 #process.load('Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi')
0056 #process.load('Geometry.CommonTopologies.globalTrackingGeometry_cfi')
0057 #process.load('Geometry.MuonNumbering.muonNumberingInitialization_cfi')
0058 #process.load('Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometryDB_cff')
0059 
0060 #process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0061 #process.GlobalTag.globaltag = 'auto:upgrade2019'
0062 #process.GlobalTag.globaltag = 'DES19_62_V7::All'
0063 #process.GlobalTag.globaltag = 'POSTLS161_V12::All'
0064 #from Configuration.AlCa.GlobalTag import GlobalTag
0065 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2019', '')
0066 from Configuration.AlCa.GlobalTag import GlobalTag
0067 # process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2019', '')
0068 # process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '')
0069 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0070 
0071 # Fix DT and CSC Alignment #
0072 ############################
0073 from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads import fixDTAlignmentConditions
0074 process = fixDTAlignmentConditions(process)
0075 from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads import fixCSCAlignmentConditions
0076 process = fixCSCAlignmentConditions(process)
0077 
0078 # Skip Digi2Raw and Raw2Digi steps for Al Muon detectors #
0079 ##########################################################
0080 process.gemRecHits.gemDigiLabel = cms.InputTag("simMuonGEMDigis","","GEMDIGI")
0081 process.rpcRecHits.rpcDigiLabel = cms.InputTag('simMuonRPCDigis')
0082 process.csc2DRecHits.wireDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi")
0083 process.csc2DRecHits.stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi")
0084 process.dt1DRecHits.dtDigiLabel = cms.InputTag("simMuonDTDigis")
0085 process.dt1DCosmicRecHits.dtDigiLabel = cms.InputTag("simMuonDTDigis")
0086 
0087 # Explicit configuration of CSC for postls1 = run2 #
0088 ####################################################
0089 process.load("CalibMuon.CSCCalibration.CSCChannelMapper_cfi")
0090 process.load("CalibMuon.CSCCalibration.CSCIndexer_cfi")
0091 process.CSCIndexerESProducer.AlgoName = cms.string("CSCIndexerPostls1")
0092 process.CSCChannelMapperESProducer.AlgoName = cms.string("CSCChannelMapperPostls1")
0093 process.CSCGeometryESModule.useGangedStripsInME1a = False
0094 process.csc2DRecHits.readBadChannels = cms.bool(False)
0095 process.csc2DRecHits.CSCUseGasGainCorrections = cms.bool(False)
0096 # process.csc2DRecHits.wireDigiTag  = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi")
0097 # process.csc2DRecHits.stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi")
0098 
0099 process.gemRecHits = cms.EDProducer("GEMRecHitProducer",
0100     recAlgoConfig = cms.PSet(),
0101     recAlgo = cms.string('GEMRecHitStandardAlgo'),
0102     gemDigiLabel = cms.InputTag("simMuonGEMDigis"),
0103     # maskSource = cms.string('File'),
0104     # maskvecfile = cms.FileInPath('RecoLocalMuon/GEMRecHit/data/GEMMaskVec.dat'),
0105     # deadSource = cms.string('File'),
0106     # deadvecfile = cms.FileInPath('RecoLocalMuon/GEMRecHit/data/GEMDeadVec.dat')
0107 )
0108 
0109 ### Input and Output Files
0110 ##########################
0111 process.source = cms.Source("PoolSource",
0112     fileNames = cms.untracked.vstring(
0113         'file:out_digi.root'
0114         # 'file:out_digi_100GeV_1000evts.root'
0115         # 'file:out_digi_1To100GeV_1000evts.root'
0116     )
0117 )
0118 
0119 process.output = cms.OutputModule("PoolOutputModule",
0120     fileName = cms.untracked.string( 
0121         'file:out_local_reco.root'
0122         # 'file:out_local_reco_100GeV_1000evts.root'
0123         # 'file:out_local_reco_1To100GeV_1000evts.root'
0124     ),
0125     outputCommands = cms.untracked.vstring(
0126         'keep  *_*_*_*',
0127     ),
0128     SelectEvents = cms.untracked.PSet(
0129         SelectEvents = cms.vstring('rechit_step')
0130     )
0131 )
0132 
0133 ### Paths and Schedules
0134 #######################
0135 process.rechit_step  = cms.Path(process.localreco+process.gemRecHits+process.me0RecHits)
0136 process.endjob_step  = cms.Path(process.endOfProcess)
0137 process.out_step     = cms.EndPath(process.output)
0138 
0139 
0140 process.schedule = cms.Schedule(
0141     process.rechit_step,
0142     process.endjob_step,
0143     process.out_step
0144 )
0145 
0146