Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("GEMCSCSegmentRECO")
0004 
0005 process.load('Configuration.StandardSequences.Services_cff')
0006 process.load('FWCore.MessageService.MessageLogger_cfi')
0007 process.load('Configuration.EventContent.EventContent_cff')
0008 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0009 process.load('Configuration.Geometry.GeometryExtended2023D1Reco_cff')
0010 process.load('Configuration.Geometry.GeometryExtended2023D1_cff')
0011 process.load('Configuration.StandardSequences.MagneticField_cff')
0012 process.load('Configuration.StandardSequences.SimIdeal_cff')
0013 process.load('Configuration.StandardSequences.Generator_cff')
0014 process.load('Configuration.StandardSequences.Digi_cff')
0015 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0016 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0017 from Configuration.AlCa.GlobalTag import GlobalTag
0018 # process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2019', '')
0019 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '')
0020 
0021 # Fix DT and CSC Alignment #
0022 ############################
0023 from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads import fixDTAlignmentConditions
0024 process = fixDTAlignmentConditions(process)
0025 from SLHCUpgradeSimulations.Configuration.fixMissingUpgradeGTPayloads import fixCSCAlignmentConditions
0026 process = fixCSCAlignmentConditions(process)
0027 ############################
0028 
0029 # Explicit configuration of CSC for postls1 = run2 #
0030 ####################################################
0031 process.load("CalibMuon.CSCCalibration.CSCChannelMapper_cfi")
0032 process.load("CalibMuon.CSCCalibration.CSCIndexer_cfi")
0033 process.CSCIndexerESProducer.AlgoName = cms.string("CSCIndexerPostls1")
0034 process.CSCChannelMapperESProducer.AlgoName = cms.string("CSCChannelMapperPostls1")
0035 process.CSCGeometryESModule.useGangedStripsInME1a = False
0036 # process.csc2DRecHits.readBadChannels = cms.bool(False)
0037 # process.csc2DRecHits.CSCUseGasGainCorrections = cms.bool(False)
0038 # process.csc2DRecHits.wireDigiTag  = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi")
0039 # process.csc2DRecHits.stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi")               
0040 
0041 
0042 
0043 ### TO ACTIVATE LogTrace IN GEMCSCSegment NEED TO COMPILE IT WITH: 
0044 ### --------------------------------------------------------------
0045 ### --> scram b -j8 USER_CXXFLAGS="-DEDM_ML_DEBUG"
0046 ### Make sure that you first cleaned your CMSSW version: 
0047 ### --> scram b clean 
0048 ### before issuing the scram command above
0049 ### --------------------------------------------------------------
0050 ### LogTrace output goes to cout; all other output to "junk.log"
0051 ### Code/Configuration with thanks to Tim Cox
0052 ### --------------------------------------------------------------
0053 ### to have a handle on the loops inside RPCSimSetup 
0054 ### I have split the LogDebug stream in several streams
0055 ### that can be activated independentl
0056 ##################################################################
0057 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0058 process.MessageLogger.debugModules = cms.untracked.vstring("*")
0059 process.MessageLogger.cerr.enable = False
0060 process.MessageLogger.files.junk = dict()
0061 process.MessageLogger.cout = cms.untracked.PSet(
0062     enable    = cms.untracked.bool(True),
0063     threshold = cms.untracked.string("DEBUG"),
0064     default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0065     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0066     GEMCSCSegment          = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0067     GEMCSCSegmentBuilder   = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0068     # GEMCSCSegAlgoRR        = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0069     # GEMCSCSegFit           = cms.untracked.PSet( limit = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0070 )
0071 ##################################################################
0072 ### TO ACTIVATE LogVerbatim IN GEMCSCSegment
0073 ### --------------------------------------------------------------
0074 # process.MessageLogger.GEMCSCSegment=dict()
0075 # process.MessageLogger.GEMCSCSegFit=dict()
0076 # process.MessageLogger.cout = cms.untracked.PSet(
0077 #     threshold = cms.untracked.string("INFO"),
0078 #     default   = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0079 #     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0080 #     GEMCSCSegment = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0081 #     GEMCSCSegFit  = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0082 # )
0083 ##################################################################
0084 
0085 
0086 process.maxEvents = cms.untracked.PSet(
0087     input = cms.untracked.int32(1)
0088 )
0089 
0090 process.options = cms.untracked.PSet(
0091     wantSummary = cms.untracked.bool(True)
0092 )
0093 
0094 process.contentAna = cms.EDAnalyzer("EventContentAnalyzer")
0095 
0096 
0097 process.load('RecoLocalMuon.GEMCSCSegment.gemcscSegments_cfi')
0098 
0099 process.source = cms.Source("PoolSource",
0100     fileNames = cms.untracked.vstring(
0101         # 'file:/afs/cern.ch/work/p/piet/Analysis/SLC6/GEMCSCSegment/CMSSW_7_5_0_pre2/src/RecoLocalMuon/GEMRecHit/test/out_local_reco_test.root' #  29 evts
0102         # 'file:/afs/cern.ch/work/p/piet/Analysis/SLC6/GEMCSCSegment/CMSSW_7_5_0_pre2/src/RecoLocalMuon/GEMRecHit/test/out_local_reco.root'        # 100 evts
0103         'file:/afs/cern.ch/work/p/piet/Analysis/SLC6/GEMCSCSegment/CMSSW_7_5_0_pre3/src/RecoLocalMuon/GEMRecHit/test/out_local_reco_100GeV_1000evts.root'
0104     )
0105 )
0106 
0107 process.output = cms.OutputModule("PoolOutputModule",
0108     fileName = cms.untracked.string(
0109         # 'file:out_rereco_gemcscsegment.root'
0110         'file:out_rereco_gemcscsegment_75_2023_100GeV_1evt.root'
0111     ),
0112     outputCommands = cms.untracked.vstring(
0113         'keep  *_gemcscSegments_*_*',
0114         'keep  *_*csc*_*_*',
0115         'keep  *_*dt*_*_*',
0116         'keep  *_*gem*_*_*',
0117         'keep  *_*rpc*_*_*',
0118         'keep  *_*muon*_*_*',
0119         'keep  *_*CSC*_*_*',
0120         'keep  *_*DT*_*_*',
0121         'keep  *_*GEM*_*_*',
0122         'keep  *_*RPC*_*_*',
0123         'keep  *_*MUON*_*_*',
0124         'keep  *_*_*csc*_*',
0125         'keep  *_*_*dt*_*',
0126         'keep  *_*_*gem*_*',
0127         'keep  *_*_*rpc*_*',
0128         'keep  *_*_*muon*_*',
0129         'keep  *_*_*CSC*_*',
0130         'keep  *_*_*DT*_*',
0131         'keep  *_*_*GEM*_*',
0132         'keep  *_*_*RPC*_*',
0133         'keep  *_*_*MUON*_*',
0134         'keep  *SimTrack*_*_*_*',
0135         # 'keep  *_*_*_*',
0136     )
0137 )
0138 
0139 process.contentAna = cms.EDAnalyzer("EventContentAnalyzer")
0140 process.reco_step    = cms.Path(process.gemcscSegments)
0141 process.endjob_step  = cms.Path(process.endOfProcess)
0142 process.out_step     = cms.EndPath(process.output)
0143 
0144 process.schedule = cms.Schedule(
0145     process.reco_step,
0146     process.endjob_step,
0147     process.out_step
0148 )