-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Adding offlineVerticesWithBS to miniAOD #33778
Merged
cmsbuild
merged 6 commits into
cms-sw:master
from
AdrianoDee:miniAOD_withBSVertices_12X
May 28, 2021
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0e16911
Adding offlineVerticesWithBS to miniAOD
3958a8a
Updating MicroEventContent to include offlineSlimmedPrimaryVerticesWi…
1b82c33
Cleaning Type Specifications
4f82d57
Merged refs/pull/33778/head from repository cms-sw with cms-merge-topic
43ca7e0
Fixing naming for primaryVertexWithBSAssociation
6689203
Cleaning superfluous comments
AdrianoDee 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 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
6 changes: 6 additions & 0 deletions
6
PhysicsTools/PatAlgos/python/slimming/offlineSlimmedPrimaryVerticesWithBS_cfi.py
This file contains 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,6 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
offlineSlimmedPrimaryVerticesWithBS = cms.EDProducer("PATVertexSlimmer", | ||
src = cms.InputTag("offlinePrimaryVerticesWithBS"), | ||
score = cms.InputTag("primaryVertexWithBSAssociation","original"), | ||
) |
This file contains 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 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
from PhysicsTools.PatAlgos.slimming.lostTracks_cfi import * | ||
from PhysicsTools.PatAlgos.slimming.offlineSlimmedPrimaryVertices_cfi import * | ||
from PhysicsTools.PatAlgos.slimming.offlineSlimmedPrimaryVertices4D_cfi import * | ||
from PhysicsTools.PatAlgos.slimming.offlineSlimmedPrimaryVerticesWithBS_cfi import * | ||
from PhysicsTools.PatAlgos.slimming.primaryVertexAssociation_cfi import * | ||
from PhysicsTools.PatAlgos.slimming.genParticles_cff import * | ||
from PhysicsTools.PatAlgos.slimming.selectedPatTrigger_cfi import * | ||
|
@@ -34,7 +35,9 @@ | |
lostTracks, | ||
isolatedTracks, | ||
offlineSlimmedPrimaryVertices, | ||
offlineSlimmedPrimaryVerticesWithBS, | ||
primaryVertexAssociation, | ||
primaryVertexWithBSAssociation, | ||
genParticlesTask, | ||
selectedPatTrigger, | ||
slimmedPatTrigger, | ||
|
@@ -82,10 +85,11 @@ | |
lostTrackChi2 = packedPFCandidateTrackChi2.clone(candidates = "lostTracks", doLostTracks = True) | ||
|
||
pp_on_AA.toReplaceWith( | ||
slimmingTask, | ||
slimmingTask, | ||
cms.Task(slimmingTask.copy(), packedCandidateMuonID, packedPFCandidateTrackChi2, lostTrackChi2, centralityBin, hiHFfilters)) | ||
from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X | ||
run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexAssociationCleaned,slimmingTask.copy())) | ||
run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexWithBSAssociationCleaned,slimmingTask.copy())) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here: insertion to be agreed with @mandrenguyen @abaty |
||
|
||
from RecoHI.HiTracking.miniAODVertexRecovery_cff import offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery | ||
pp_on_AA.toReplaceWith( | ||
|
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.
is this really needed?
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.
Sincerely I placed it for consistency, for me we may erase it.
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.
@mandrenguyen @abaty could you please give your advice about the possible need of these
offlineVerticesWithBS
for HI?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.
It would be nice to have offlinePrimaryVerticesWithBS in HI miniAOD as well. I checked the increase in size on 100 events of wf 140.5611 and it looks negligible, around 0.1%. PU is so low in PbPb that multiple vertices are more likely to come from vertex splitting. So perhaps this is not unexpected.
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.
Great, thank you Matt,
Therefore, this part can remain as it is,