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