CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
electronProducer_cfi.py
Go to the documentation of this file.
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  # embedding of AOD items
40  embedGsfElectronCore = cms.bool(True), ## embed in AOD externally stored gsf electron core
41  embedGsfTrack = cms.bool(True), ## embed in AOD externally stored gsf track
42  embedSuperCluster = cms.bool(True), ## embed in AOD externally stored supercluster
43  embedPflowSuperCluster = cms.bool(True), ## embed in AOD externally stored supercluster
44  embedSeedCluster = cms.bool(True), ## embed in AOD externally stored the electron's seedcluster
45  embedBasicClusters = cms.bool(True), ## embed in AOD externally stored the electron's basic clusters
46  embedPreshowerClusters = cms.bool(True), ## embed in AOD externally stored the electron's preshower clusters
47  embedPflowBasicClusters = cms.bool(True), ## embed in AOD externally stored the electron's pflow basic clusters
48  embedPflowPreshowerClusters = cms.bool(True), ## embed in AOD externally stored the electron's pflow preshower clusters
49  embedPFCandidate = cms.bool(True), ## embed in AOD externally stored particle flow candidate
50  embedTrack = cms.bool(True), ## embed in AOD externally stored track (note: gsf electrons don't have a track)
51  embedRecHits = cms.bool(True), ## embed in AOD externally stored the RecHits - can be called from the PATElectronProducer
52 
53  # embed IsoDeposits to recompute isolation
54  isoDeposits = cms.PSet(),
55 
56  # user defined isolation variables the variables defined here will be accessible
57  # via pat::Electron::userIsolation(IsolationKeys key) with the key as defined in
58  # DataFormats/PatCandidates/interface/Isolation.h
59  userIsolation = cms.PSet(),
60 
61  # electron ID
62  addElectronID = cms.bool(True),
63  electronIDSources = cms.PSet(
64  # configure many IDs as InputTag <someName> = <someTag> you
65  # can comment out those you don't want to save some disk space
66  eidRobustLoose = cms.InputTag("eidRobustLoose"),
67  eidRobustTight = cms.InputTag("eidRobustTight"),
68  eidLoose = cms.InputTag("eidLoose"),
69  eidTight = cms.InputTag("eidTight"),
70  eidRobustHighEnergy = cms.InputTag("eidRobustHighEnergy"),
71  ),
72 
73  # mc matching
74  addGenMatch = cms.bool(True),
75  embedGenMatch = cms.bool(True),
76  genParticleMatch = cms.InputTag("electronMatch"), ## Association between electrons and generator particles
77 
78  # efficiencies
79  addEfficiencies = cms.bool(False),
80  efficiencies = cms.PSet(),
81 
82  # resolution configurables
83  addResolutions = cms.bool(False),
84  resolutions = cms.PSet(),
85 
86  # high level selections
87  embedHighLevelSelection = cms.bool(True),
88  usePV = cms.bool(True),
89  beamLineSrc = cms.InputTag("offlineBeamSpot"),
90  pvSrc = cms.InputTag("offlinePrimaryVertices")
91 )