Example #1
0
        [slimmedDisplacedMuons, slimmedDisplacedMuonTrackExtras]))

from PhysicsTools.PatAlgos.slimming.hiPixelTracks_cfi import hiPixelTracks
from RecoHI.HiEvtPlaneAlgos.HiEvtPlane_cfi import hiEvtPlane
from RecoHI.HiEvtPlaneAlgos.hiEvtPlaneFlat_cfi import hiEvtPlaneFlat

pp_on_AA.toReplaceWith(
    slimmingTask,
    cms.Task(slimmingTask.copy(), hiPixelTracks, hiEvtPlane, hiEvtPlaneFlat))

from PhysicsTools.PatAlgos.packedCandidateMuonID_cfi import packedCandidateMuonID
from PhysicsTools.PatAlgos.packedPFCandidateTrackChi2_cfi import packedPFCandidateTrackChi2
from RecoHI.HiCentralityAlgos.CentralityBin_cfi import centralityBin
from RecoHI.HiCentralityAlgos.hiHFfilters_cfi import hiHFfilters

lostTrackChi2 = packedPFCandidateTrackChi2.clone(candidates="lostTracks",
                                                 doLostTracks=True)

pp_on_AA.toReplaceWith(
    slimmingTask,
    cms.Task(slimmingTask.copy(), packedCandidateMuonID,
             packedPFCandidateTrackChi2, lostTrackChi2, centralityBin,
             hiHFfilters))
from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X

run2_miniAOD_pp_on_AA_103X.toReplaceWith(
    slimmingTask, cms.Task(primaryVertexAssociationCleaned,
                           slimmingTask.copy()))
run2_miniAOD_pp_on_AA_103X.toReplaceWith(
    slimmingTask,
    cms.Task(primaryVertexWithBSAssociationCleaned, slimmingTask.copy()))
run2_miniAOD_pp_on_AA_103X.toReplaceWith(
Example #2
0
slimmingTask = cms.Task(
    packedPFCandidatesTask, lostTracks, isolatedTracks,
    offlineSlimmedPrimaryVertices, primaryVertexAssociation, genParticlesTask,
    selectedPatTrigger, slimmedPatTrigger, slimmedCaloJets, slimmedJets,
    slimmedJetsAK8, slimmedGenJets, slimmedGenJetsAK8, slimmedElectrons,
    slimmedMuons, slimmedPhotons, slimmedOOTPhotons, slimmedTaus,
    slimmedSecondaryVertices, slimmedKshortVertices, slimmedLambdaVertices,
    slimmedMETs, metFilterPathsTask, reducedEgamma, bunchSpacingProducer,
    oniaPhotonCandidates)

from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
pp_on_AA_2018.toReplaceWith(slimmingTask,
                            slimmingTask.copyAndExclude([slimmedOOTPhotons]))

from PhysicsTools.PatAlgos.packedPFCandidateMuonID_cfi import packedPFCandidateMuonID
from PhysicsTools.PatAlgos.packedPFCandidateTrackChi2_cfi import packedPFCandidateTrackChi2
from RecoHI.HiTracking.hipixeltracks_miniAOD_cfi import hipixeltracks
from RecoHI.HiCentralityAlgos.hihffilter_miniAOD_cfi import hihffilter
pp_on_AA_2018.toModify(packedPFCandidateMuonID,
                       muonSelectors=cms.vstring(
                           ["AllTrackerMuons", "TMOneStationTight"]))
lostTrackMuonID = packedPFCandidateMuonID.clone(
    candidates=cms.InputTag("lostTracks"))
lostTrackChi2 = packedPFCandidateTrackChi2.clone(
    candidates=cms.InputTag("lostTracks"))
pp_on_AA_2018.toReplaceWith(
    slimmingTask,
    cms.Task(slimmingTask.copy(), hihffilter, packedPFCandidateMuonID,
             lostTrackMuonID, packedPFCandidateTrackChi2, lostTrackChi2,
             hipixeltracks))