File indexing completed on 2024-04-06 12:01:10
0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("PV")
0003 process.load("Configuration.StandardSequences.MagneticField_cff")
0004
0005 process.load("Configuration.Geometry.GeometryIdeal_cff")
0006 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0007 process.load("Configuration.StandardSequences.Reconstruction_cff")
0008 from Configuration.AlCa.GlobalTag import GlobalTag
0009 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0010
0011 process.source = cms.Source("PoolSource",
0012
0013 fileNames = cms.untracked.vstring(
0014
0015 'file:///afs/cern.ch/user/a/arizzi/workspace/444C11E2-EAB2-E611-B3D4-B083FED14CE0.root'
0016
0017 )
0018 )
0019
0020
0021 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True))
0022 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0023 process.load("Configuration.EventContent.EventContent_cff")
0024 process.out = cms.OutputModule(
0025 "PoolOutputModule",
0026 process.AODSIMEventContent,
0027 fileName = cms.untracked.string('AOD.root'),
0028 )
0029 process.out.outputCommands.extend(
0030 [
0031 'keep *'
0032 ])
0033 process.load("CommonTools.RecoAlgos.sortedPrimaryVertices_cfi")
0034 process.load("CommonTools.RecoAlgos.sortedPFPrimaryVertices_cfi")
0035
0036 process.sortedPrimaryVertices.jets = "ak4CaloJets"
0037
0038
0039
0040
0041 from CommonTools.RecoAlgos.TrackWithVertexRefSelector_cfi import *
0042 from RecoJets.JetProducers.TracksForJets_cff import *
0043 from CommonTools.RecoAlgos.sortedPrimaryVertices_cfi import *
0044 from RecoJets.JetProducers.caloJetsForTrk_cff import *
0045
0046 process.trackWithVertexRefSelectorBeforeSorting = trackWithVertexRefSelector.clone(vertexTag="offlinePrimaryVertices")
0047 process.trackWithVertexRefSelectorBeforeSorting.ptMax=9e99
0048 process.trackWithVertexRefSelectorBeforeSorting.ptErrorCut=9e99
0049 process.trackRefsForJetsBeforeSorting = trackRefsForJets.clone(src="trackWithVertexRefSelectorBeforeSorting")
0050 process.sortedPrimaryVertices.particles="trackRefsForJetsBeforeSorting"
0051
0052 process.p = cms.Path(process.trackWithVertexRefSelectorBeforeSorting+process.trackRefsForJetsBeforeSorting+process.sortedPrimaryVertices)
0053
0054 process.endpath = cms.EndPath(
0055 process.out
0056 )
0057
0058
0059