CMS 3D CMS Logo

packedPFCandidates_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 packedPFCandidates = cms.EDProducer("PATPackedCandidateProducer",
4  inputCollection = cms.InputTag("particleFlow"),
5  inputVertices = cms.InputTag("offlineSlimmedPrimaryVertices"),
6  originalVertices = cms.InputTag("offlinePrimaryVertices"),
7  originalTracks = cms.InputTag("generalTracks"),
8  vertexAssociator = cms.InputTag("primaryVertexAssociation","original"),
9  PuppiSrc = cms.InputTag("puppi"),
10  PuppiNoLepSrc = cms.InputTag("puppiNoLep"),
11  chargedHadronIsolation = cms.InputTag("chargedHadronPFTrackIsolation"),
12  minPtForChargedHadronProperties = cms.double(3.0),
13  secondaryVerticesForWhiteList = cms.VInputTag(
14  cms.InputTag("inclusiveCandidateSecondaryVertices"),
15  cms.InputTag("inclusiveCandidateSecondaryVerticesCvsL"),
16  cms.InputTag("generalV0Candidates","Kshort"),
17  cms.InputTag("generalV0Candidates","Lambda"),
18  ),
19  minPtForTrackProperties = cms.double(0.95),
20  covarianceVersion = cms.int32(0), #so far: 0 is Phase0, 1 is Phase1
21 # covariancePackingSchemas = cms.vint32(1,257,513,769,0) # a cheaper schema in kb/ev
22  covariancePackingSchemas = cms.vint32(8,264,520,776,0) # more accurate schema +0.6kb/ev
23 )
24 
25 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
26 phase1Pixel.toModify(packedPFCandidates, covarianceVersion =1 )
27 
28 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
29 run2_miniAOD_80XLegacy.toModify(packedPFCandidates, chargedHadronIsolation = "" )