Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:05

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("PV")
0003 process.load("Configuration.StandardSequences.MagneticField_cff")
0004 #process.load("Configuration.StandardSequences.Geometry_cff") #old one, to use for old releases
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 #   skipEvents=cms.untracked.uint32(0),
0013     fileNames = cms.untracked.vstring(
0014 #'root://xrootd.ba.infn.it//store/mc/RunIISpring15DR74/WprimeToWZToLLQQ_M-4000_TuneCUETP8M1_13TeV-pythia8/AODSIM/Asympt25ns_MCRUN2_74_V9-v1/10000/126A3AFB-9607-E511-A527-90B11C12EA74.root'
0015     'file:///afs/cern.ch/user/a/arizzi/workspace/444C11E2-EAB2-E611-B3D4-B083FED14CE0.root'
0016 #     'file:../../../00387B2C-4A1C-E511-A4E0-0026189438B3.root'
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 #process.sortedPFPrimaryVerticesNoMET = process.sortedPFPrimaryVertices.clone(usePVMET=False)
0038 #process.sortedPrimaryVerticesNoMET = process.sortedPrimaryVertices.clone(usePVMET=False,jets="ak4CaloJets")
0039 #process.p = cms.Path(process.sortedPFPrimaryVertices*process.sortedPrimaryVertices*process.sortedPFPrimaryVerticesNoMET*process.sortedPrimaryVerticesNoMET)
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