Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:00

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 _makePatJetsTaskHI = cms.Task(
0023     recoJetsHIpostAODTask,
0024     makePatJetsTask.copy()
0025 )
0026 
0027 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0028 pp_on_AA.toReplaceWith(makePatJetsTask, _makePatJetsTaskHI)
0029 
0030 makePatJets = cms.Sequence(makePatJetsTask)
0031 
0032 from RecoBTag.ImpactParameter.pfImpactParameterTagInfos_cfi import * #pfImpactParameterTagInfos
0033 from RecoBTag.SecondaryVertex.pfSecondaryVertexTagInfos_cfi import * #pfSecondaryVertexTagInfos
0034 from RecoBTag.SecondaryVertex.pfInclusiveSecondaryVertexFinderTagInfos_cfi import * #pfInclusiveSecondaryVertexFinderTagInfos
0035 from RecoBTag.Combined.deepFlavour_cff import * #pfDeepCSVTask
0036 
0037 #make a copy to avoid labels and substitution problems
0038 _makePatJetsWithDeepFlavorTask = makePatJetsTask.copy()
0039 _makePatJetsWithDeepFlavorTask.add(
0040     pfImpactParameterTagInfos, 
0041     pfSecondaryVertexTagInfos,
0042     pfInclusiveSecondaryVertexFinderTagInfos,
0043     pfDeepCSVTask
0044 )
0045 
0046 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
0047 run2_miniAOD_80XLegacy.toReplaceWith(
0048     makePatJetsTask, _makePatJetsWithDeepFlavorTask
0049 )
0050 
0051