-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add new reco::Muon 'displacedMuons' collection to AOD #36926
Closed
CeliaFernandez
wants to merge
5
commits into
cms-sw:master
from
CeliaFernandez:add-displacedMuons_RECO
Closed
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e90cc2e
Add sequences to process displacedTracks, displacedGlobalMuons and di…
CeliaFernandez 25764ce
Modify detector based isolation processing: Deposits only saved in RE…
CeliaFernandez 0c974b0
Remove displacedMuons sequences from fastsim since displacedTrack rec…
CeliaFernandez 0e2664c
Remove outdated lines
CeliaFernandez 4d2de56
Do not use clusters in displacedMuonReducedTrackExtras since clusters…
CeliaFernandez 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
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
15 changes: 15 additions & 0 deletions
15
RecoMuon/MuonIdentification/python/displacedMuonReducedTrackExtras_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,15 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
displacedMuonReducedTrackExtras = cms.EDProducer('MuonReducedTrackExtraProducer', | ||
muonTag = cms.InputTag('displacedMuons'), | ||
trackExtraTags = cms.VInputTag( | ||
'displacedTracks', | ||
'displacedGlobalMuons' | ||
), | ||
trackExtraAssocs = cms.VInputTag(), | ||
pixelClusterTag = cms.InputTag('siPixelClusters'), | ||
stripClusterTag = cms.InputTag('siStripClusters'), | ||
cut = cms.string('pt > 3.0'), | ||
outputClusters = cms.bool(True), | ||
mightGet = cms.optional.untracked.vstring | ||
) |
103 changes: 103 additions & 0 deletions
103
RecoMuon/MuonIdentification/python/displacedMuons_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,103 @@ | ||
# This file name is temporary and ment for development only. | ||
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. Maybe these two lines are outdated. If so, could you remove them? |
||
# The content of this file will be moved to displacedMuons_cfi as soon as the complete work flow is in place. | ||
|
||
import FWCore.ParameterSet.Config as cms | ||
|
||
displacedMuons = cms.EDProducer("MuonProducer", | ||
ActivateDebug = cms.untracked.bool(False), | ||
InputMuons = cms.InputTag("displacedMuons1stStep"), | ||
|
||
FillPFMomentumAndAssociation = cms.bool(True), | ||
PFCandidates = cms.InputTag("particleFlowTmp"), | ||
|
||
FillTimingInfo = cms.bool(True), | ||
|
||
FillDetectorBasedIsolation = cms.bool(True), | ||
EcalIsoDeposits = cms.InputTag("muIsoDepositCalByAssociatorTowersDisplaced","ecal"), | ||
HcalIsoDeposits = cms.InputTag("muIsoDepositCalByAssociatorTowersDisplaced","hcal"), | ||
HoIsoDeposits = cms.InputTag("muIsoDepositCalByAssociatorTowersDisplaced","ho"), | ||
TrackIsoDeposits = cms.InputTag("muIsoDepositTkDisplaced"), | ||
JetIsoDeposits = cms.InputTag("muIsoDepositJetsDisplaced"), | ||
|
||
FillPFIsolation = cms.bool(True), | ||
PFIsolation = cms.PSet( | ||
pfIsolationR03 = cms.PSet(chargedParticle = cms.InputTag("dispMuPFIsoValueChargedAll03"), | ||
chargedHadron = cms.InputTag("dispMuPFIsoValueCharged03"), | ||
neutralHadron = cms.InputTag("dispMuPFIsoValueNeutral03"), | ||
neutralHadronHighThreshold = cms.InputTag("dispMuPFIsoValueNeutralHighThreshold03"), | ||
photon = cms.InputTag("dispMuPFIsoValueGamma03"), | ||
photonHighThreshold = cms.InputTag("dispMuPFIsoValueGammaHighThreshold03"), | ||
pu = cms.InputTag("dispMuPFIsoValuePU03")), | ||
pfIsolationR04 = cms.PSet(chargedParticle = cms.InputTag("dispMuPFIsoValueChargedAll04"), | ||
chargedHadron = cms.InputTag("dispMuPFIsoValueCharged04"), | ||
neutralHadron = cms.InputTag("dispMuPFIsoValueNeutral04"), | ||
neutralHadronHighThreshold = cms.InputTag("dispMuPFIsoValueNeutralHighThreshold04"), | ||
photon = cms.InputTag("dispMuPFIsoValueGamma04"), | ||
photonHighThreshold = cms.InputTag("dispMuPFIsoValueGammaHighThreshold04"), | ||
pu = cms.InputTag("dispMuPFIsoValuePU04")), | ||
pfIsoMeanDRProfileR03 = cms.PSet(chargedParticle = cms.InputTag("dispMuPFMeanDRIsoValueChargedAll03"), | ||
chargedHadron = cms.InputTag("dispMuPFMeanDRIsoValueCharged03"), | ||
neutralHadron = cms.InputTag("dispMuPFMeanDRIsoValueNeutral03"), | ||
neutralHadronHighThreshold = cms.InputTag("dispMuPFMeanDRIsoValueNeutralHighThreshold03"), | ||
photon = cms.InputTag("dispMuPFMeanDRIsoValueGamma03"), | ||
photonHighThreshold = cms.InputTag("dispMuPFMeanDRIsoValueGammaHighThreshold03"), | ||
pu = cms.InputTag("dispMuPFMeanDRIsoValuePU03")), | ||
pfIsoMeanDRProfileR04 = cms.PSet(chargedParticle = cms.InputTag("dispMuPFMeanDRIsoValueChargedAll04"), | ||
chargedHadron = cms.InputTag("dispMuPFMeanDRIsoValueCharged04"), | ||
neutralHadron = cms.InputTag("dispMuPFMeanDRIsoValueNeutral04"), | ||
neutralHadronHighThreshold = cms.InputTag("dispMuPFMeanDRIsoValueNeutralHighThreshold04"), | ||
photon = cms.InputTag("dispMuPFMeanDRIsoValueGamma04"), | ||
photonHighThreshold = cms.InputTag("dispMuPFMeanDRIsoValueGammaHighThreshold04"), | ||
pu = cms.InputTag("dispMuPFMeanDRIsoValuePU04")), | ||
pfIsoSumDRProfileR03 = cms.PSet(chargedParticle = cms.InputTag("dispMuPFSumDRIsoValueChargedAll03"), | ||
chargedHadron = cms.InputTag("dispMuPFSumDRIsoValueCharged03"), | ||
neutralHadron = cms.InputTag("dispMuPFSumDRIsoValueNeutral03"), | ||
neutralHadronHighThreshold = cms.InputTag("dispMuPFSumDRIsoValueNeutralHighThreshold03"), | ||
photon = cms.InputTag("dispMuPFSumDRIsoValueGamma03"), | ||
photonHighThreshold = cms.InputTag("dispMuPFSumDRIsoValueGammaHighThreshold03"), | ||
pu = cms.InputTag("dispMuPFSumDRIsoValuePU03")), | ||
pfIsoSumDRProfileR04 = cms.PSet(chargedParticle = cms.InputTag("dispMuPFSumDRIsoValueChargedAll04"), | ||
chargedHadron = cms.InputTag("dispMuPFSumDRIsoValueCharged04"), | ||
neutralHadron = cms.InputTag("dispMuPFSumDRIsoValueNeutral04"), | ||
neutralHadronHighThreshold = cms.InputTag("dispMuPFSumDRIsoValueNeutralHighThreshold04"), | ||
photon = cms.InputTag("dispMuPFSumDRIsoValueGamma04"), | ||
photonHighThreshold = cms.InputTag("dispMuPFSumDRIsoValueGammaHighThreshold04"), | ||
pu = cms.InputTag("dispMuPFSumDRIsoValuePU04")) | ||
), | ||
|
||
FillSelectorMaps = cms.bool(False), | ||
SelectorMaps = cms.VInputTag(cms.InputTag("muidTMLastStationOptimizedLowPtLoose"), | ||
cms.InputTag("muidTMLastStationOptimizedLowPtTight"), | ||
cms.InputTag("muidTM2DCompatibilityLoose"), | ||
cms.InputTag("muidTM2DCompatibilityTight"), | ||
cms.InputTag("muidTrackerMuonArbitrated"), | ||
cms.InputTag("muidTMLastStationAngLoose"), | ||
cms.InputTag("muidGlobalMuonPromptTight"), | ||
cms.InputTag("muidGMStaChiCompatibility"), | ||
cms.InputTag("muidTMLastStationAngTight"), | ||
cms.InputTag("muidGMTkChiCompatibility"), | ||
cms.InputTag("muidTMOneStationAngTight"), | ||
cms.InputTag("muidTMOneStationAngLoose"), | ||
cms.InputTag("muidTMLastStationLoose"), | ||
cms.InputTag("muidTMLastStationTight"), | ||
cms.InputTag("muidTMOneStationTight"), | ||
cms.InputTag("muidTMOneStationLoose"), | ||
cms.InputTag("muidAllArbitrated"), | ||
cms.InputTag("muidGMTkKinkTight"), | ||
cms.InputTag("muidRPCMuLoose") | ||
), | ||
|
||
FillShoweringInfo = cms.bool(False), | ||
ShowerInfoMap = cms.InputTag("muonShowerInformation"), | ||
|
||
FillCosmicsIdMap = cms.bool(False), | ||
CosmicIdMap = cms.InputTag("cosmicsVeto"), | ||
|
||
ComputeStandardSelectors = cms.bool(True), | ||
vertices = cms.InputTag("offlinePrimaryVertices") | ||
|
||
) | ||
|
||
# not commisoned and not relevant in FastSim (?): | ||
from Configuration.Eras.Modifier_fastSim_cff import fastSim | ||
fastSim.toModify(displacedMuons, FillCosmicsIdMap = False, FillSelectorMaps = False) |
20 changes: 20 additions & 0 deletions
20
RecoMuon/MuonIsolation/python/displacedMuonPFIsolationDeposits_cff.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,20 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from CommonTools.ParticleFlow.Isolation.tools_cfi import * | ||
|
||
|
||
#Now prepare the iso deposits for displacedMuons | ||
dispMuPFIsoDepositCharged=isoDepositReplace('displacedMuons1stStep','pfAllChargedHadrons') | ||
dispMuPFIsoDepositChargedAll=isoDepositReplace('displacedMuons1stStep','pfAllChargedParticles') | ||
dispMuPFIsoDepositNeutral=isoDepositReplace('displacedMuons1stStep','pfAllNeutralHadrons') | ||
dispMuPFIsoDepositGamma=isoDepositReplace('displacedMuons1stStep','pfAllPhotons') | ||
dispMuPFIsoDepositPU=isoDepositReplace('displacedMuons1stStep','pfPileUpAllChargedParticles') | ||
|
||
displacedMuonPFIsolationDepositsTask = cms.Task( | ||
dispMuPFIsoDepositCharged, | ||
dispMuPFIsoDepositChargedAll, | ||
dispMuPFIsoDepositGamma, | ||
dispMuPFIsoDepositNeutral, | ||
dispMuPFIsoDepositPU | ||
) | ||
displacedMuonPFIsolationDepositsSequence = cms.Sequence(displacedMuonPFIsolationDepositsTask) |
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.
Do you know what is the contribution to the total size increase given by each of these new collections?
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.
We have computed it in a ttbar sample (runTheMatrix.py workflow 11634.0). The table with the size increase is in slide 28 of this presentation: https://cernbox.cern.ch/index.php/s/FfAZonfSest7kqQ