CMS 3D CMS Logo

Functions
PhotonPuppi_cff Namespace Reference

Functions

def setupPuppiPhoton (process)
 
def setupPuppiPhotonMiniAOD (process)
 

Function Documentation

def PhotonPuppi_cff.setupPuppiPhoton (   process)

Definition at line 22 of file PhotonPuppi_cff.py.

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

22 def setupPuppiPhoton(process):
23  my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring16_V2p2_cff']
24  switchOnVIDPhotonIdProducer(process, DataFormat.AOD)
25  for idmod in my_id_modules:
26  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
27 
28 
def setupPuppiPhoton(process)
def setupAllVIDIdsInModule(process, id_module_name, setupFunction, patProducer=None, addUserData=True, task=None)
Definition: vid_id_tools.py:50
def switchOnVIDPhotonIdProducer(process, dataFormat, task=None)
Photons.
def PhotonPuppi_cff.setupPuppiPhotonMiniAOD (   process)

Definition at line 29 of file PhotonPuppi_cff.py.

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

Referenced by puppiForMET_cff.makePuppiesFromMiniAOD().

30  my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring16_V2p2_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)
37 
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.