CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
electronProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import PhysicsTools.PatAlgos.PATElectronProducer_cfi as _mod
3 
4 patElectrons = _mod.PATElectronProducer.clone(
5  # input collection
6  electronSource = "gedGsfElectrons",
7 
8  # use particle flow instead of std reco
9  pfElectronSource = "particleFlow",
10  pfCandidateMap = "particleFlow:electrons",
11 
12  # collections for mva input variables
13  addMVAVariables = True,
14  reducedBarrelRecHitCollection = "reducedEcalRecHitsEB",
15  reducedEndcapRecHitCollection = "reducedEcalRecHitsEE",
16 
17  # user data to add
18  userData = dict(
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 = [],
37  userFunctionLabels = []
38  ),
39 
40  # embedding of AOD items
41  embedGsfElectronCore = True, ## embed in AOD externally stored gsf electron core
42  embedGsfTrack = False, ## embed in AOD externally stored gsf track
43  embedSuperCluster = True, ## embed in AOD externally stored supercluster
44  embedPflowSuperCluster = True, ## embed in AOD externally stored supercluster
45  embedSeedCluster = True, ## embed in AOD externally stored the electron's seedcluster
46  embedBasicClusters = True, ## embed in AOD externally stored the electron's basic clusters
47  embedPreshowerClusters = True, ## embed in AOD externally stored the electron's preshower clusters
48  embedPflowBasicClusters = True, ## embed in AOD externally stored the electron's pflow basic clusters
49  embedPflowPreshowerClusters = True, ## embed in AOD externally stored the electron's pflow preshower clusters
50  embedPFCandidate = True, ## embed in AOD externally stored particle flow candidate
51  embedTrack = True, ## embed in AOD externally stored track (note: gsf electrons don't have a track)
52  embedRecHits = True, ## embed in AOD externally stored the RecHits - can be called from the PATElectronProducer
53 
54  # embed IsoDeposits to recompute isolation
55  isoDeposits = cms.PSet(),
56 
57  # user defined isolation variables the variables defined here will be accessible
58  # via pat::Electron::userIsolation(IsolationKeys key) with the key as defined in
59  # DataFormats/PatCandidates/interface/Isolation.h
60  userIsolation = dict(),
61 
62  # electron ID
63  addElectronID = False,
64  electronIDSources = cms.PSet(),
65 
66  # mc matching
67  addGenMatch = True,
68  embedGenMatch = True,
69  genParticleMatch = "electronMatch", ## Association between electrons and generator particles
70 
71  # efficiencies
72  addEfficiencies = False,
73  efficiencies = dict(),
74 
75  # resolution configurables
76  addResolutions = False,
77  resolutions = dict(),
78 
79  # high level selections
80  embedHighLevelSelection = True,
81  beamLineSrc = "offlineBeamSpot",
82  pvSrc = "offlinePrimaryVertices",
83 
84  # PFClusterIso
85  addPFClusterIso = False,
86  ecalPFClusterIsoMap = "",
87  hcalPFClusterIsoMap = "",
88  addPuppiIsolation = False,
89 
90  # Compute and store Mini-Isolation.
91  # Implemention and a description of parameters can be found in:
92  # PhysicsTools/PatUtils/src/PFIsolation.cc
93  # only works in miniaod, so set to True in miniAOD_tools.py
94  computeMiniIso = False,
95  pfCandsForMiniIso = "packedPFCandidates",
96  # veto on candidates in deadcone only in endcap
97  miniIsoParamsE = [0.05, 0.2, 10.0, 0.0, 0.015, 0.015, 0.08, 0.0, 0.0],
98  miniIsoParamsB = [0.05, 0.2, 10.0, 0.0, 0.000, 0.000, 0.00, 0.0, 0.0],
99 
100 )
101 del patElectrons.electronIDSource