Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:28:43

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # inspired from RecoTracker/TrackProducer/test/TrackRefit.py
0004  
0005 process = cms.Process("RefittingDAF")
0006 
0007 ### standard MessageLoggerConfiguration
0008 process.load("FWCore.MessageService.MessageLogger_cfi")
0009 
0010 ### Standard Configurations
0011 process.load("Configuration.StandardSequences.Services_cff")
0012 process.load('Configuration.StandardSequences.GeometryDB_cff')
0013 process.load('Configuration.StandardSequences.Reconstruction_cff')
0014 process.load('Configuration.StandardSequences.MagneticField_cff')
0015 
0016 ### Conditions
0017 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0018 #from Configuration.AlCa.GlobalTag import GlobalTag
0019 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '')
0020 # 2022
0021 process.GlobalTag.globaltag = 'auto:phase1_2022_realistic'
0022 
0023 ### Track Refitter
0024 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0025 process.load("RecoTracker.TrackProducer.CTFFinalFitWithMaterialDAF_cff")
0026 process.TracksDAF.TrajectoryInEvent = True
0027 process.TracksDAF.src = 'TrackRefitter'
0028 process.TracksDAF.TrajAnnealingSaving = False
0029 process.MRHFittingSmoother.EstimateCut = -1
0030 process.MRHFittingSmoother.MinNumberOfHits = 3
0031 
0032 process.source = cms.Source("PoolSource",
0033     fileNames = cms.untracked.vstring()
0034 ) 
0035 process.PoolSource.fileNames = [
0036   "file:reco_trk.root",
0037 ]
0038 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0039 
0040 process.out = cms.OutputModule("PoolOutputModule",
0041                                outputCommands = cms.untracked.vstring('drop *_*_*_*', 
0042                                       'keep *_siPixelClusters_*_*', 
0043                                       'keep *_siStripClusters_*_*', 
0044                                       'keep *_siPixelDigis_*_*', 
0045                                       'keep *_siStripDigis_*_*', 
0046                                       'keep *_offlineBeamSpot_*_*',
0047                                       'keep *_pixelVertices_*_*',
0048                                       'keep *_siStripMatchedRecHits_*_*', 
0049                                       'keep *_initialStepSeeds_*_*', 
0050                                                                       'keep recoTracks_*_*_*',
0051                                                                       'keep recoTrackExtras_*_*_*',
0052                                                                       'keep TrackingRecHitsOwned_*_*_*'),
0053                                fileName = cms.untracked.string('refit_DAF.root')
0054                                )
0055 
0056 process.p = cms.Path(process.MeasurementTrackerEvent*process.TrackRefitter*process.TracksDAF)
0057 process.o = cms.EndPath(process.out)
0058 
0059 ## debug(DAFTrackProducerAlgorithm)
0060 process.MessageLogger = cms.Service("MessageLogger",
0061                                     destinations = cms.untracked.vstring("debugTracking_DAF"), 
0062                                     debugModules = cms.untracked.vstring("*"), 
0063                                     categories = cms.untracked.vstring("DAFTrackProducerAlgorithm"),
0064                                     debugTracking_DAF = cms.untracked.PSet(threshold = cms.untracked.string("DEBUG"), 
0065                                                                       DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)), 
0066                                                                       default = cms.untracked.PSet(limit = cms.untracked.int32(0)), 
0067                                                                       DAFTrackProducerAlgorithm = cms.untracked.PSet(limit = cms.untracked.int32(-1)), 
0068                                                                        )
0069                                     )
0070 
0071 process.schedule = cms.Schedule(process.p,process.o)
0072 
0073 
0074