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 20 of file PhotonPuppi_cff.py.

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

20 
21 def setupPuppiPhoton(process):
22  my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring15_25ns_V1_cff']
23  switchOnVIDPhotonIdProducer(process, DataFormat.AOD)
24  for idmod in my_id_modules:
25  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
26 
def setupAllVIDIdsInModule
Definition: vid_id_tools.py:50
def switchOnVIDPhotonIdProducer
Photons.
def PhotonPuppi_cff.setupPuppiPhotonMiniAOD (   process)

Definition at line 27 of file PhotonPuppi_cff.py.

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

Referenced by puppiForMET_cff.makePuppiesFromMiniAOD().

27 
28 def setupPuppiPhotonMiniAOD(process):
29  my_id_modules = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring15_25ns_V1_cff']
30  switchOnVIDPhotonIdProducer(process, DataFormat.MiniAOD)
31  for idmod in my_id_modules:
32  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection)
33 
34 
35 #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('packedPFCandidates'),
3  puppiCandName = cms.InputTag('puppi'),
4  photonName = cms.InputTag('slimmedPhotons'),
5  photonId = cms.InputTag("egmPhotonIDs:cutBasedPhotonID-Spring15-25ns-V1-standalone-loose"),
6  pt = cms.double(10),
7  eta = cms.double(2.5),
8  useRefs = cms.bool(True),
9  dRMatch = cms.vdouble(0.005,0.005,0.005,0.005),
10  pdgids = cms.vint32 (22,11,211,130),
11  weight = cms.double(1.),
12  useValueMap = cms.bool(False),
13  weightsName = cms.InputTag('puppi'),
14  )

Definition at line 4 of file PhotonPuppi_cff.py.