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(True),
57  photonIDSources = cms.PSet(
58  PhotonCutBasedIDLoose = cms.InputTag('PhotonIDProdGED',
59  'PhotonCutBasedIDLoose'),
60  PhotonCutBasedIDTight = cms.InputTag('PhotonIDProdGED',
61  'PhotonCutBasedIDTight')
62  ),
63  # mc matching
64  addGenMatch = cms.bool(True),
65  embedGenMatch = cms.bool(True),
66  genParticleMatch = cms.InputTag("photonMatch"), ## particles source to be used for the matching
67 
68  # efficiencies
69  addEfficiencies = cms.bool(False),
70  efficiencies = cms.PSet(),
71 
72  # resolutions
73  addResolutions = cms.bool(False),
74  resolutions = cms.PSet(),
75 
76  # PFClusterIso
77  addPFClusterIso = cms.bool(False),
78  addPuppiIsolation = cms.bool(False)
79 )