CMS 3D CMS Logo

Functions | Variables
PhotonPuppi_cff Namespace Reference

Functions

def setupPuppiPhoton (process)
 
def setupPuppiPhotonMiniAOD (process)
 

Variables

 puppiPhoton
 

Function Documentation

◆ setupPuppiPhoton()

def PhotonPuppi_cff.setupPuppiPhoton (   process)

Definition at line 23 of file PhotonPuppi_cff.py.

References vid_id_tools.setupAllVIDIdsInModule(), and vid_id_tools.switchOnVIDPhotonIdProducer().

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

◆ setupPuppiPhotonMiniAOD()

def PhotonPuppi_cff.setupPuppiPhotonMiniAOD (   process)

Definition at line 30 of file PhotonPuppi_cff.py.

References vid_id_tools.setupAllVIDIdsInModule(), and vid_id_tools.switchOnVIDPhotonIdProducer().

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

Variable Documentation

◆ puppiPhoton

PhotonPuppi_cff.puppiPhoton
Initial value:
1 = cms.EDProducer("PuppiPhoton",
2  candName = cms.InputTag('particleFlow'),
3  puppiCandName = cms.InputTag('puppi'),
4  usePFphotons = cms.bool(True), # Use PF photons and not GED photons
5  photonName = cms.InputTag('reducedEgamma','reducedGedPhotons'),
6  recoToPFMap = cms.InputTag("reducedEgamma","reducedPhotonPfCandMap"),
7  photonId = cms.InputTag(""),
8  pt = cms.double(20),
9  eta = cms.double(2.5),
10  runOnMiniAOD = cms.bool(False), # If set to true photon ID is taken from pat::Photon, otherwise from the value map at RECO/AOD level
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  )

Definition at line 4 of file PhotonPuppi_cff.py.