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("gsfElectrons"),
6 
7  # use particle flow instead of std reco
8  useParticleFlow = cms.bool( False ),
9  pfElectronSource = cms.InputTag("pfIsolatedElectrons"),
10 
11  # user data to add
12  userData = cms.PSet(
13  # add custom classes here
14  userClasses = cms.PSet(
15  src = cms.VInputTag('')
16  ),
17  # add doubles here
18  userFloats = cms.PSet(
19  src = cms.VInputTag('')
20  ),
21  # add ints here
22  userInts = cms.PSet(
23  src = cms.VInputTag('')
24  ),
25  # add candidate ptrs here
26  userCands = cms.PSet(
27  src = cms.VInputTag('')
28  ),
29  # add "inline" functions here
30  userFunctions = cms.vstring(),
31  userFunctionLabels = cms.vstring()
32  ),
33 
34  # embedding of AOD items
35  embedGsfElectronCore = cms.bool(True), ## embed in AOD externally stored gsf electron core
36  embedGsfTrack = cms.bool(True), ## embed in AOD externally stored gsf track
37  embedSuperCluster = cms.bool(True), ## embed in AOD externally stored supercluster
38  embedPFCandidate = cms.bool(True), ## embed in AOD externally stored particle flow candidate
39  embedTrack = cms.bool(False), ## embed in AOD externally stored track (note: gsf electrons don't have a track)
40 
41  # embed IsoDeposits to recompute isolation
42  isoDeposits = cms.PSet(),
43 
44  # user defined isolation variables the variables defined here will be accessible
45  # via pat::Electron::userIsolation(IsolationKeys key) with the key as defined in
46  # DataFormats/PatCandidates/interface/Isolation.h
47  userIsolation = cms.PSet(),
48 
49  # electron ID
50  addElectronID = cms.bool(True),
51  electronIDSources = cms.PSet(
52  # configure many IDs as InputTag <someName> = <someTag> you
53  # can comment out those you don't want to save some disk space
54  eidRobustLoose = cms.InputTag("eidRobustLoose"),
55  eidRobustTight = cms.InputTag("eidRobustTight"),
56  eidLoose = cms.InputTag("eidLoose"),
57  eidTight = cms.InputTag("eidTight"),
58  eidRobustHighEnergy = cms.InputTag("eidRobustHighEnergy"),
59  ),
60 
61  # mc matching
62  addGenMatch = cms.bool(True),
63  embedGenMatch = cms.bool(True),
64  genParticleMatch = cms.InputTag("electronMatch"), ## Association between electrons and generator particles
65 
66  # efficiencies
67  addEfficiencies = cms.bool(False),
68  efficiencies = cms.PSet(),
69 
70  # resolution configurables
71  addResolutions = cms.bool(False),
72  resolutions = cms.PSet(),
73 
74  # high level selections
75  embedHighLevelSelection = cms.bool(True),
76  usePV = cms.bool(True),
77  beamLineSrc = cms.InputTag("offlineBeamSpot"),
78  pvSrc = cms.InputTag("offlinePrimaryVertices")
79 )