CMS 3D CMS Logo

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  photonName = cms.InputTag('reducedEgamma','reducedGedPhotons'),
8  recoToPFMap = cms.InputTag("reducedEgamma","reducedPhotonPfCandMap"),
9  photonId = cms.InputTag("egmPhotonIDs:cutBasedPhotonID-Spring15-25ns-V1-standalone-loose"),
10  pt = cms.double(10),
11  eta = cms.double(2.5),
12  runOnMiniAOD = cms.bool(False),
13  useRefs = cms.bool(True),
14  dRMatch = cms.vdouble(0.005,0.005,0.005,0.005),
15  pdgids = cms.vint32 (22,11,211,130),
16  weight = cms.double(1.),
17  useValueMap = cms.bool(False),
18  weightsName = cms.InputTag('puppi'),
19  )
20 
21 
22 def setupPuppiPhoton(process):
23  my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring15_25ns_V1_cff']
24  switchOnVIDPhotonIdProducer(process, DataFormat.AOD)
25  for idmod in my_id_modules:
26  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
27 
28 
30  my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring15_25ns_V1_cff']
31  switchOnVIDPhotonIdProducer(process, DataFormat.MiniAOD)
32  for idmod in my_id_modules:
33  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
34 
35 
36 #puppiPhotonSeq = cms.Sequence(egmPhotonIDSequence*puppiPhoton)
def setupPuppiPhoton(process)
def setupAllVIDIdsInModule(process, id_module_name, setupFunction, patProducer=None, addUserData=True, task=None)
Definition: vid_id_tools.py:50
def setupPuppiPhotonMiniAOD(process)
def switchOnVIDPhotonIdProducer(process, dataFormat, task=None)
Photons.