CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
fsrPhotons_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 from PhysicsTools.NanoAOD.simplePATGenericParticleFlatTableProducer_cfi import simplePATGenericParticleFlatTableProducer
4 
5 from CommonTools.RecoUtils.leptonFSRProducer_cfi import leptonFSRProducer
6 leptonFSRphotons = leptonFSRProducer.clone(
7  packedPFCandidates = "packedPFCandidates",
8  slimmedElectrons = "slimmedElectrons", #for footrprint veto
9  muons = "linkedObjects:muons",
10  electrons = "linkedObjects:electrons",
11 )
12 
13 fsrTable = simplePATGenericParticleFlatTableProducer.clone(
14  src = cms.InputTag("leptonFSRphotons"),
15  name = cms.string("FsrPhoton"),
16  doc = cms.string("Final state radiation photons emitted by muons or electrons"),
17  variables = cms.PSet(P3Vars,
18  relIso03 = Var("userFloat('relIso03')",float,doc="relative isolation in a 0.3 cone without CHS"),
19  dROverEt2 = Var("userFloat('dROverEt2')",float,doc="deltaR to associated muon divided by photon et2"),
20  muonIdx = Var("?hasUserCand('associatedMuon')?userCand('associatedMuon').key():-1", "int16", doc="index of associated muon"),
21  electronIdx = Var("?hasUserCand('associatedElectron')?userCand('associatedElectron').key():-1", "int16", doc="index of associated electron")
22  )
23  )
24 
25 fsrTablesTask = cms.Task(leptonFSRphotons,fsrTable)
def Var(expr, valtype, doc=None, precision=-1, lazyEval=False)
Definition: common_cff.py:17