Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:27:40

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/Geometry_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 process.GlobalTag.globaltag = 'START71_V1::All'#POSTLS171_V1::All'
0021 
0022 ### Track Refitter
0023 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0024 process.load("RecoTracker.TrackProducer.CTFFinalFitWithMaterialDAF_cff")
0025 process.TracksDAF.TrajectoryInEvent = True
0026 process.TracksDAF.src = 'TrackRefitter'
0027 process.TracksDAF.TrajAnnealingSaving = False
0028 process.MRHFittingSmoother.EstimateCut = -1
0029 process.MRHFittingSmoother.MinNumberOfHits = 3
0030 
0031 process.source = cms.Source("PoolSource",
0032     fileNames = cms.untracked.vstring()
0033 ) 
0034 process.PoolSource.fileNames = [
0035   "file:reco_trk.root",
0036 ]
0037 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0038 
0039 process.out = cms.OutputModule("PoolOutputModule",
0040                                outputCommands = cms.untracked.vstring('drop *_*_*_*', 
0041                                       'keep *_siPixelClusters_*_*', 
0042                                       'keep *_siStripClusters_*_*', 
0043                                       'keep *_siPixelDigis_*_*', 
0044                                       'keep *_siStripDigis_*_*', 
0045                                       'keep *_offlineBeamSpot_*_*',
0046                                       'keep *_pixelVertices_*_*',
0047                                       'keep *_siStripMatchedRecHits_*_*', 
0048                                       'keep *_initialStepSeeds_*_*', 
0049                                                                       'keep recoTracks_*_*_*',
0050                                                                       'keep recoTrackExtras_*_*_*',
0051                                                                       'keep TrackingRecHitsOwned_*_*_*'),
0052                                fileName = cms.untracked.string('refit_DAF.root')
0053                                )
0054 
0055 process.p = cms.Path(process.MeasurementTrackerEvent*process.TrackRefitter*process.TracksDAF)
0056 process.o = cms.EndPath(process.out)
0057 
0058 ## debug(DAFTrackProducerAlgorithm)
0059 process.MessageLogger = cms.Service("MessageLogger",
0060                                     destinations = cms.untracked.vstring("debugTracking_DAF"), 
0061                                     debugModules = cms.untracked.vstring("*"), 
0062                                     categories = cms.untracked.vstring("DAFTrackProducerAlgorithm"),
0063                                     debugTracking_DAF = cms.untracked.PSet(threshold = cms.untracked.string("DEBUG"), 
0064                                                                       DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)), 
0065                                                                       default = cms.untracked.PSet(limit = cms.untracked.int32(0)), 
0066                                                                       DAFTrackProducerAlgorithm = cms.untracked.PSet(limit = cms.untracked.int32(-1)), 
0067                                                                        )
0068                                     )
0069 
0070 process.schedule = cms.Schedule(process.p,process.o)
0071 
0072 
0073