CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
electronIsolation_cff.py
Go to the documentation of this file.
2 
3 ## compute isolation, using POG modules
4 from RecoEgamma.EgammaIsolationAlgos.eleIsoDeposits_cff import eleIsoDepositTk, eleIsoDepositEcalFromHits, eleIsoDepositHcalFromTowers
5 from RecoEgamma.EgammaIsolationAlgos.eleIsoFromDeposits_cff import eleIsoFromDepsTk, eleIsoFromDepsEcalFromHitsByCrystal, eleIsoFromDepsHcalFromTowers
6 
7 
8 eleIsoDepositEcalFromHits.ExtractorPSet.barrelEcalHits = cms.InputTag("reducedEcalRecHitsEB")
9 eleIsoDepositEcalFromHits.ExtractorPSet.endcapEcalHits = cms.InputTag("reducedEcalRecHitsEE")
10 
11 ## sequence to run on AOD
12 patElectronTrackIsolation = cms.Sequence(
13  eleIsoDepositTk * eleIsoFromDepsTk
14 )
15 
16 patElectronEcalIsolation = cms.Sequence(
17  eleIsoDepositEcalFromHits * eleIsoFromDepsEcalFromHitsByCrystal
18 )
19 
20 patElectronHcalIsolation = cms.Sequence(
21  eleIsoDepositHcalFromTowers * eleIsoFromDepsHcalFromTowers
22 )
23 
24 patElectronIsolation = cms.Sequence(
25  patElectronTrackIsolation +
26  patElectronEcalIsolation +
27  patElectronHcalIsolation
28 )