CMS 3D CMS Logo

custom_run3scouting_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 from PhysicsTools.NanoAOD.globals_cff import puTable
4 from PhysicsTools.NanoAOD.triggerObjects_cff import unpackedPatTrigger, triggerObjectTable, l1bits
6 from EventFilter.L1TRawToDigi.gtStage2Digis_cfi import gtStage2Digis
10 
11 # common tasks
12 particleTask = cms.Task(scoutingPFCands)
13 particleTableTask = cms.Task(particleScoutingTable)
14 ak4JetTableTask = cms.Task(ak4ScoutingJets,ak4ScoutingJetParticleNetJetTagInfos,ak4ScoutingJetParticleNetJetTags,ak4ScoutingJetTable)
15 ak8JetTableTask = cms.Task(ak8ScoutingJets,ak8ScoutingJetsSoftDrop,ak8ScoutingJetsSoftDropMass,ak8ScoutingJetEcfNbeta1,ak8ScoutingJetNjettiness,ak8ScoutingJetParticleNetJetTagInfos,ak8ScoutingJetParticleNetJetTags,ak8ScoutingJetParticleNetMassRegressionJetTags,ak8ScoutingJetTable)
16 
17 gtStage2DigisScouting = gtStage2Digis.clone(InputLabel="hltFEDSelectorL1")
18 l1bitsScouting = l1bits.clone(src="gtStage2DigisScouting")
19 patTriggerScouting = patTrigger.clone(l1tAlgBlkInputTag="gtStage2DigisScouting",l1tExtBlkInputTag="gtStage2DigisScouting")
20 selectedPatTriggerScouting = selectedPatTrigger.clone(src="patTriggerScouting")
21 slimmedPatTriggerScouting = slimmedPatTrigger.clone(src="selectedPatTriggerScouting")
22 unpackedPatTriggerScouting = unpackedPatTrigger.clone(patTriggerObjectsStandAlone="slimmedPatTriggerScouting")
23 triggerObjectTableScouting = triggerObjectTable.clone(src="unpackedPatTriggerScouting")
24 
25 triggerTask = cms.Task(gtStage2DigisScouting,unpackedPatTriggerScouting,triggerObjectTableScouting,l1bitsScouting)
26 triggerSequence = cms.Sequence(L1TRawToDigi+patTriggerScouting+selectedPatTriggerScouting+slimmedPatTriggerScouting+cms.Sequence(triggerTask))
27 
28 # MC tasks
29 genJetTask = cms.Task(ak4ScoutingJetMatchGen,ak4ScoutingJetExtTable,ak8ScoutingJetMatchGen,ak8ScoutingJetExtTable)
30 puTask = cms.Task(puTable)
31 
32 nanoTableTaskCommon = cms.Task(photonScoutingTable,muonScoutingTable,electronScoutingTable,trackScoutingTable,primaryvertexScoutingTable,displacedvertexScoutingTable,rhoScoutingTable,metScoutingTable,particleTask,particleTableTask,ak4JetTableTask,ak8JetTableTask)
33 
34 nanoSequenceCommon = cms.Sequence(triggerSequence,nanoTableTaskCommon)
35 
36 nanoSequence = cms.Sequence(nanoSequenceCommon)
37 
38 nanoSequenceMC = cms.Sequence(nanoSequenceCommon + cms.Sequence(cms.Task(genJetTask,puTask)))
39 
41  return process