File indexing completed on 2024-04-06 12:31:43
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from Configuration.Eras.Era_Run3_cff import Run3
0004
0005 process = cms.Process("G4eRefit",Run3)
0006
0007
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 process.load('Configuration.StandardSequences.GeometrySimDB_cff')
0014 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0015 process.load('Configuration.StandardSequences.MagneticField_cff')
0016 process.load('Configuration.StandardSequences.Reconstruction_cff')
0017 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0018
0019
0020 from Configuration.AlCa.GlobalTag import GlobalTag
0021 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0022
0023 process.load("FWCore.MessageService.MessageLogger_cfi")
0024 process.MessageLogger.default = cms.untracked.PSet(ERROR = cms.untracked.PSet(limit = cms.untracked.int32(5)))
0025 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0026
0027 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(20) )
0028
0029 process.source = cms.Source("PoolSource",
0030 fileNames = cms.untracked.vstring(
0031 '/store/relval/CMSSW_14_0_0_pre2/RelValSingleMuPt10/GEN-SIM-RECO/133X_mcRun3_2023_realistic_v3_STD-v2/2590000/da5cf255-2d65-41ec-ac89-45daf33c66d3.root',
0032 ),
0033 )
0034
0035 process.load("TrackPropagation.Geant4e.geantRefit_cff")
0036 process.Geant4eTrackRefitter.src = cms.InputTag("generalTracks")
0037 process.Geant4eTrackRefitter.usePropagatorForPCA = cms.bool(True)
0038 process.g4RefitPath = cms.Path( process.MeasurementTrackerEvent * process.geant4eTrackRefit )
0039
0040 process.out = cms.OutputModule( "PoolOutputModule",
0041 outputCommands = cms.untracked.vstring(
0042 'keep *'
0043 ),
0044 fileName = cms.untracked.string( 'test.root' )
0045 )
0046
0047 process.e = cms.EndPath(process.out)
0048 process.schedule = cms.Schedule( process.g4RefitPath, process.e )
0049
0050