Skip to content
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

Do not redefine twice in CMSSW the TkAl muon selectors #43878

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 4 additions & 17 deletions Alignment/APEEstimation/python/AlcaRecoSelection_cff.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
import FWCore.ParameterSet.Config as cms

import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi


##
## ALCARECOTkAlMuonIsolated selection
##

## First select goodId + isolated muons
TkAlGoodIdMuonSelector = cms.EDFilter("MuonSelector",
src = cms.InputTag('muons'),
cut = cms.string('isGlobalMuon &'
'isTrackerMuon &'
'numberOfMatches > 1 &'
'globalTrack.hitPattern.numberOfValidMuonHits > 0 &'
'abs(eta) < 2.5 &'
'globalTrack.normalizedChi2 < 20.'),
filter = cms.bool(True)
)
TkAlRelCombIsoMuonSelector = cms.EDFilter("MuonSelector",
src = cms.InputTag(''),
cut = cms.string('(isolationR03().sumPt + isolationR03().emEt + isolationR03().hadEt)/pt < 0.15'),
filter = cms.bool(True)
ALCARECOTkAlMuonIsolatedGoodMuons = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.TkAlGoodIdMuonSelector.clone()
ALCARECOTkAlMuonIsolatedRelCombIsoMuons = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.TkAlRelCombIsoMuonSelector.clone(
src = 'ALCARECOTkAlMuonIsolatedGoodMuons'
)
ALCARECOTkAlMuonIsolatedGoodMuons = TkAlGoodIdMuonSelector.clone()
ALCARECOTkAlMuonIsolatedRelCombIsoMuons = TkAlRelCombIsoMuonSelector.clone(src = 'ALCARECOTkAlMuonIsolatedGoodMuons')

## Then select their tracks with additional cuts
import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi
ALCARECOTkAlMuonIsolated = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone(
filter = True, ##do not store empty events
applyBasicCuts = True,
Expand Down