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