CMS 3D CMS Logo

jetProducer_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
9 
10 
11 makePatJetsTask = cms.Task(
12  patJetCorrectionsTask,
13  patJetCharge,
14  patJetPartonMatch,
15  patJetGenJetMatch,
16  patJetFlavourIdLegacyTask,
17  patJetFlavourIdTask,
18  patJets
19  )
20 
22 _makePatJetsTaskHI2018 = cms.Task(
23  recoPFJetsHIpostAODTask,
24  recoGenJetsHIpostAODTask,
25  makePatJetsTask.copy()
26 )
27 _makePatJetsTaskHI = cms.Task(
28  recoGenJetsHIpostAODTask,
29  makePatJetsTask.copy()
30 )
31 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
32 pp_on_AA_2018.toReplaceWith(makePatJetsTask, _makePatJetsTaskHI2018)
33 from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
34 pp_on_PbPb_run3.toReplaceWith(makePatJetsTask, _makePatJetsTaskHI)
35 
36 makePatJets = cms.Sequence(makePatJetsTask)
37 
38 from RecoBTag.ImpactParameter.pfImpactParameterTagInfos_cfi import * #pfImpactParameterTagInfos
39 from RecoBTag.SecondaryVertex.pfSecondaryVertexTagInfos_cfi import * #pfSecondaryVertexTagInfos
40 from RecoBTag.SecondaryVertex.pfInclusiveSecondaryVertexFinderTagInfos_cfi import * #pfInclusiveSecondaryVertexFinderTagInfos
41 from RecoBTag.Combined.deepFlavour_cff import * #pfDeepCSVTask
42 
43 #make a copy to avoid labels and substitution problems
44 _makePatJetsWithDeepFlavorTask = makePatJetsTask.copy()
45 _makePatJetsWithDeepFlavorTask.add(
46  pfImpactParameterTagInfos,
47  pfSecondaryVertexTagInfos,
48  pfInclusiveSecondaryVertexFinderTagInfos,
49  pfDeepCSVTask
50 )
51 
52 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
53 run2_miniAOD_80XLegacy.toReplaceWith(
54  makePatJetsTask, _makePatJetsWithDeepFlavorTask
55 )
56 
57