CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PhotonPuppi_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
4 puppiPhoton = cms.EDProducer("PuppiPhoton",
5  candName = cms.InputTag('particleFlow'),
6  puppiCandName = cms.InputTag('puppi'),
7  usePFphotons = cms.bool(True), # Use PF photons and not GED photons
8  photonName = cms.InputTag('reducedEgamma','reducedGedPhotons'),
9  recoToPFMap = cms.InputTag("reducedEgamma","reducedPhotonPfCandMap"),
10  photonId = cms.InputTag(""),
11  pt = cms.double(20),
12  eta = cms.double(2.5),
13  runOnMiniAOD = cms.bool(False), # If set to true photon ID is taken from pat::Photon, otherwise from the value map at RECO/AOD level
14  useRefs = cms.bool(True),
15  dRMatch = cms.vdouble(0.005,0.005,0.005,0.005),
16  pdgids = cms.vint32 (22,11,211,130),
17  weight = cms.double(1.),
18  useValueMap = cms.bool(False),
19  weightsName = cms.InputTag('puppi'),
20  )
21 
22 
23 def setupPuppiPhoton(process):
24  my_id_modules = [] # Add photon ID used by puppiPhoton producer here
25  switchOnVIDPhotonIdProducer(process, DataFormat.AOD)
26  for idmod in my_id_modules:
27  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
28 
29 
31  my_id_modules = [] # Add photon ID used by puppiPhoton producer here
32  switchOnVIDPhotonIdProducer(process, DataFormat.MiniAOD)
33  for idmod in my_id_modules:
34  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
35 
36 
37 #puppiPhotonSeq = cms.Sequence(egmPhotonIDSequence*puppiPhoton)
def setupAllVIDIdsInModule
Definition: vid_id_tools.py:49
def switchOnVIDPhotonIdProducer
Photons.