Skip to content

Commit

Permalink
Merge pull request #43878 from perrotta/doNotDefineTwiceTkAlMuonSelec…
Browse files Browse the repository at this point in the history
…tors

Do not redefine twice in CMSSW the TkAl muon selectors
  • Loading branch information
cmsbuild authored Feb 9, 2024
2 parents f6cf919 + 076b08c commit 49c7015
Showing 1 changed file with 4 additions and 17 deletions.
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

0 comments on commit 49c7015

Please sign in to comment.