Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:36:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("OWNPARTICLES")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 
0007 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0008 
0009 process.source = cms.Source("PoolSource",
0010     fileNames = cms.untracked.vstring('file:/user/geisler/QCD_Pt-15to3000_Tune2C_Flat_8TeV_pythia8_AODSIM.root'),
0011 )
0012 
0013 ### conditions
0014 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0015 process.GlobalTag.globaltag = 'START53_V11::All'
0016         
0017 ### standard includes
0018 process.load('Configuration.StandardSequences.Services_cff')
0019 process.load('Configuration.Geometry.GeometryPilot2_cff')
0020 process.load("Configuration.StandardSequences.RawToDigi_cff")
0021 process.load("Configuration.EventContent.EventContent_cff")
0022 process.load("Configuration.StandardSequences.MagneticField_cff")   
0023     
0024 process.selectedPrimaryVertexQuality = cms.EDFilter("VertexSelector",
0025     src = cms.InputTag('offlinePrimaryVertices'),
0026     cut = cms.string("isValid & ndof >= 4 & chi2 > 0 & tracksSize > 0 & abs(z) < 24 & abs(position.Rho) < 2."),
0027     filter = cms.bool(True),
0028 )
0029         
0030 ### PFCandidate AssociationMap-specific includes
0031 from CommonTools.RecoUtils.pf_pu_assomap_cfi import AssociationMaps
0032         
0033 process.assMap = AssociationMaps.clone(
0034           VertexCollection = cms.InputTag('selectedPrimaryVertexQuality'),
0035 )
0036         
0037 ### PFCandidate AssociationMap-specific includes
0038 from CommonTools.RecoUtils.pfcand_assomap_cfi import PFCandAssoMap
0039         
0040 process.PFCand2VertexAM = PFCandAssoMap.clone(
0041           VertexCollection = cms.InputTag('selectedPrimaryVertexQuality'),
0042 )
0043         
0044 ### PFCandidateCollection-specific includes
0045 from CommonTools.RecoUtils.pfcand_nopu_witham_cfi import FirstVertexPFCandidates
0046         
0047 process.PFCand = FirstVertexPFCandidates.clone(
0048           VertexPFCandAssociationMap = cms.InputTag('PFCand2VertexAM'),
0049           VertexCollection = cms.InputTag('selectedPrimaryVertexQuality'),
0050 )
0051 
0052   
0053 process.p = cms.Path(  
0054       process.selectedPrimaryVertexQuality
0055     * process.assMap
0056     * process.PFCand2VertexAM
0057     * process.PFCand
0058 )
0059         
0060 process.myOutput = cms.OutputModule("PoolOutputModule",
0061         fileName = cms.untracked.string('myOutput.root')
0062 )
0063   
0064 process.e = cms.EndPath( process.myOutput )