File indexing completed on 2024-04-06 12:29:01
0001
0002
0003
0004
0005
0006 import FWCore.ParameterSet.Config as cms
0007
0008
0009 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0010 process = cms.Process('RECO',Run2_2018)
0011
0012
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 process.load('Configuration.EventContent.EventContent_cff')
0017 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0018 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0019 process.load('Configuration.StandardSequences.MagneticField_cff')
0020 process.load('Configuration.StandardSequences.RawToDigi_cff')
0021 process.load('Configuration.StandardSequences.Reconstruction_cff')
0022 process.load('Configuration.StandardSequences.Validation_cff')
0023 process.load('DQMOffline.Configuration.DQMOfflineMC_cff')
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025
0026 process.maxEvents = cms.untracked.PSet(
0027 input = cms.untracked.int32(-1)
0028 )
0029
0030
0031 process.source = cms.Source("PoolSource",
0032 fileNames = cms.untracked.vstring('file:step2.root'),
0033 secondaryFileNames = cms.untracked.vstring()
0034 )
0035
0036 process.options = cms.untracked.PSet(
0037
0038 )
0039
0040
0041
0042
0043
0044
0045
0046
0047 process.configurationMetadata = cms.untracked.PSet(
0048 annotation = cms.untracked.string('step3 nevts:10'),
0049 name = cms.untracked.string('Applications'),
0050 version = cms.untracked.string('$Revision: 1.19 $')
0051 )
0052
0053
0054
0055 process.RECOSIMoutput = cms.OutputModule("PoolOutputModule",
0056 dataset = cms.untracked.PSet(
0057 dataTier = cms.untracked.string('GEN-SIM-RECO'),
0058 filterName = cms.untracked.string('')
0059 ),
0060 fileName = cms.untracked.string('file:step3.root'),
0061 outputCommands = process.RECOSIMEventContent.outputCommands,
0062 splitLevel = cms.untracked.int32(0)
0063 )
0064
0065 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
0066 dataset = cms.untracked.PSet(
0067 dataTier = cms.untracked.string('DQMIO'),
0068 filterName = cms.untracked.string('')
0069 ),
0070 fileName = cms.untracked.string('file:step3_inDQM.root'),
0071 outputCommands = process.DQMEventContent.outputCommands,
0072 splitLevel = cms.untracked.int32(0)
0073 )
0074
0075
0076
0077
0078 process.mix.playback = True
0079 process.mix.digitizers = cms.PSet()
0080 for a in process.aliases: delattr(process, a)
0081 process.RandomNumberGeneratorService.restoreStateLabel=cms.untracked.string("randomEngineStateProducer")
0082 from Configuration.AlCa.GlobalTag import GlobalTag
0083 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '')
0084
0085
0086 process.raw2digi_step = cms.Path(process.RawToDigi)
0087 process.reconstruction_step = cms.Path(process.reconstruction_trackingOnly)
0088 process.prevalidation_step = cms.Path(process.globalPrevalidationTrackingOnly)
0089 process.validation_step = cms.EndPath(process.globalValidationTrackingOnly)
0090 process.dqmoffline_step = cms.EndPath(process.DQMOfflineTracking)
0091 process.dqmofflineOnPAT_step = cms.EndPath(process.PostDQMOffline)
0092 process.RECOSIMoutput_step = cms.EndPath(process.RECOSIMoutput)
0093 process.DQMoutput_step = cms.EndPath(process.DQMoutput)
0094
0095 process.load('RecoTracker.TransientTrackingRecHit.TTRHBuilderWithFake_cfi')
0096
0097
0098
0099 import RecoTracker.TrackProducer.TrackRefitter_cfi
0100 import CommonTools.RecoAlgos.recoTrackRefSelector_cfi
0101 process.mytkselector = CommonTools.RecoAlgos.recoTrackRefSelector_cfi.recoTrackRefSelector.clone()
0102 process.mytkselector.quality = ['highPurity']
0103 process.mytkselector.min3DLayer = 2
0104 process.mytkselector.ptMin = 0.5
0105 process.mytkselector.tip = 1.0
0106
0107 process.FinalTracks = RecoTracker.TrackProducer.TrackRefitter_cfi.TrackRefitter.clone()
0108 process.FinalTracks.src= 'mytkselector'
0109 process.FinalTracks.NavigationSchool = ''
0110 process.FinalTracks.Fitter = 'FlexibleKFFittingSmoother'
0111
0112
0113 process.myRefittedTracks = RecoTracker.TrackProducer.TrackRefitter_cfi.TrackRefitter.clone()
0114 process.myRefittedTracks.src= 'mytkselector'
0115 process.myRefittedTracks.NavigationSchool = ''
0116 process.myRefittedTracks.Fitter = 'FlexibleKFFittingSmoother'
0117 process.myRefittedTracks.TTRHBuilder = 'Fake'
0118
0119
0120 process.trajCout = cms.EDAnalyzer('TrajectoryAnalyzer',
0121 trajectoryInput=cms.InputTag('myRefittedTracks')
0122 )
0123
0124
0125 process.fakeCPEFiller = cms.EDFilter('FakeCPEFiller',
0126 associatePixel = cms.bool(True), associateStrip = cms.bool(True), associateRecoTracks = cms.bool(False),
0127 ROUList = cms.vstring(
0128 'TrackerHitsPixelBarrelLowTof',
0129 'TrackerHitsPixelBarrelHighTof',
0130 'TrackerHitsPixelEndcapLowTof',
0131 'TrackerHitsPixelEndcapHighTof',
0132 'TrackerHitsTIBLowTof',
0133 'TrackerHitsTIBHighTof',
0134 'TrackerHitsTIDLowTof',
0135 'TrackerHitsTIDHighTof',
0136 'TrackerHitsTOBLowTof',
0137 'TrackerHitsTOBHighTof',
0138 'TrackerHitsTECLowTof',
0139 'TrackerHitsTECHighTof'
0140 ),
0141
0142 stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
0143 pixelSimLinkSrc = cms.InputTag("simSiPixelDigis")
0144
0145
0146
0147 )
0148
0149
0150 process.myrefit = cms.Path(process.mytkselector+process.FinalTracks+process.fakeCPEFiller+process.myRefittedTracks+process.trajCout)
0151
0152
0153
0154 process.schedule = cms.Schedule(process.raw2digi_step,process.reconstruction_step,process.myrefit)
0155 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0156 associatePatAlgosToolsTask(process)
0157
0158
0159 process.options.numberOfThreads=cms.untracked.uint32(1)
0160 process.options.numberOfStreams=cms.untracked.uint32(1)
0161
0162
0163
0164
0165 from SimGeneral.MixingModule.fullMixCustomize_cff import setCrossingFrameOn
0166
0167
0168 process = setCrossingFrameOn(process)
0169
0170
0171
0172
0173
0174
0175 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
0176 process = customiseLogErrorHarvesterUsingOutputCommands(process)
0177
0178
0179 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0180 process = customiseEarlyDelete(process)
0181
0182