CMS 3D CMS Logo

heavyIonJets_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoHI.HiJetAlgos.hiSignalParticleProducer_cfi import hiSignalParticleProducer as hiSignalGenParticles
4 from RecoJets.Configuration.GenJetParticles_cff import genParticlesForJets
5 from RecoHI.HiJetAlgos.HiGenCleaner_cff import hiPartons
6 from RecoHI.HiJetAlgos.HiGenJets_cff import ak4HiGenJets
7 from RecoHI.HiJetAlgos.HiGenCleaner_cff import heavyIonCleanedGenJets
8 from RecoHI.HiJetAlgos.hiSignalGenJetProducer_cfi import hiSignalGenJetProducer
9 ak4HiSignalGenJets = hiSignalGenJetProducer.clone(src = "ak4HiGenJets")
10 
11 allPartons = cms.EDProducer(
12  "PartonSelector",
13  src = cms.InputTag('hiSignalGenParticles'),
14  withLeptons = cms.bool(False),
15  )
16 
17 from Configuration.ProcessModifiers.genJetSubEvent_cff import genJetSubEvent
18 genJetSubEvent.toModify(allPartons,src = "genParticles")
19 
20 cleanedPartons = hiPartons.clone(
21  src = 'allPartons',
22  )
23 
24 hiGenJetsTask = cms.Task(
25  hiSignalGenParticles,
26  genParticlesForJets,
27  allPartons,
28  ak4HiGenJets,
29  ak4HiSignalGenJets
30 )
31 
32 ak4HiGenJetsCleaned = heavyIonCleanedGenJets.clone(src = "ak4HiGenJets")
33 hiCleanedGenJetsTask_ = hiGenJetsTask.copyAndExclude([hiSignalGenParticles,ak4HiSignalGenJets])
34 hiCleanedGenJetsTask_.add(cleanedPartons,ak4HiGenJetsCleaned)
35 genJetSubEvent.toReplaceWith(hiGenJetsTask,hiCleanedGenJetsTask_)
36 
37 from RecoHI.HiJetAlgos.PackedPFTowers_cfi import PackedPFTowers
38 from RecoHI.HiJetAlgos.HiRecoPFJets_cff import pfEmptyCollection, ak4PFJetsForFlow, hiPuRho, hiFJRhoFlowModulation, akCs4PFJets
39 from RecoHI.HiTracking.highPurityGeneralTracks_cfi import highPurityGeneralTracks
41 from RecoBTag.Configuration.RecoBTag_cff import impactParameterTagInfos, trackCountingHighEffBJetTags, trackCountingHighPurBJetTags, jetProbabilityBJetTags, jetBProbabilityBJetTags, secondaryVertexTagInfos, combinedSecondaryVertexV2BJetTags, simpleSecondaryVertexHighEffBJetTags, simpleSecondaryVertexHighPurBJetTags
42 ak5JetTracksAssociatorAtVertex
52 
53 recoPFJetsHIpostAODTask = cms.Task(
54  PackedPFTowers,
55  pfEmptyCollection,
56  ak4PFJetsForFlow,
57  hiFJRhoFlowModulation,
58  hiPuRho,
59  highPurityGeneralTracks,
60  akCs4PFJets,
61  ak5JetTracksAssociatorAtVertex,
62  impactParameterTagInfos,
63  trackCountingHighEffBJetTags,
64  trackCountingHighPurBJetTags,
65  jetProbabilityBJetTags,
66  jetBProbabilityBJetTags,
67  secondaryVertexTagInfos,
68  combinedSecondaryVertexV2BJetTags,
69  simpleSecondaryVertexHighEffBJetTags,
70  simpleSecondaryVertexHighPurBJetTags,
71  patJetCorrFactors
72 )
73 
74 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X
75 from RecoJets.JetProducers.ak4PFJets_cfi import ak4PFJets,ak4PFJetsCHS
77 _recoPFJetsHIpostAODTask = recoPFJetsHIpostAODTask.copy()
78 _recoPFJetsHIpostAODTask.add(ak4PFJets,pfNoPileUpJMETask,ak4PFJetsCHS)
79 run2_miniAOD_pp_on_AA_103X.toReplaceWith(recoPFJetsHIpostAODTask, _recoPFJetsHIpostAODTask)
80 
81 
82 recoGenJetsHIpostAODTask = cms.Task(
83  allPartons,
84  hiGenJetsTask,
85  )
User floats producers, selectors ##########################.
genjet cleaning for improved matching in HI environment