CMS 3D CMS Logo

electronProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 patElectrons = cms.EDProducer("PATElectronProducer",
4  # input collection
5  electronSource = cms.InputTag("gedGsfElectrons"),
6 
7  # use particle flow instead of std reco
8  useParticleFlow = cms.bool( False ),
9  pfElectronSource = cms.InputTag("particleFlow"),
10  pfCandidateMap = cms.InputTag("particleFlow:electrons"),
11 
12  # collections for mva input variables
13  reducedBarrelRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
14  reducedEndcapRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
15 
16  # user data to add
17  userData = cms.PSet(
18  # add custom classes here
19  userClasses = cms.PSet(
20  src = cms.VInputTag('')
21  ),
22  # add doubles here
23  userFloats = cms.PSet(
24  src = cms.VInputTag('')
25  ),
26  # add ints here
27  userInts = cms.PSet(
28  src = cms.VInputTag('')
29  ),
30  # add candidate ptrs here
31  userCands = cms.PSet(
32  src = cms.VInputTag('')
33  ),
34  # add "inline" functions here
35  userFunctions = cms.vstring(),
36  userFunctionLabels = cms.vstring()
37  ),
38 
39 
40 
41  # embedding of AOD items
42  embedGsfElectronCore = cms.bool(True), ## embed in AOD externally stored gsf electron core
43  embedGsfTrack = cms.bool(True), ## embed in AOD externally stored gsf track
44  embedSuperCluster = cms.bool(True), ## embed in AOD externally stored supercluster
45  embedPflowSuperCluster = cms.bool(True), ## embed in AOD externally stored supercluster
46  embedSeedCluster = cms.bool(True), ## embed in AOD externally stored the electron's seedcluster
47  embedBasicClusters = cms.bool(True), ## embed in AOD externally stored the electron's basic clusters
48  embedPreshowerClusters = cms.bool(True), ## embed in AOD externally stored the electron's preshower clusters
49  embedPflowBasicClusters = cms.bool(True), ## embed in AOD externally stored the electron's pflow basic clusters
50  embedPflowPreshowerClusters = cms.bool(True), ## embed in AOD externally stored the electron's pflow preshower clusters
51  embedPFCandidate = cms.bool(True), ## embed in AOD externally stored particle flow candidate
52  embedTrack = cms.bool(True), ## embed in AOD externally stored track (note: gsf electrons don't have a track)
53  embedRecHits = cms.bool(True), ## embed in AOD externally stored the RecHits - can be called from the PATElectronProducer
54 
55  # embed IsoDeposits to recompute isolation
56  isoDeposits = cms.PSet(),
57 
58  # user defined isolation variables the variables defined here will be accessible
59  # via pat::Electron::userIsolation(IsolationKeys key) with the key as defined in
60  # DataFormats/PatCandidates/interface/Isolation.h
61  userIsolation = cms.PSet(),
62 
63  # electron ID
64  addElectronID = cms.bool(True),
65  electronIDSources = cms.PSet(
66  # configure many IDs as InputTag <someName> = <someTag> you
67  # can comment out those you don't want to save some disk space
68  eidRobustLoose = cms.InputTag("eidRobustLoose"),
69  eidRobustTight = cms.InputTag("eidRobustTight"),
70  eidLoose = cms.InputTag("eidLoose"),
71  eidTight = cms.InputTag("eidTight"),
72  eidRobustHighEnergy = cms.InputTag("eidRobustHighEnergy"),
73  ),
74 
75  # mc matching
76  addGenMatch = cms.bool(True),
77  embedGenMatch = cms.bool(True),
78  genParticleMatch = cms.InputTag("electronMatch"), ## Association between electrons and generator particles
79 
80  # efficiencies
81  addEfficiencies = cms.bool(False),
82  efficiencies = cms.PSet(),
83 
84  # resolution configurables
85  addResolutions = cms.bool(False),
86  resolutions = cms.PSet(),
87 
88  # high level selections
89  embedHighLevelSelection = cms.bool(True),
90  beamLineSrc = cms.InputTag("offlineBeamSpot"),
91  pvSrc = cms.InputTag("offlinePrimaryVertices"),
92 
93  # PFClusterIso
94  addPFClusterIso = cms.bool(False),
95  addPuppiIsolation = cms.bool(False)
96 )