Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:16:22

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from PhysicsTools.PatAlgos.recoLayer0.bTagging_cff import *
0004 from PhysicsTools.PatAlgos.recoLayer0.jetTracksCharge_cff import *
0005 from PhysicsTools.PatAlgos.recoLayer0.jetCorrections_cff import *
0006 from PhysicsTools.PatAlgos.mcMatchLayer0.jetMatch_cfi import *
0007 from PhysicsTools.PatAlgos.mcMatchLayer0.jetFlavourId_cff import *
0008 from PhysicsTools.PatAlgos.producersLayer1.jetProducer_cfi import *
0009 
0010 ## for scheduled mode
0011 makePatJetsTask = cms.Task(
0012     patJetCorrectionsTask,
0013     patJetCharge,
0014     patJetPartonMatch,
0015     patJetGenJetMatch,
0016     patJetFlavourIdLegacyTask,
0017     patJetFlavourIdTask,
0018     patJets
0019     )
0020 
0021 from PhysicsTools.PatAlgos.producersHeavyIons.heavyIonJets_cff import *
0022 _makePatJetsTaskHI2018 = cms.Task(
0023     recoPFJetsHIpostAODTask,
0024     recoGenJetsHIpostAODTask,
0025     makePatJetsTask.copy()
0026 )
0027 _makePatJetsTaskHI = cms.Task(
0028     recoGenJetsHIpostAODTask,
0029     makePatJetsTask.copy()
0030 )
0031 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
0032 pp_on_AA_2018.toReplaceWith(makePatJetsTask, _makePatJetsTaskHI2018)
0033 from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
0034 pp_on_PbPb_run3.toReplaceWith(makePatJetsTask, _makePatJetsTaskHI)
0035 
0036 makePatJets = cms.Sequence(makePatJetsTask)
0037 
0038 from RecoBTag.ImpactParameter.pfImpactParameterTagInfos_cfi import * #pfImpactParameterTagInfos
0039 from RecoBTag.SecondaryVertex.pfSecondaryVertexTagInfos_cfi import * #pfSecondaryVertexTagInfos
0040 from RecoBTag.SecondaryVertex.pfInclusiveSecondaryVertexFinderTagInfos_cfi import * #pfInclusiveSecondaryVertexFinderTagInfos
0041 from RecoBTag.Combined.deepFlavour_cff import * #pfDeepCSVTask
0042 
0043 #make a copy to avoid labels and substitution problems
0044 _makePatJetsWithDeepFlavorTask = makePatJetsTask.copy()
0045 _makePatJetsWithDeepFlavorTask.add(
0046     pfImpactParameterTagInfos, 
0047     pfSecondaryVertexTagInfos,
0048     pfInclusiveSecondaryVertexFinderTagInfos,
0049     pfDeepCSVTask
0050 )
0051 
0052 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
0053 run2_miniAOD_80XLegacy.toReplaceWith(
0054     makePatJetsTask, _makePatJetsWithDeepFlavorTask
0055 )
0056 
0057