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(False),
67  electronIDSources = cms.PSet(),
68 
69  # mc matching
70  addGenMatch = cms.bool(True),
71  embedGenMatch = cms.bool(True),
72  genParticleMatch = cms.InputTag("electronMatch"), ## Association between electrons and generator particles
73 
74  # efficiencies
75  addEfficiencies = cms.bool(False),
76  efficiencies = cms.PSet(),
77 
78  # resolution configurables
79  addResolutions = cms.bool(False),
80  resolutions = cms.PSet(),
81 
82  # high level selections
83  embedHighLevelSelection = cms.bool(True),
84  beamLineSrc = cms.InputTag("offlineBeamSpot"),
85  pvSrc = cms.InputTag("offlinePrimaryVertices"),
86  getdBFromTrack = cms.bool(False),
87 
88  # PFClusterIso
89  addPFClusterIso = cms.bool(False),
90  addPuppiIsolation = cms.bool(False),
91 
92  # Compute and store Mini-Isolation.
93  # Implemention and a description of parameters can be found in:
94  # PhysicsTools/PatUtils/src/PFIsolation.cc
95  # only works in miniaod, so set to True in miniAOD_tools.py
96  computeMiniIso = cms.bool(False),
97  pfCandsForMiniIso = cms.InputTag("packedPFCandidates"),
98  # veto on candidates in deadcone only in endcap
99  miniIsoParamsE = cms.vdouble(0.05, 0.2, 10.0, 0.0, 0.015, 0.015, 0.08, 0.0, 0.0),
100  miniIsoParamsB = cms.vdouble(0.05, 0.2, 10.0, 0.0, 0.000, 0.000, 0.00, 0.0, 0.0),
101 
102 )