Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-21 22:40:04

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 packedPFCandidates = cms.EDProducer("PATPackedCandidateProducer",
0004     inputCollection = cms.InputTag("particleFlow"),
0005     inputVertices = cms.InputTag("offlineSlimmedPrimaryVertices"),
0006     originalVertices = cms.InputTag("offlinePrimaryVertices"),
0007     originalTracks = cms.InputTag("generalTracks"),
0008     vertexAssociator = cms.InputTag("primaryVertexAssociation","original"),
0009     PuppiSrc = cms.InputTag("puppi"),
0010     PuppiNoLepSrc = cms.InputTag("puppiNoLep"),
0011     chargedHadronIsolation = cms.InputTag("chargedHadronPFTrackIsolation"),
0012     minPtForChargedHadronProperties = cms.double(3.0),
0013     secondaryVerticesForWhiteList = cms.VInputTag(
0014       cms.InputTag("inclusiveCandidateSecondaryVertices"),
0015       cms.InputTag("inclusiveCandidateSecondaryVerticesCvsL"),
0016       cms.InputTag("generalV0Candidates","Kshort"),
0017       cms.InputTag("generalV0Candidates","Lambda"),
0018       ),
0019     minPtForTrackProperties = cms.double(0.95),
0020     minPtForLowQualityTrackProperties = cms.double(0.0),
0021     covarianceVersion = cms.int32(0), #so far: 0 is Phase0, 1 is Phase1
0022 #    covariancePackingSchemas = cms.vint32(1,257,513,769,0),  # a cheaper schema in kb/ev
0023     covariancePackingSchemas = cms.vint32(8,264,520,776,0),   # more accurate schema +0.6kb/ev
0024     pfCandidateTypesForHcalDepth = cms.vint32(),
0025     storeHcalDepthEndcapOnly = cms.bool(False), # switch to store info only for endcap
0026     storeTiming = cms.bool(False),
0027     timeMap = cms.InputTag(""),
0028     timeMapErr = cms.InputTag("")
0029 )
0030 
0031 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
0032 phase1Pixel.toModify(packedPFCandidates, covarianceVersion =1 )
0033 
0034 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
0035 run2_miniAOD_80XLegacy.toModify(packedPFCandidates, chargedHadronIsolation = "" )
0036 
0037 from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
0038 run2_HCAL_2018.toModify(packedPFCandidates,
0039     pfCandidateTypesForHcalDepth = [130,11,22,211,13],  # PF cand types for adding Hcal depth energy frac information
0040                         # (130: neutral h, 11: ele, 22: photon, 211: charged h, 13: mu) # excluding e.g. 1:h_HF, 2:egamma_HF
0041     storeHcalDepthEndcapOnly = True
0042 )
0043 
0044 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0045 run3_common.toModify(packedPFCandidates,
0046     pfCandidateTypesForHcalDepth = [], # For now, no PF cand type is considered for addition of Hcal depth energy frac
0047     storeHcalDepthEndcapOnly = False
0048 )
0049 
0050 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
0051 phase2_timing.toModify(packedPFCandidates, storeTiming = cms.bool(True))
0052 
0053 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0054 pp_on_AA.toModify(packedPFCandidates, PuppiSrc = "", PuppiNoLepSrc = "")
0055 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X
0056 run2_miniAOD_pp_on_AA_103X.toModify(packedPFCandidates,
0057                                     inputCollection = "cleanedParticleFlow",
0058                                     chargedHadronIsolation = ""
0059                                 )