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  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  # 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  #PFClusterEcalIso = cms.InputTag('electronEcalPFClusterIsolationProducer'),
50  #PFClusterHcalIso = cms.InputTag('electronHcalPFClusterIsolationProducer'),
51  ),
52 
53  # photon ID
54  addPhotonID = cms.bool(True),
55  photonIDSources = cms.PSet(
56  PhotonCutBasedIDLoose = cms.InputTag('PhotonIDProdGED',
57  'PhotonCutBasedIDLoose'),
58  PhotonCutBasedIDTight = cms.InputTag('PhotonIDProdGED',
59  'PhotonCutBasedIDTight')
60  ),
61  # mc matching
62  addGenMatch = cms.bool(True),
63  embedGenMatch = cms.bool(True),
64  genParticleMatch = cms.InputTag("photonMatch"), ## particles source to be used for the matching
65 
66  # efficiencies
67  addEfficiencies = cms.bool(False),
68  efficiencies = cms.PSet(),
69 
70  # resolutions
71  addResolutions = cms.bool(False),
72  resolutions = cms.PSet(),
73 
74  # PFClusterIso
75  addPFClusterIso = cms.bool(False)
76 )