CMS 3D CMS Logo

photonProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 patPhotons = cms.EDProducer("PATPhotonProducer",
4  # input collection
5  photonSource = cms.InputTag("gedPhotons"),
6  electronSource = cms.InputTag("gedGsfElectrons"),
7  beamLineSrc = cms.InputTag("offlineBeamSpot"),
8 
9  reducedBarrelRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
10  reducedEndcapRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
11 
12  # user data to add
13  userData = cms.PSet(
14  # add custom classes here
15  userClasses = cms.PSet(
16  src = cms.VInputTag('')
17  ),
18  # add doubles here
19  userFloats = cms.PSet(
20  src = cms.VInputTag('')
21  ),
22  # add ints here
23  userInts = cms.PSet(
24  src = cms.VInputTag('')
25  ),
26  # add candidate ptrs here
27  userCands = cms.PSet(
28  src = cms.VInputTag('')
29  ),
30  # add "inline" functions here
31  userFunctions = cms.vstring(),
32  userFunctionLabels = cms.vstring()
33  ),
34 
35 
36  # embedding of AOD items
37  embedSuperCluster = cms.bool(True), ## whether to embed in AOD externally stored supercluster
38  embedSeedCluster = cms.bool(True), ## embed in AOD externally stored the photon's seedcluster
39  embedBasicClusters = cms.bool(True), ## embed in AOD externally stored the photon's basic clusters
40  embedPreshowerClusters = cms.bool(True), ## embed in AOD externally stored the photon's preshower clusters
41  embedRecHits = cms.bool(True), ## embed in AOD externally stored the RecHits - can be called from the PATPhotonProducer
42  saveRegressionData = cms.bool(True), ## save regression input variables
43 
44  # embed IsoDeposits to recompute isolation
45  isoDeposits = cms.PSet(),
46 
47  # user defined isolation variables the variables defined here will be accessible
48  # via pat::Photon::userIsolation(IsolationKeys key) with the key as defined in
49  # DataFormats/PatCandidates/interface/Isolation.h
50  userIsolation = cms.PSet(
51  #PFClusterEcalIso = cms.InputTag('electronEcalPFClusterIsolationProducer'),
52  #PFClusterHcalIso = cms.InputTag('electronHcalPFClusterIsolationProducer'),
53  ),
54 
55  # photon ID
56  addPhotonID = cms.bool(False),
57  photonIDSources = cms.PSet(),
58  # mc matching
59  addGenMatch = cms.bool(True),
60  embedGenMatch = cms.bool(True),
61  genParticleMatch = cms.InputTag("photonMatch"), ## particles source to be used for the matching
62 
63  # efficiencies
64  addEfficiencies = cms.bool(False),
65  efficiencies = cms.PSet(),
66 
67  # resolutions
68  addResolutions = cms.bool(False),
69  resolutions = cms.PSet(),
70 
71  # PFClusterIso
72  addPFClusterIso = cms.bool(False),
73  addPuppiIsolation = cms.bool(False)
74 )