Skip to content

Commit a6a3f63

Browse files
committed
move definition of tauSpinner table module to dedicated cfi
1 parent fa10e4b commit a6a3f63

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

PhysicsTools/NanoAOD/python/globals_cff.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from PhysicsTools.NanoAOD.simpleBeamspotFlatTableProducer_cfi import simpleBeamspotFlatTableProducer
66
from PhysicsTools.NanoAOD.simpleGenEventFlatTableProducer_cfi import simpleGenEventFlatTableProducer
77
from PhysicsTools.NanoAOD.simpleGenFilterFlatTableProducerLumi_cfi import simpleGenFilterFlatTableProducerLumi
8-
from PhysicsTools.NanoAOD.tauSpinnerTableProducer_cfi import tauSpinnerTableProducer
98

109
beamSpotTable = simpleBeamspotFlatTableProducer.clone(
1110
src = cms.InputTag("offlineBeamSpot"),
@@ -71,17 +70,5 @@
7170
),
7271
)
7372

74-
tauSpinnerTable = tauSpinnerTableProducer.clone(
75-
src = 'prunedGenParticles',
76-
name = 'TauSpinner',
77-
theta = [0, 0.25, 0.5, -0.25, 0.375],
78-
pdfSet = 'NNPDF31_nnlo_hessian_pdfas',
79-
cmsE = 13600,
80-
defaultWeight = 1
81-
)
82-
(~run3_common).toModify(
83-
tauSpinnerTable, cmsE = 13000
84-
)
85-
8673
globalTablesTask = cms.Task(beamSpotTable, rhoTable)
87-
globalTablesMCTask = cms.Task(puTable,genTable,genFilterTable,tauSpinnerTable)
74+
globalTablesMCTask = cms.Task(puTable,genTable,genFilterTable)

PhysicsTools/NanoAOD/python/nano_cff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from PhysicsTools.NanoAOD.genparticles_cff import *
1919
from PhysicsTools.NanoAOD.particlelevel_cff import *
2020
from PhysicsTools.NanoAOD.genWeightsTable_cfi import *
21+
from PhysicsTools.NanoAOD.tauSpinnerTable_cfi import *
2122
from PhysicsTools.NanoAOD.genVertex_cff import *
2223
from PhysicsTools.NanoAOD.vertices_cff import *
2324
from PhysicsTools.NanoAOD.met_cff import *
@@ -96,7 +97,7 @@
9697
genParticleTask, particleLevelTask, jetMCTask, muonMCTask, electronMCTask, lowPtElectronMCTask, photonMCTask,
9798
tauMCTask, boostedTauMCTask,
9899
metMCTable, ttbarCatMCProducersTask, globalTablesMCTask, ttbarCategoryTableTask,
99-
genWeightsTableTask, genVertexTablesTask, genParticleTablesTask, genProtonTablesTask, particleLevelTablesTask
100+
genWeightsTableTask, genVertexTablesTask, genParticleTablesTask, genProtonTablesTask, particleLevelTablesTask, tauSpinnerTableTask
100101
)
101102

102103
nanoSequenceFS = cms.Sequence(nanoSequenceCommon + cms.Sequence(nanoTableTaskFS))
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import FWCore.ParameterSet.Config as cms
2+
from PhysicsTools.NanoAOD.nano_eras_cff import *
3+
from PhysicsTools.NanoAOD.tauSpinnerTableProducer_cfi import tauSpinnerTableProducer
4+
5+
tauSpinnerTable = tauSpinnerTableProducer.clone(
6+
src = 'prunedGenParticles',
7+
name = 'TauSpinner',
8+
theta = [0, 0.25, 0.5, -0.25, 0.375],
9+
pdfSet = 'NNPDF31_nnlo_hessian_pdfas',
10+
cmsE = 13600,
11+
defaultWeight = 1
12+
)
13+
(~run3_common).toModify(
14+
tauSpinnerTable, cmsE = 13000
15+
)
16+
17+
tauSpinnerTableTask = cms.Task(tauSpinnerTable)

0 commit comments

Comments
 (0)