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  usePfCandidateMultiMap = cms.bool( False ),
12 
13  # collections for mva input variables
14  reducedBarrelRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
15  reducedEndcapRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
16 
17  # user data to add
18  userData = cms.PSet(
19  # add custom classes here
20  userClasses = cms.PSet(
21  src = cms.VInputTag('')
22  ),
23  # add doubles here
24  userFloats = cms.PSet(
25  src = cms.VInputTag('')
26  ),
27  # add ints here
28  userInts = cms.PSet(
29  src = cms.VInputTag('')
30  ),
31  # add candidate ptrs here
32  userCands = cms.PSet(
33  src = cms.VInputTag('')
34  ),
35  # add "inline" functions here
36  userFunctions = cms.vstring(),
37  userFunctionLabels = cms.vstring()
38  ),
39 
40 
41 
42  # embedding of AOD items
43  embedGsfElectronCore = cms.bool(True), ## embed in AOD externally stored gsf electron core
44  embedGsfTrack = cms.bool(False), ## embed in AOD externally stored gsf track
45  embedSuperCluster = cms.bool(True), ## embed in AOD externally stored supercluster
46  embedPflowSuperCluster = cms.bool(True), ## embed in AOD externally stored supercluster
47  embedSeedCluster = cms.bool(True), ## embed in AOD externally stored the electron's seedcluster
48  embedBasicClusters = cms.bool(True), ## embed in AOD externally stored the electron's basic clusters
49  embedPreshowerClusters = cms.bool(True), ## embed in AOD externally stored the electron's preshower clusters
50  embedPflowBasicClusters = cms.bool(True), ## embed in AOD externally stored the electron's pflow basic clusters
51  embedPflowPreshowerClusters = cms.bool(True), ## embed in AOD externally stored the electron's pflow preshower clusters
52  embedPFCandidate = cms.bool(True), ## embed in AOD externally stored particle flow candidate
53  embedTrack = cms.bool(True), ## embed in AOD externally stored track (note: gsf electrons don't have a track)
54  embedRecHits = cms.bool(True), ## embed in AOD externally stored the RecHits - can be called from the PATElectronProducer
55 
56  # embed IsoDeposits to recompute isolation
57  isoDeposits = cms.PSet(),
58 
59  # user defined isolation variables the variables defined here will be accessible
60  # via pat::Electron::userIsolation(IsolationKeys key) with the key as defined in
61  # DataFormats/PatCandidates/interface/Isolation.h
62  userIsolation = cms.PSet(),
63 
64  # electron ID
65  addElectronID = cms.bool(True),
66  electronIDSources = cms.PSet(
67  # configure many IDs as InputTag <someName> = <someTag> you
68  # can comment out those you don't want to save some disk space
69  eidRobustLoose = cms.InputTag("eidRobustLoose"),
70  eidRobustTight = cms.InputTag("eidRobustTight"),
71  eidLoose = cms.InputTag("eidLoose"),
72  eidTight = cms.InputTag("eidTight"),
73  eidRobustHighEnergy = cms.InputTag("eidRobustHighEnergy"),
74  ),
75 
76  # mc matching
77  addGenMatch = cms.bool(True),
78  embedGenMatch = cms.bool(True),
79  genParticleMatch = cms.InputTag("electronMatch"), ## Association between electrons and generator particles
80 
81  # efficiencies
82  addEfficiencies = cms.bool(False),
83  efficiencies = cms.PSet(),
84 
85  # resolution configurables
86  addResolutions = cms.bool(False),
87  resolutions = cms.PSet(),
88 
89  # high level selections
90  embedHighLevelSelection = cms.bool(True),
91  beamLineSrc = cms.InputTag("offlineBeamSpot"),
92  pvSrc = cms.InputTag("offlinePrimaryVertices"),
93 
94  # PFClusterIso
95  addPFClusterIso = cms.bool(False),
96  addPuppiIsolation = cms.bool(False),
97 
98  # Compute and store Mini-Isolation.
99  # Implemention and a description of parameters can be found in:
100  # PhysicsTools/PatUtils/src/PFIsolation.cc
101  # only works in miniaod, so set to True in miniAOD_tools.py
102  computeMiniIso = cms.bool(False),
103  pfCandsForMiniIso = cms.InputTag("packedPFCandidates"),
104  # veto on candidates in deadcone only in endcap
105  miniIsoParamsE = cms.vdouble(0.05, 0.2, 10.0, 0.0, 0.015, 0.015, 0.08, 0.0, 0.0),
106  miniIsoParamsB = cms.vdouble(0.05, 0.2, 10.0, 0.0, 0.000, 0.000, 0.00, 0.0, 0.0),
107 
108 )