CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
photonIsolation_cff.py
Go to the documentation of this file.
2 
3 ### Compute isolation values, using POG modules
4 from RecoEgamma.EgammaIsolationAlgos.gamIsoDeposits_cff import gamIsoDepositTk, gamIsoDepositEcalFromHits, gamIsoDepositHcalFromTowers
5 from RecoEgamma.EgammaIsolationAlgos.gamIsoFromDepsModules_cff import gamIsoFromDepsTk, gamIsoFromDepsEcalFromHits, gamIsoFromDepsHcalFromTowers
6 
7 
8 gamIsoDepositEcalFromHits.ExtractorPSet.barrelEcalHits = cms.InputTag("reducedEcalRecHitsEB")
9 gamIsoDepositEcalFromHits.ExtractorPSet.endcapEcalHits = cms.InputTag("reducedEcalRecHitsEE")
10 
11 # sequence to run on AOD
12 patPhotonTrackIsolation = cms.Sequence(
13  gamIsoDepositTk * gamIsoFromDepsTk
14 )
15 
16 patPhotonEcalIsolation = cms.Sequence(
17  gamIsoDepositEcalFromHits * gamIsoFromDepsEcalFromHits
18 )
19 
20 patPhotonHcalIsolation = cms.Sequence(
21  gamIsoDepositHcalFromTowers * gamIsoFromDepsHcalFromTowers
22 )
23 
24 patPhotonIsolation = cms.Sequence(
25  patPhotonTrackIsolation +
26  patPhotonEcalIsolation +
27  patPhotonHcalIsolation
28 )