1 import FWCore.ParameterSet.Config
as cms
7 chsForSATkJets = cms.EDFilter(
"CandPtrSelector", src = cms.InputTag(
"packedPFCandidates"), cut = cms.string(
'charge()!=0 && pvAssociationQuality()>=5 && vertexRef().key()==0'))
8 softActivityJets = cms.EDProducer(
"FastjetJetProducer",
9 Active_Area_Repeats = cms.int32(1),
10 GhostArea = cms.double(0.01),
11 Ghost_EtaMax = cms.double(5.0),
12 Rho_EtaMax = cms.double(4.4),
13 applyWeight = cms.bool(
False),
14 doAreaDiskApprox = cms.bool(
False),
15 doAreaFastjet = cms.bool(
False),
16 doPUOffsetCorr = cms.bool(
False),
17 doPVCorrection = cms.bool(
False),
18 doRhoFastjet = cms.bool(
False),
19 inputEMin = cms.double(0.0),
20 inputEtMin = cms.double(0.0),
21 jetAlgorithm = cms.string(
'AntiKt'),
22 jetPtMin = cms.double(1),
23 jetType = cms.string(
'PFJet'),
24 maxBadEcalCells = cms.uint32(9999999),
25 maxBadHcalCells = cms.uint32(9999999),
26 maxProblematicEcalCells = cms.uint32(9999999),
27 maxProblematicHcalCells = cms.uint32(9999999),
28 maxRecoveredEcalCells = cms.uint32(9999999),
29 maxRecoveredHcalCells = cms.uint32(9999999),
30 minSeed = cms.uint32(14327),
31 nSigmaPU = cms.double(1.0),
32 rParam = cms.double(0.4),
33 radiusPU = cms.double(0.5),
34 src = cms.InputTag(
"chsForSATkJets"),
35 srcPVs = cms.InputTag(
""),
36 useDeterministicSeed = cms.bool(
True),
37 voronoiRfact = cms.double(-0.9)
39 softActivityJets10 = cms.EDFilter(
"CandPtrSelector", src = cms.InputTag(
"softActivityJets"), cut = cms.string(
'pt>10'))
40 softActivityJets5 = cms.EDFilter(
"CandPtrSelector", src = cms.InputTag(
"softActivityJets"), cut = cms.string(
'pt>5'))
41 softActivityJets2 = cms.EDFilter(
"CandPtrSelector", src = cms.InputTag(
"softActivityJets"), cut = cms.string(
'pt>2'))
45 saJetTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
46 src = cms.InputTag(
"softActivityJets"),
48 maxLen = cms.uint32(6),
49 name = cms.string(
"SoftActivityJet"),
50 doc = cms.string(
"jets clustered from charged candidates compatible with primary vertex (" + chsForSATkJets.cut.value()+
")"),
51 singleton = cms.bool(
False),
52 extension = cms.bool(
False),
53 variables = cms.PSet(P3Vars,
57 saJetTable.variables.pt.precision=10
58 saJetTable.variables.eta.precision=8
59 saJetTable.variables.phi.precision=8
61 saTable = cms.EDProducer(
"GlobalVariablesTableProducer",
63 SoftActivityJetHT =
ExtVar( cms.InputTag(
"softActivityJets"),
"candidatescalarsum", doc =
"scalar sum of soft activity jet pt, pt>1" ),
64 SoftActivityJetHT10 =
ExtVar( cms.InputTag(
"softActivityJets10"),
"candidatescalarsum", doc =
"scalar sum of soft activity jet pt , pt >10" ),
65 SoftActivityJetHT5 =
ExtVar( cms.InputTag(
"softActivityJets5"),
"candidatescalarsum", doc =
"scalar sum of soft activity jet pt, pt>5" ),
66 SoftActivityJetHT2 =
ExtVar( cms.InputTag(
"softActivityJets2"),
"candidatescalarsum", doc =
"scalar sum of soft activity jet pt, pt >2" ),
67 SoftActivityJetNjets10 =
ExtVar( cms.InputTag(
"softActivityJets10"),
"candidatesize", doc =
"number of soft activity jet pt, pt >2" ),
68 SoftActivityJetNjets5 =
ExtVar( cms.InputTag(
"softActivityJets5"),
"candidatesize", doc =
"number of soft activity jet pt, pt >5" ),
69 SoftActivityJetNjets2 =
ExtVar( cms.InputTag(
"softActivityJets2"),
"candidatesize", doc =
"number of soft activity jet pt, pt >10" ),
74 softActivityTask = cms.Task(chsForSATkJets,softActivityJets,softActivityJets2,softActivityJets5,softActivityJets10)
75 softActivityTablesTask = cms.Task(saJetTable,saTable)
def ExtVar(tag, valtype, doc=None, precision=-1)