Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002  
0003 process = cms.Process("Refitting")
0004 
0005 ### standard MessageLoggerConfiguration
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 
0008 ### Standard Configurations
0009 process.load("Configuration.StandardSequences.Services_cff")
0010 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0011 process.load('Configuration/StandardSequences/Reconstruction_cff')
0012 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0013  
0014 
0015 ## Fitter-smoother: loosen outlier rejection as for first data-taking with LHC "collisions"
0016 process.KFFittingSmootherWithOutliersRejectionAndRK.BreakTrajWith2ConsecutiveMissing = False
0017 process.KFFittingSmootherWithOutliersRejectionAndRK.EstimateCut = 1000
0018 
0019 
0020 
0021 ### Conditions
0022 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0023 #process.GlobalTag.globaltag = "IDEAL_V5::All"
0024 process.GlobalTag.globaltag = 'GR09_P_V6::All'
0025 
0026 ### Track refitter specific stuff
0027 process.load("RecoTracker.TrackProducer.TrackRefitters_cff") #the correct one
0028 #process.load("RecoTracker.TrackProducer.RefitterWithMaterial_cff") #the one for backward compatibility
0029 
0030 
0031 process.maxEvents = cms.untracked.PSet(     input = cms.untracked.int32(-1)     
0032 )
0033 
0034 process.source = cms.Source("PoolSource",
0035 ### tracks from collisions                            
0036     fileNames = cms.untracked.vstring(
0037 'rfio:/castor/cern.ch/user/c/chiochia/09_beam_commissioning/BSCskim_123151_Express.root') 
0038 #'/store/relval/CMSSW_2_1_10/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/IDEAL_V9_v1/0001/1E04FC31-F99A-DD11-94EE-0018F3D096DE.root')
0039 
0040 ### tracks from cosmics                            
0041 #    fileNames = cms.untracked.vstring(
0042 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/005F51E5-0373-DD11-B6FA-001731AF6B7D.root',
0043 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/005F51E5-0373-DD11-B6FA-001731AF6B7D.root',
0044 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/006F3A6A-0373-DD11-A8E7-00304876A0FF.root',
0045 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/02CF5B1E-6476-DD11-A034-003048769E65.root',
0046 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/02DF31C3-A775-DD11-91C2-001A92971BB8.root',
0047 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/02F71F56-CE74-DD11-9DD0-001A92810AE4.root',
0048 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/0446C89C-E072-DD11-A341-0018F3D0960C.root',
0049 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/04750FC3-3E73-DD11-B054-00304876A147.root',
0050 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/04DFD531-0473-DD11-964E-0018F3D096AE.root',
0051 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/067111FB-3873-DD11-AD86-00304875A9C5.root',
0052 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/067982F4-E175-DD11-99F7-001731AF6AC5.root',
0053 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/0680EB9B-4F73-DD11-83F8-0018F3D0962E.root',
0054 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/06BF1AF3-E175-DD11-B467-00304876A147.root',
0055 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/0A3843F3-E175-DD11-8419-003048767EE7.root',
0056 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/0A5AAABA-3973-DD11-B949-003048767FA1.root',
0057 #        '/store/data/CRUZET4_v1/Cosmics/RECO/CRZT210_V1_SuperPointing_v1/0000/0A911B18-0273-DD11-A5A6-001731A283E1.root')
0058 
0059 ### tracks from beam halo muons                            
0060 ) 
0061 
0062 process.TRACKS = cms.OutputModule("PoolOutputModule",
0063                                 outputCommands = cms.untracked.vstring('drop *_*_*_*', 
0064                                                                        'keep recoTracks_*_*_*',
0065                                                                        'keep recoTrackExtras_*_*_*',
0066                                                                        'keep TrackingRecHitsOwned_*_*_*'),
0067 
0068                                 fileName = cms.untracked.string('refitting.root')
0069                                 )
0070 
0071 process.options = cms.untracked.PSet(     wantSummary = cms.untracked.bool(True) )
0072 
0073 
0074 process.p1 = cms.Path(process.TrackRefitter
0075                       #process.TrackRefitterP5
0076                       #process.TrackRefitterBHM
0077 )
0078 process.outpath = cms.EndPath(process.TRACKS)
0079 
0080