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  minPtForLowQualityTrackProperties = cms.double(0.5),
21  covarianceVersion = cms.int32(0), #so far: 0 is Phase0, 1 is Phase1
22 # covariancePackingSchemas = cms.vint32(1,257,513,769,0), # a cheaper schema in kb/ev
23  covariancePackingSchemas = cms.vint32(8,264,520,776,0), # more accurate schema +0.6kb/ev
24  pfCandidateTypesForHcalDepth = cms.vint32(),
25  storeHcalDepthEndcapOnly = cms.bool(False), # switch to store info only for endcap
26  storeTiming = cms.bool(False),
27  storePfGammaEnFractions = cms.bool(False)
28 )
29 
30 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
31 phase1Pixel.toModify(packedPFCandidates, covarianceVersion =1 )
32 
33 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
34 run2_miniAOD_80XLegacy.toModify(packedPFCandidates, chargedHadronIsolation = "" )
35 
36 from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
37 run2_HCAL_2018.toModify(packedPFCandidates,
38  pfCandidateTypesForHcalDepth = [130,11,22,211,13], # PF cand types for adding Hcal depth energy frac information
39  # (130: neutral h, 11: ele, 22: photon, 211: charged h, 13: mu) # excluding e.g. 1:h_HF, 2:egamma_HF
40  storeHcalDepthEndcapOnly = True
41 )
42 
43 from Configuration.Eras.Modifier_run3_common_cff import run3_common
44 run3_common.toModify(packedPFCandidates,
45  pfCandidateTypesForHcalDepth = [], # For now, no PF cand type is considered for addition of Hcal depth energy frac
46  storeHcalDepthEndcapOnly = False
47 )
48 
49 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
50 phase2_timing.toModify(packedPFCandidates, storeTiming = True)
51 
52 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL
53 run2_miniAOD_UL.toModify(packedPFCandidates, storePfGammaEnFractions = True)
54 
55 from Configuration.Eras.Modifier_run2_miniAOD_devel_cff import run2_miniAOD_devel
56 from Configuration.Eras.Modifier_bParking_cff import bParking
57 (bParking | run2_miniAOD_devel).toModify(packedPFCandidates, minPtForLowQualityTrackProperties = 0.0)