CMS 3D CMS Logo

slimmedEgammaHGC_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsHGC_cfi import cleanedEcalDrivenGsfElectronsHGC
4 from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff import hgcalElectronIDValueMap
5 from PhysicsTools.PatAlgos.PATElectronProducer_cfi import PATElectronProducer
7 from RecoLocalCalo.HGCalRecProducers.recHitMapProducer_cfi import recHitMapProducer
8 
9 hgcElectronID = hgcalElectronIDValueMap.clone(
10  electrons = "cleanedEcalDrivenGsfElectronsHGC",
11 )
12 patElectronsHGC = PATElectronProducer.clone(
13  electronSource = "cleanedEcalDrivenGsfElectronsHGC",
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 selectedPatElectronsHGC = cms.EDFilter("PATElectronSelector",
45  src = cms.InputTag("patElectronsHGC"),
46  cut = cms.string("!isEB && pt >= 10."),
47 )
48 slimmedElectronsHGC = slimmedElectrons.clone(
49  src = "selectedPatElectronsHGC",
50  linkToPackedPFCandidates = False,
51  saveNonZSClusterShapes = "0",
52  modifyElectrons = False,
53 )
54 
55 slimmedElectronsHGCTask = cms.Task(
56  cleanedEcalDrivenGsfElectronsHGC,
57  hgcElectronID,
58  patElectronsHGC,
59  selectedPatElectronsHGC,
60  slimmedElectronsHGC
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 patPhotonsHGC = PATPhotonProducer.clone(
71  photonSource = "photonsHGC",
72  electronSource = "ecalDrivenGsfElectronsHGC",
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 selectedPatPhotonsHGC = cms.EDFilter("PATPhotonSelector",
96  src = cms.InputTag("patPhotonsHGC"),
97  cut = cms.string("!isEB && pt >= 15."),
98 )
99 slimmedPhotonsHGC = slimmedPhotons.clone(
100  src = "selectedPatPhotonsHGC",
101  linkToPackedPFCandidates = False,
102  saveNonZSClusterShapes = "0",
103  modifyPhotons = False,
104 )
105 
106 slimmedPhotonsHGCTask = cms.Task(
107  hgcPhotonID,
108  patPhotonsHGC,
109  selectedPatPhotonsHGC,
110  slimmedPhotonsHGC
111 )
112 
113 slimmedEgammaHGCTask = cms.Task(
114  recHitMapProducer,
115  slimmedElectronsHGCTask,
116  slimmedPhotonsHGCTask
117 )