CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
PhotonPuppi_cff Namespace Reference

Functions

def setupPuppiPhoton
 
def setupPuppiPhotonMiniAOD
 

Variables

tuple puppiPhoton
 

Function Documentation

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 
24 def setupPuppiPhoton(process):
25  my_id_modules = [] # Add photon ID used by puppiPhoton producer here
26  switchOnVIDPhotonIdProducer(process, DataFormat.AOD)
27  for idmod in my_id_modules:
28  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
29 
def setupAllVIDIdsInModule
Definition: vid_id_tools.py:49
def switchOnVIDPhotonIdProducer
Photons.
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 
31 def setupPuppiPhotonMiniAOD(process):
32  my_id_modules = [] # Add photon ID used by puppiPhoton producer here
33  switchOnVIDPhotonIdProducer(process, DataFormat.MiniAOD)
34  for idmod in my_id_modules:
35  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
36 
37 
38 #puppiPhotonSeq = cms.Sequence(egmPhotonIDSequence*puppiPhoton)
def setupAllVIDIdsInModule
Definition: vid_id_tools.py:49
def switchOnVIDPhotonIdProducer
Photons.

Variable Documentation

tuple 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.