CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
photonProducer_cfi.py
Go to the documentation of this file.
2 
3 patPhotons = cms.EDProducer("PATPhotonProducer",
4  # input collection
5  photonSource = cms.InputTag("gedPhotons"),
6 
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  # embedding of AOD items
36  embedSuperCluster = cms.bool(True), ## whether to embed in AOD externally stored supercluster
37  embedSeedCluster = cms.bool(True), ## embed in AOD externally stored the photon's seedcluster
38  embedBasicClusters = cms.bool(True), ## embed in AOD externally stored the photon's basic clusters
39  embedPreshowerClusters = cms.bool(True), ## embed in AOD externally stored the photon's preshower clusters
40  embedRecHits = cms.bool(True), ## embed in AOD externally stored the RecHits - can be called from the PATPhotonProducer
41 
42  # embed IsoDeposits to recompute isolation
43  isoDeposits = cms.PSet(),
44 
45  # user defined isolation variables the variables defined here will be accessible
46  # via pat::Photon::userIsolation(IsolationKeys key) with the key as defined in
47  # DataFormats/PatCandidates/interface/Isolation.h
48  userIsolation = cms.PSet(),
49 
50  # photon ID
51  addPhotonID = cms.bool(True),
52  photonIDSources = cms.PSet(
53  PhotonCutBasedIDLoose = cms.InputTag('PhotonIDProdGED',
54  'PhotonCutBasedIDLoose'),
55  PhotonCutBasedIDTight = cms.InputTag('PhotonIDProdGED',
56  'PhotonCutBasedIDTight')
57  ),
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 )