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),
45  embedGsfTrack = cms.bool(False),
46  embedSuperCluster = cms.bool(True),
47  embedPflowSuperCluster = cms.bool(True),
48  embedSeedCluster = cms.bool(True),
49  embedBasicClusters = cms.bool(True),
50  embedPreshowerClusters = cms.bool(True),
51  embedPflowBasicClusters = cms.bool(True),
52  embedPflowPreshowerClusters = cms.bool(True),
53  embedPFCandidate = cms.bool(True),
54  embedTrack = cms.bool(True),
55  embedRecHits = cms.bool(True),
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"),
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 
87  # PFClusterIso
88  addPFClusterIso = cms.bool(False),
89  ecalPFClusterIsoMap = cms.InputTag(""),
90  hcalPFClusterIsoMap = cms.InputTag(""),
91  addPuppiIsolation = cms.bool(False),
92 
93  # Compute and store Mini-Isolation.
94  # Implemention and a description of parameters can be found in:
95  # PhysicsTools/PatUtils/src/PFIsolation.cc
96  # only works in miniaod, so set to True in miniAOD_tools.py
97  computeMiniIso = cms.bool(False),
98  pfCandsForMiniIso = cms.InputTag("packedPFCandidates"),
99  # veto on candidates in deadcone only in endcap
100  miniIsoParamsE = cms.vdouble(0.05, 0.2, 10.0, 0.0, 0.015, 0.015, 0.08, 0.0, 0.0),
101  miniIsoParamsB = cms.vdouble(0.05, 0.2, 10.0, 0.0, 0.000, 0.000, 0.00, 0.0, 0.0),
102 
103 )