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  reducedBarrelRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
8  reducedEndcapRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
9 
10  # user data to add
11  userData = cms.PSet(
12  # add custom classes here
13  userClasses = cms.PSet(
14  src = cms.VInputTag('')
15  ),
16  # add doubles here
17  userFloats = cms.PSet(
18  src = cms.VInputTag('')
19  ),
20  # add ints here
21  userInts = cms.PSet(
22  src = cms.VInputTag('')
23  ),
24  # add candidate ptrs here
25  userCands = cms.PSet(
26  src = cms.VInputTag('')
27  ),
28  # add "inline" functions here
29  userFunctions = cms.vstring(),
30  userFunctionLabels = cms.vstring()
31  ),
32 
33  # embedding of AOD items
34  embedSuperCluster = cms.bool(True), ## whether to embed in AOD externally stored supercluster
35  embedSeedCluster = cms.bool(True), ## embed in AOD externally stored the photon's seedcluster
36  embedBasicClusters = cms.bool(True), ## embed in AOD externally stored the photon's basic clusters
37  embedPreshowerClusters = cms.bool(True), ## embed in AOD externally stored the photon's preshower clusters
38  embedRecHits = cms.bool(True), ## embed in AOD externally stored the RecHits - can be called from the PATPhotonProducer
39 
40  # embed IsoDeposits to recompute isolation
41  isoDeposits = cms.PSet(),
42 
43  # user defined isolation variables the variables defined here will be accessible
44  # via pat::Photon::userIsolation(IsolationKeys key) with the key as defined in
45  # DataFormats/PatCandidates/interface/Isolation.h
46  userIsolation = cms.PSet(),
47 
48  # photon ID
49  addPhotonID = cms.bool(True),
50  photonIDSources = cms.PSet(
51  PhotonCutBasedIDLoose = cms.InputTag('PhotonIDProdGED',
52  'PhotonCutBasedIDLoose'),
53  PhotonCutBasedIDTight = cms.InputTag('PhotonIDProdGED',
54  'PhotonCutBasedIDTight')
55  ),
56  # mc matching
57  addGenMatch = cms.bool(True),
58  embedGenMatch = cms.bool(True),
59  genParticleMatch = cms.InputTag("photonMatch"), ## particles source to be used for the matching
60 
61  # efficiencies
62  addEfficiencies = cms.bool(False),
63  efficiencies = cms.PSet(),
64 
65  # resolutions
66  addResolutions = cms.bool(False),
67  resolutions = cms.PSet()
68 
69 )