CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 22 of file PhotonPuppi_cff.py.

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

22 
23 def setupPuppiPhoton(process):
24  my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring15_25ns_V1_cff']
25  switchOnVIDPhotonIdProducer(process, DataFormat.AOD)
26  for idmod in my_id_modules:
27  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
28 
def setupAllVIDIdsInModule
Definition: vid_id_tools.py:50
def switchOnVIDPhotonIdProducer
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().

29 
30 def setupPuppiPhotonMiniAOD(process):
31  my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring15_25ns_V1_cff']
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)
def setupAllVIDIdsInModule
Definition: vid_id_tools.py:50
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  photonName = cms.InputTag('reducedEgamma','reducedGedPhotons'),
5  recoToPFMap = cms.InputTag("reducedEgamma","reducedPhotonPfCandMap"),
6  photonId = cms.InputTag("egmPhotonIDs:cutBasedPhotonID-Spring15-25ns-V1-standalone-loose"),
7  pt = cms.double(10),
8  eta = cms.double(2.5),
9  runOnMiniAOD = cms.bool(False),
10  useRefs = cms.bool(True),
11  dRMatch = cms.vdouble(0.005,0.005,0.005,0.005),
12  pdgids = cms.vint32 (22,11,211,130),
13  weight = cms.double(1.),
14  useValueMap = cms.bool(False),
15  weightsName = cms.InputTag('puppi'),
16  )

Definition at line 4 of file PhotonPuppi_cff.py.