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  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)
PhotonPuppi_cff.setupPuppiPhotonMiniAOD
def setupPuppiPhotonMiniAOD(process)
Definition: PhotonPuppi_cff.py:30
PhotonPuppi_cff.setupPuppiPhoton
def setupPuppiPhoton(process)
Definition: PhotonPuppi_cff.py:23
vid_id_tools.setupAllVIDIdsInModule
def setupAllVIDIdsInModule(process, id_module_name, setupFunction, patProducer=None, addUserData=True, task=None)
Definition: vid_id_tools.py:49
vid_id_tools.switchOnVIDPhotonIdProducer
def switchOnVIDPhotonIdProducer(process, dataFormat, task=None)
Photons.
Definition: vid_id_tools.py:158
vid_id_tools