CMS 3D CMS Logo

slimmedEgammaFromMultiCl_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsFromMultiCl_cfi import cleanedEcalDrivenGsfElectronsFromMultiCl
4 from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff import hgcalElectronIDValueMap
5 from PhysicsTools.PatAlgos.PATElectronProducer_cfi import PATElectronProducer
7 from RecoLocalCalo.HGCalRecProducers.hgcalRecHitMapProducer_cfi import hgcalRecHitMapProducer
8 
9 hgcElectronID = hgcalElectronIDValueMap.clone(
10  electrons = "cleanedEcalDrivenGsfElectronsFromMultiCl",
11 )
12 patElectronsFromMultiCl = PATElectronProducer.clone(
13  electronSource = "cleanedEcalDrivenGsfElectronsFromMultiCl",
14  beamLineSrc = "offlineBeamSpot",
15  pvSrc = "offlinePrimaryVertices",
16  addElectronID = False,
17  addGenMatch = False,
18  addMVAVariables = False,
19  embedGenMatch = False,
20  embedGsfElectronCore = True,
21  embedGsfTrack = True,
22  embedSuperCluster = True,
23  embedPflowSuperCluster = False,
24  embedSeedCluster = True,
25  embedBasicClusters = False,
26  embedPreshowerClusters = False,
27  embedPflowBasicClusters = False,
28  embedPflowPreshowerClusters= False,
29  embedPFCandidate = False,
30  embedTrack = True,
31  embedRecHits = False,
32  embedHighLevelSelection = True,
33  userData = cms.PSet(
34  userClasses = cms.PSet( src = cms.VInputTag('')),
35  userFloats = cms.PSet( src = cms.VInputTag(
36  [cms.InputTag("hgcElectronID", key) for key in hgcElectronID.variables]
37  )),
38  userInts = cms.PSet( src = cms.VInputTag('')),
39  userCands = cms.PSet( src = cms.VInputTag('')),
40  userFunctions = cms.vstring(),
41  userFunctionLabels = cms.vstring()
42  ),
43 )
44 selectedPatElectronsFromMultiCl = cms.EDFilter("PATElectronSelector",
45  src = cms.InputTag("patElectronsFromMultiCl"),
46  cut = cms.string("!isEB && pt >= 10."),
47 )
48 slimmedElectronsFromMultiCl = slimmedElectrons.clone(
49  src = "selectedPatElectronsFromMultiCl",
50  linkToPackedPFCandidates = False,
51  saveNonZSClusterShapes = "0",
52  modifyElectrons = False,
53 )
54 
55 slimmedElectronsFromMultiClTask = cms.Task(
56  cleanedEcalDrivenGsfElectronsFromMultiCl,
57  hgcElectronID,
58  patElectronsFromMultiCl,
59  selectedPatElectronsFromMultiCl,
60  slimmedElectronsFromMultiCl
61 )
62 
63 
64 from RecoEgamma.EgammaTools.hgcalPhotonIDValueMap_cff import hgcalPhotonIDValueMap
65 from PhysicsTools.PatAlgos.PATPhotonProducer_cfi import PATPhotonProducer
67 
68 hgcPhotonID = hgcalPhotonIDValueMap.clone()
69 
70 patPhotonsFromMultiCl = PATPhotonProducer.clone(
71  photonSource = "photonsFromMultiCl",
72  electronSource = "ecalDrivenGsfElectronsFromMultiCl",
73  beamLineSrc = "offlineBeamSpot",
74  addPhotonID = False,
75  addGenMatch = False,
76  embedSuperCluster = True,
77  embedSeedCluster = True,
78  embedBasicClusters = False,
79  embedPreshowerClusters = False,
80  embedRecHits = False,
81  saveRegressionData = False,
82  embedGenMatch = False,
83  isolationValues = cms.PSet(),
84  userData = cms.PSet(
85  userClasses = cms.PSet( src = cms.VInputTag('')),
86  userFloats = cms.PSet( src = cms.VInputTag(
87  [cms.InputTag("hgcPhotonID", key) for key in hgcPhotonID.variables]
88  )),
89  userInts = cms.PSet( src = cms.VInputTag('')),
90  userCands = cms.PSet( src = cms.VInputTag('')),
91  userFunctions = cms.vstring(),
92  userFunctionLabels = cms.vstring()
93  ),
94 )
95 selectedPatPhotonsFromMultiCl = cms.EDFilter("PATPhotonSelector",
96  src = cms.InputTag("patPhotonsFromMultiCl"),
97  cut = cms.string("!isEB && pt >= 15."),
98 )
99 slimmedPhotonsFromMultiCl = slimmedPhotons.clone(
100  src = "selectedPatPhotonsFromMultiCl",
101  linkToPackedPFCandidates = False,
102  saveNonZSClusterShapes = "0",
103  modifyPhotons = False,
104 )
105 
106 slimmedPhotonsFromMultiClTask = cms.Task(
107  hgcPhotonID,
108  patPhotonsFromMultiCl,
109  selectedPatPhotonsFromMultiCl,
110  slimmedPhotonsFromMultiCl
111 )
112 
113 slimmedEgammaFromMultiClTask = cms.Task(
114  hgcalRecHitMapProducer,
115  slimmedElectronsFromMultiClTask,
116  slimmedPhotonsFromMultiClTask
117 )
slimmedElectrons_cfi
slimmedPhotons_cfi