CMS 3D CMS Logo

selectedPatCandidates_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
9 #from PhysicsTools.PatAlgos.producersLayer1.hemisphereProducer_cfi import *
10 
11 # One module to count objects
12 selectedPatCandidateSummary = cms.EDAnalyzer("CandidateSummaryTable",
13  logName = cms.untracked.string("selectedPatCanddiates|PATSummaryTables"),
14  candidates = cms.VInputTag(
15  cms.InputTag("selectedPatElectrons"),
16  cms.InputTag("selectedPatMuons"),
17  cms.InputTag("selectedPatTaus"),
18  cms.InputTag("selectedPatPhotons"),
19  cms.InputTag("selectedPatOOTPhotons"),
20  cms.InputTag("selectedPatJets"),
21  )
22 )
23 
24 selectedPatCandidatesTask = cms.Task(
25  selectedPatElectrons,
26  selectedPatMuons,
27  selectedPatTaus,
28  selectedPatPhotons,
29  selectedPatOOTPhotons,
30  selectedPatJets
31 )
32 
33 selectedPatCandidates = cms.Sequence(selectedPatCandidateSummary, selectedPatCandidatesTask)
34 
35 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
36 pp_on_AA_2018.toReplaceWith(selectedPatCandidatesTask, selectedPatCandidatesTask.copyAndExclude([selectedPatOOTPhotons]))
37 pp_on_AA_2018.toModify(selectedPatCandidateSummary.candidates, func = lambda list: list.remove(cms.InputTag("selectedPatOOTPhotons")) )