1 import FWCore.ParameterSet.Config
as cms
6 from EventFilter.L1TRawToDigi.gtStage2Digis_cfi
import gtStage2Digis
12 particleTask = cms.Task(scoutingPFCands)
13 ak4JetTableTask = cms.Task(ak4ScoutingJets,ak4ScoutingJetParticleNetJetTagInfos,ak4ScoutingJetParticleNetJetTags,ak4ScoutingJetTable)
14 ak8JetTableTask = cms.Task(ak8ScoutingJets,ak8ScoutingJetsSoftDrop,ak8ScoutingJetsSoftDropMass,ak8ScoutingJetEcfNbeta1,ak8ScoutingJetNjettiness,ak8ScoutingJetParticleNetJetTagInfos,ak8ScoutingJetParticleNetJetTags,ak8ScoutingJetParticleNetMassRegressionJetTags,ak8ScoutingJetTable)
16 muonScoutingTableTask = cms.Task(muonScoutingTable)
17 displacedvertexScoutingTableTask = cms.Task(displacedvertexScoutingTable)
20 from Configuration.Eras.Modifier_run3_scouting_nanoAOD_post2023_cff
import run3_scouting_nanoAOD_post2023
21 run3_scouting_nanoAOD_post2023.toReplaceWith(muonScoutingTableTask, cms.Task(muonVtxScoutingTable, muonNoVtxScoutingTable))\
22 .toReplaceWith(displacedvertexScoutingTableTask, cms.Task(displacedvertexVtxScoutingTable, displacedvertexNoVtxScoutingTable))
25 gtStage2DigisScouting = gtStage2Digis.clone(InputLabel=
"hltFEDSelectorL1")
26 l1bitsScouting = l1bits.clone(src=
"gtStage2DigisScouting")
30 l1MuScoutingTable = l1MuTable.clone(src=cms.InputTag(
"gtStage2DigisScouting",
"Muon"))
31 l1JetScoutingTable = l1JetTable.clone(src=cms.InputTag(
"gtStage2DigisScouting",
"Jet"))
32 l1EGScoutingTable = l1EGTable.clone(src=cms.InputTag(
"gtStage2DigisScouting",
"EGamma"))
33 l1TauScoutingTable = l1TauTable.clone(src=cms.InputTag(
"gtStage2DigisScouting",
"Tau"))
34 l1EtSumScoutingTable = l1EtSumTable.clone(src=cms.InputTag(
"gtStage2DigisScouting",
"EtSum"))
37 l1EGScoutingTable.variables = cms.PSet(l1EGReducedVars)
38 l1MuScoutingTable.variables = cms.PSet(l1MuonReducedVars)
39 l1JetScoutingTable.variables = cms.PSet(l1JetReducedVars)
40 l1TauScoutingTable.variables = cms.PSet(l1TauReducedVars)
41 l1EtSumScoutingTable.variables = cms.PSet(l1EtSumReducedVars)
43 triggerTask = cms.Task(
44 gtStage2DigisScouting, l1bitsScouting,
45 l1MuScoutingTable, l1EGScoutingTable, l1TauScoutingTable, l1JetScoutingTable, l1EtSumScoutingTable,
47 triggerSequence = cms.Sequence(L1TRawToDigi+cms.Sequence(triggerTask))
50 genJetTask = cms.Task(ak4ScoutingJetMatchGen,ak4ScoutingJetExtTable,ak8ScoutingJetMatchGen,ak8ScoutingJetExtTable)
51 puTask = cms.Task(puTable)
53 nanoTableTaskCommon = cms.Task(photonScoutingTable,muonScoutingTableTask,electronScoutingTable,primaryvertexScoutingTable,displacedvertexScoutingTableTask,jetScoutingTable,rhoScoutingTable,metScoutingTable,particleTask,ak4JetTableTask,ak8JetTableTask)
55 nanoSequenceCommon = cms.Sequence(triggerSequence,nanoTableTaskCommon)
57 nanoSequence = cms.Sequence(nanoSequenceCommon)
59 nanoSequenceMC = cms.Sequence(nanoSequenceCommon + cms.Sequence(cms.Task(genJetTask,puTask)))
def nanoAOD_customizeCommon(process)