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 
43  # embed IsoDeposits to recompute isolation
44  isoDeposits = cms.PSet(),
45 
46  # user defined isolation variables the variables defined here will be accessible
47  # via pat::Photon::userIsolation(IsolationKeys key) with the key as defined in
48  # DataFormats/PatCandidates/interface/Isolation.h
49  userIsolation = cms.PSet(
50  #PFClusterEcalIso = cms.InputTag('electronEcalPFClusterIsolationProducer'),
51  #PFClusterHcalIso = cms.InputTag('electronHcalPFClusterIsolationProducer'),
52  ),
53 
54  # photon ID
55  addPhotonID = cms.bool(True),
56  photonIDSources = cms.PSet(
57  PhotonCutBasedIDLoose = cms.InputTag('PhotonIDProdGED',
58  'PhotonCutBasedIDLoose'),
59  PhotonCutBasedIDTight = cms.InputTag('PhotonIDProdGED',
60  'PhotonCutBasedIDTight')
61  ),
62  # mc matching
63  addGenMatch = cms.bool(True),
64  embedGenMatch = cms.bool(True),
65  genParticleMatch = cms.InputTag("photonMatch"), ## particles source to be used for the matching
66 
67  # efficiencies
68  addEfficiencies = cms.bool(False),
69  efficiencies = cms.PSet(),
70 
71  # resolutions
72  addResolutions = cms.bool(False),
73  resolutions = cms.PSet(),
74 
75  # PFClusterIso
76  addPFClusterIso = cms.bool(False),
77  addPuppiIsolation = cms.bool(False)
78 )