Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:12

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.GeometryExtended2015MuonGEMDevReco_cff')
0031 process.load('Configuration.Geometry.GeometryExtended2015MuonGEMDev_cff')
0032 process.load('Configuration.StandardSequences.MagneticField_cff')
0033 process.load('Configuration.StandardSequences.Generator_cff')
0034 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_cfi')
0035 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0036 process.load('Configuration.StandardSequences.SimIdeal_cff')
0037 process.load('Configuration.StandardSequences.Digi_cff')
0038 process.load('Configuration.StandardSequences.Reconstruction_cff')
0039 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0040 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0041 
0042 process.load('RecoLocalMuon.GEMRecHit.gemRecHits_cfi')
0043 #process.load('RecoLocalMuon.GEMRecHit.me0RecHits_cfi')
0044 process.load('RecoLocalMuon.GEMRecHit.me0LocalReco_cff')
0045 
0046 ### Try to do RecoLocalMuon on all muon detectors ###
0047 #####################################################
0048 from RecoLocalMuon.Configuration.RecoLocalMuon_cff import *
0049 process.localreco = cms.Sequence(muonlocalreco)
0050 
0051 #????
0052 #process.load('Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi')
0053 #process.load('Geometry.CommonTopologies.globalTrackingGeometry_cfi')
0054 #process.load('Geometry.MuonNumbering.muonNumberingInitialization_cfi')
0055 #process.load('Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometryDB_cff')
0056 
0057 #process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0058 #process.GlobalTag.globaltag = 'auto:upgrade2019'
0059 #process.GlobalTag.globaltag = 'DES19_62_V7::All'
0060 #process.GlobalTag.globaltag = 'POSTLS161_V12::All'
0061 #from Configuration.AlCa.GlobalTag import GlobalTag
0062 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2019', '')
0063 from Configuration.AlCa.GlobalTag import GlobalTag
0064 # process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2019', '')
0065 # process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '')
0066 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0067 
0068 # Fix DT and CSC Alignment #
0069 ############################
0070 from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads import fixDTAlignmentConditions
0071 process = fixDTAlignmentConditions(process)
0072 from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads import fixCSCAlignmentConditions
0073 process = fixCSCAlignmentConditions(process)
0074 
0075 # Skip Digi2Raw and Raw2Digi steps for Al Muon detectors #
0076 ##########################################################
0077 process.gemRecHits.gemDigiLabel = cms.InputTag("simMuonGEMDigis","","GEMDIGI")
0078 process.rpcRecHits.rpcDigiLabel = cms.InputTag('simMuonRPCDigis')
0079 process.csc2DRecHits.wireDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi")
0080 process.csc2DRecHits.stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi")
0081 process.dt1DRecHits.dtDigiLabel = cms.InputTag("simMuonDTDigis")
0082 process.dt1DCosmicRecHits.dtDigiLabel = cms.InputTag("simMuonDTDigis")
0083 
0084 # Explicit configuration of CSC for postls1 = run2 #
0085 ####################################################
0086 process.load("CalibMuon.CSCCalibration.CSCChannelMapper_cfi")
0087 process.load("CalibMuon.CSCCalibration.CSCIndexer_cfi")
0088 process.CSCIndexerESProducer.AlgoName = cms.string("CSCIndexerPostls1")
0089 process.CSCChannelMapperESProducer.AlgoName = cms.string("CSCChannelMapperPostls1")
0090 process.CSCGeometryESModule.useGangedStripsInME1a = False
0091 process.csc2DRecHits.readBadChannels = cms.bool(False)
0092 process.csc2DRecHits.CSCUseGasGainCorrections = cms.bool(False)
0093 # process.csc2DRecHits.wireDigiTag  = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi")
0094 # process.csc2DRecHits.stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi")
0095 
0096 process.gemRecHits = cms.EDProducer("GEMRecHitProducer",
0097     recAlgoConfig = cms.PSet(),
0098     recAlgo = cms.string('GEMRecHitStandardAlgo'),
0099     gemDigiLabel = cms.InputTag("simMuonGEMDigis"),
0100     # maskSource = cms.string('File'),
0101     # maskvecfile = cms.FileInPath('RecoLocalMuon/GEMRecHit/data/GEMMaskVec.dat'),
0102     # deadSource = cms.string('File'),
0103     # deadvecfile = cms.FileInPath('RecoLocalMuon/GEMRecHit/data/GEMDeadVec.dat')
0104 )
0105 
0106 ### Input and Output Files
0107 ##########################
0108 process.source = cms.Source("PoolSource",
0109     fileNames = cms.untracked.vstring(
0110         'file:out_digi.root'
0111         # 'file:out_digi_100GeV_1000evts.root'
0112         # 'file:out_digi_1To100GeV_1000evts.root'
0113     )
0114 )
0115 
0116 process.output = cms.OutputModule("PoolOutputModule",
0117     fileName = cms.untracked.string( 
0118         'file:out_local_reco_test.root'
0119         # 'file:out_local_reco_100GeV_1000evts.root'
0120         # 'file:out_local_reco_1To100GeV_1000evts.root'
0121     ),
0122     outputCommands = cms.untracked.vstring(
0123         'keep  *_*_*_*',
0124     ),
0125     SelectEvents = cms.untracked.PSet(
0126         SelectEvents = cms.vstring('rechit_step')
0127     )
0128 )
0129 
0130 ### Paths and Schedules
0131 #######################
0132 process.rechit_step  = cms.Path(process.localreco+process.gemRecHits+process.me0LocalReco)
0133 #process.rechit_step  = cms.Path(process.localreco+process.gemRecHits+process.me0RecHits)
0134 process.endjob_step  = cms.Path(process.endOfProcess)
0135 process.out_step     = cms.EndPath(process.output)
0136 
0137 
0138 process.schedule = cms.Schedule(
0139     process.rechit_step,
0140     process.endjob_step,
0141     process.out_step
0142 )
0143