CMS 3D CMS Logo

fsrPhotons_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from PhysicsTools.NanoAOD.common_cff import P3Vars,Var
3 
4 
5 leptonFSRphotons = cms.EDProducer("LeptonFSRProducer",
6  deltaROverEt2Max = cms.double(0.05),
7  eleEtaMax = cms.double(2.5),
8  elePtMin = cms.double(5),
9  electrons = cms.InputTag("linkedObjects","electrons"),
10  isolation = cms.double(2),
11  mightGet = cms.optional.untracked.vstring,
12  muonEtaMax = cms.double(2.4),
13  muonPtMin = cms.double(3),
14  muons = cms.InputTag("linkedObjects","muons"),
15  packedPFCandidates = cms.InputTag("packedPFCandidates"),
16  photonPtMin = cms.double(2),
17  slimmedElectrons = cms.InputTag("slimmedElectrons")
18 )
19 
20 fsrTable = cms.EDProducer("SimpleCandidateFlatTableProducer",
21  src = cms.InputTag("leptonFSRphotons"),
22  cut = cms.string(""), #we should not filter on cross linked collections
23  name = cms.string("FsrPhoton"),
24  doc = cms.string("Final state radiation photons emitted by muons or electrons"),
25  singleton = cms.bool(False), # the number of entries is variable
26  extension = cms.bool(False), # this is the main table for the muons
27  variables = cms.PSet(P3Vars,
28  relIso03 = Var("userFloat('relIso03')",float,doc="relative isolation in a 0.3 cone without CHS"),
29  dROverEt2 = Var("userFloat('dROverEt2')",float,doc="deltaR to associated muon divided by photon et2"),
30  muonIdx = Var("?hasUserCand('associatedMuon')?userCand('associatedMuon').key():-1",int, doc="index of associated muon"),
31  electronIdx = Var("?hasUserCand('associatedElectron')?userCand('associatedElectron').key():-1",int, doc="index of associated electron")
32  )
33  )
34 
35 fsrTablesTask = cms.Task(leptonFSRphotons,fsrTable)
def Var(expr, valtype, doc=None, precision=-1)
Definition: common_cff.py:16