1 import FWCore.ParameterSet.Config
as cms
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")
20 fsrTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
21 src = cms.InputTag(
"leptonFSRphotons"),
23 name = cms.string(
"FsrPhoton"),
24 doc = cms.string(
"Final state radiation photons emitted by muons or electrons"),
25 singleton = cms.bool(
False),
26 extension = cms.bool(
False),
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")
35 fsrTablesTask = cms.Task(leptonFSRphotons,fsrTable)
def Var(expr, valtype, doc=None, precision=-1)