-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Create new gtStage2Digis module for Run-3 scouting #42484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
alintulu
wants to merge
1
commit into
cms-sw:master
from
alintulu:scoutingNanoAOD-13_0_0_pre2_gtStage2Digis
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| import FWCore.ParameterSet.Config as cms | ||
| from PhysicsTools.NanoAOD.run3scouting_cff import * | ||
| from PhysicsTools.NanoAOD.globals_cff import puTable | ||
| from PhysicsTools.NanoAOD.triggerObjects_cff import unpackedPatTrigger, triggerObjectTable, l1bits | ||
| from L1Trigger.Configuration.L1TRawToDigi_cff import * | ||
| from EventFilter.L1TRawToDigi.gtStage2Digis_cfi import gtStage2Digis | ||
| from PhysicsTools.PatAlgos.triggerLayer1.triggerProducer_cfi import patTrigger | ||
| from PhysicsTools.PatAlgos.slimming.selectedPatTrigger_cfi import selectedPatTrigger | ||
| from PhysicsTools.PatAlgos.slimming.slimmedPatTrigger_cfi import slimmedPatTrigger | ||
|
|
||
| # common tasks | ||
| particleTask = cms.Task(scoutingPFCands) | ||
| particleTableTask = cms.Task(particleScoutingTable) | ||
| ak4JetTableTask = cms.Task(ak4ScoutingJets,ak4ScoutingJetParticleNetJetTagInfos,ak4ScoutingJetParticleNetJetTags,ak4ScoutingJetTable) | ||
| ak8JetTableTask = cms.Task(ak8ScoutingJets,ak8ScoutingJetsSoftDrop,ak8ScoutingJetsSoftDropMass,ak8ScoutingJetEcfNbeta1,ak8ScoutingJetNjettiness,ak8ScoutingJetParticleNetJetTagInfos,ak8ScoutingJetParticleNetJetTags,ak8ScoutingJetParticleNetMassRegressionJetTags,ak8ScoutingJetTable) | ||
|
|
||
| gtStage2DigisScouting = gtStage2Digis.clone(InputLabel="hltFEDSelectorL1") | ||
| l1bitsScouting = l1bits.clone(src="gtStage2DigisScouting") | ||
| patTriggerScouting = patTrigger.clone(l1tAlgBlkInputTag="gtStage2DigisScouting",l1tExtBlkInputTag="gtStage2DigisScouting") | ||
| selectedPatTriggerScouting = selectedPatTrigger.clone(src="patTriggerScouting") | ||
| slimmedPatTriggerScouting = slimmedPatTrigger.clone(src="selectedPatTriggerScouting") | ||
| unpackedPatTriggerScouting = unpackedPatTrigger.clone(patTriggerObjectsStandAlone="slimmedPatTriggerScouting") | ||
| triggerObjectTableScouting = triggerObjectTable.clone(src="unpackedPatTriggerScouting") | ||
|
|
||
| triggerTask = cms.Task(gtStage2DigisScouting,unpackedPatTriggerScouting,triggerObjectTableScouting,l1bitsScouting) | ||
| triggerSequence = cms.Sequence(L1TRawToDigi+patTriggerScouting+selectedPatTriggerScouting+slimmedPatTriggerScouting+cms.Sequence(triggerTask)) | ||
|
|
||
| # MC tasks | ||
| genJetTask = cms.Task(ak4ScoutingJetMatchGen,ak4ScoutingJetExtTable,ak8ScoutingJetMatchGen,ak8ScoutingJetExtTable) | ||
| puTask = cms.Task(puTable) | ||
|
|
||
| nanoTableTaskCommon = cms.Task(photonScoutingTable,muonScoutingTable,electronScoutingTable,trackScoutingTable,primaryvertexScoutingTable,displacedvertexScoutingTable,rhoScoutingTable,metScoutingTable,particleTask,particleTableTask,ak4JetTableTask,ak8JetTableTask) | ||
|
|
||
| nanoSequenceCommon = cms.Sequence(triggerSequence,nanoTableTaskCommon) | ||
|
|
||
| nanoSequence = cms.Sequence(nanoSequenceCommon) | ||
|
|
||
| nanoSequenceMC = cms.Sequence(nanoSequenceCommon + cms.Sequence(cms.Task(genJetTask,puTask))) | ||
|
|
||
| def nanoAOD_customizeCommon(process): | ||
| return process |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying here the comment of @vlimant in the original PR (that could even had been addressed here, since you are making a new PR):
I believe that the
.nanoSequenceMCis not necessary, since--mcwill have cmsDriver pick that one up automatically. We'll deal with this at a later stage during theNANO:@Scoutingintegration