CMS 3D CMS Logo

electronProducer_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
6 
9 
10 sourceElectrons = patElectrons.electronSource
11 
12 elPFIsoDepositChargedPAT.src = sourceElectrons
13 elPFIsoDepositChargedAllPAT.src = sourceElectrons
14 elPFIsoDepositNeutralPAT.src = sourceElectrons
15 elPFIsoDepositGammaPAT.src = sourceElectrons
16 elPFIsoDepositPUPAT.src = sourceElectrons
17 
18 patElectrons.isoDeposits = cms.PSet(
19  pfChargedHadrons = cms.InputTag("elPFIsoDepositChargedPAT" ),
20  pfChargedAll = cms.InputTag("elPFIsoDepositChargedAllPAT" ),
21  pfPUChargedHadrons = cms.InputTag("elPFIsoDepositPUPAT" ),
22  pfNeutralHadrons = cms.InputTag("elPFIsoDepositNeutralPAT" ),
23  pfPhotons = cms.InputTag("elPFIsoDepositGammaPAT" ),
24  )
25 
26 patElectrons.isolationValues = cms.PSet(
27  pfChargedHadrons = cms.InputTag("elPFIsoValueCharged04PFIdPAT"),
28  pfChargedAll = cms.InputTag("elPFIsoValueChargedAll04PFIdPAT"),
29  pfPUChargedHadrons = cms.InputTag("elPFIsoValuePU04PFIdPAT" ),
30  pfNeutralHadrons = cms.InputTag("elPFIsoValueNeutral04PFIdPAT" ),
31  pfPhotons = cms.InputTag("elPFIsoValueGamma04PFIdPAT" ),
32  )
33 
34 patElectrons.isolationValuesNoPFId = cms.PSet(
35  pfChargedHadrons = cms.InputTag("elPFIsoValueCharged04NoPFIdPAT"),
36  pfChargedAll = cms.InputTag("elPFIsoValueChargedAll04NoPFIdPAT"),
37  pfPUChargedHadrons = cms.InputTag("elPFIsoValuePU04NoPFIdPAT" ),
38  pfNeutralHadrons = cms.InputTag("elPFIsoValueNeutral04NoPFIdPAT" ),
39  pfPhotons = cms.InputTag("elPFIsoValueGamma04NoPFIdPAT" )
40  )
41 
42 
43 makePatElectronsTask = cms.Task(
44  pfParticleSelectionForIsoTask,
45  pfElectronIsolationPATTask,
46  electronMatch,
47  patElectrons
48  )
49 makePatElectrons = cms.Sequence(makePatElectronsTask)
pfParticleSelectionForIso_cff
electronProducer_cfi
pfElectronIsolationPAT_cff
electronMatch_cfi
TransientTrackBuilder_cfi