Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:01

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 # with command line options: step3 --conditions auto:phase1_2018_realistic -n 10 --era Run2_2018 --eventcontent RECOSIM,DQM --runUnscheduled -s RAW2DIGI,RECO:reconstruction_trackingOnly,VALIDATION:@trackingOnlyValidation,DQM:@trackingOnlyDQM --datatier GEN-SIM-RECO,DQMIO --geometry DB:Extended -n 10 --filein file:step2.root --fileout file:step3.root --nThreads 8 --no_exec
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 # import of standard configurations
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 # Input source
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 #    wantSummary = cms.untracked.bool(True)
0038 )
0039 
0040 
0041 #process.Timing = cms.Service("Timing"
0042 #    ,summaryOnly = cms.untracked.bool(True)
0043 #)
0044 
0045 
0046 # Production Info
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 # Output definition
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 # Additional output definition
0076 
0077 # Other statements
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 # Path and EndPath definitions
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 ### Track refitter specific stuff
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'  # or FinalTracks
0115 process.myRefittedTracks.NavigationSchool = ''
0116 process.myRefittedTracks.Fitter = 'FlexibleKFFittingSmoother'
0117 process.myRefittedTracks.TTRHBuilder = 'Fake'
0118 
0119 ### and an analyzer
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 # Schedule definition
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 #Setup FWK NOT for multithreaded
0159 process.options.numberOfThreads=cms.untracked.uint32(1)
0160 process.options.numberOfStreams=cms.untracked.uint32(1)
0161 
0162 # customisation of the process.
0163 
0164 # Automatic addition of the customisation function from SimGeneral.MixingModule.fullMixCustomize_cff
0165 from SimGeneral.MixingModule.fullMixCustomize_cff import setCrossingFrameOn 
0166 
0167 #call to customisation function setCrossingFrameOn imported from SimGeneral.MixingModule.fullMixCustomize_cff
0168 process = setCrossingFrameOn(process)
0169 
0170 # End of customisation functions
0171 
0172 # Customisation from command line
0173 
0174 #Have logErrorHarvester wait for the same EDProducers to finish as those providing data for the OutputModule
0175 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
0176 process = customiseLogErrorHarvesterUsingOutputCommands(process)
0177 
0178 # Add early deletion of temporary data products to reduce peak memory need
0179 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0180 process = customiseEarlyDelete(process)
0181 # End adding early deletion
0182