CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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('packedPFCandidates'),
6  puppiCandName = cms.InputTag('puppi'),
7  photonName = cms.InputTag('slimmedPhotons'),
8  photonId = cms.InputTag("egmPhotonIDs:cutBasedPhotonID-PHYS14-PU20bx25-V2-standalone-loose"),
9  pt = cms.double(10),
10  useRefs = cms.bool(True),
11  dRMatch = cms.vdouble(10,10,10,10),
12  pdgids = cms.vint32 (22,11,211,130),
13  weight = cms.double(1.),
14  useValueMap = cms.bool(False),
15  weightsName = cms.InputTag('puppi'),
16  )
17 
18 
19 def setupPuppiPhoton(process):
20  my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_PHYS14_PU20bx25_V2_cff']
21  switchOnVIDPhotonIdProducer(process, DataFormat.MiniAOD)
22  for idmod in my_id_modules:
23  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
24 
25 
26 #puppiPhotonSeq = cms.Sequence(egmPhotonIDSequence*puppiPhoton)
def setupAllVIDIdsInModule
Definition: vid_id_tools.py:50
def switchOnVIDPhotonIdProducer
Photons.