Skip to content

Commit 7728310

Browse files
authored
Merge pull request #48474 from mmusich/mm_improve_evtContent_ALCARECOTkAlHLTTracks_v2
Improved Event Content for the `TkAlHLT*` ALCARECO
2 parents 10b6858 + fc071fb commit 7728310

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

Alignment/CommonAlignmentProducer/python/ALCARECOTkAlHLTTracksZMuMu_Output_cff.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
'keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlHLTTracksZMuMu_*_*',
1414
'keep L1AcceptBunchCrossings_*_*_*',
1515
'keep *_TriggerResults_*_*',
16+
'keep *_hltPixelVertices_*_*',
17+
'keep *_ALCARECOTkAlHLTPixelZMuMuVertexTracks_*_*',
1618
'keep *_hltVerticesPFFilter_*_*',
1719
'keep *_hltOnlineBeamSpot_*_*'
1820
)

Alignment/CommonAlignmentProducer/python/ALCARECOTkAlHLTTracksZMuMu_cff.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,22 @@
5555
ALCARECOTkAlHLTTracksZMuMu.TwoBodyDecaySelector.applyAcoplanarityFilter = False
5656
ALCARECOTkAlHLTTracksZMuMu.TwoBodyDecaySelector.numberOfCandidates = 1
5757

58-
seqALCARECOTkAlHLTTracksZMuMu = cms.Sequence(ALCARECOTkAlHLTTracksZMuMuHLT+ALCARECOTkAlHLTTracksZMuMuDCSFilter+ALCARECOTkAlHLTTracksZMuMuGoodMuons+ALCARECOTkAlHLTTracksZMuMuRelCombIsoMuons+ALCARECOTkAlHLTTracksZMuMu)
58+
##################################################################
59+
# Tracks from the selected vertex
60+
#################################################################
61+
import Alignment.CommonAlignmentProducer.AlignmentTracksFromVertexSelector_cfi as _TracksFromPixelVertex
62+
ALCARECOTkAlHLTPixelZMuMuVertexTracks = _TracksFromPixelVertex.AlignmentTracksFromVertexSelector.clone(
63+
src = 'hltPixelTracks',
64+
vertices = 'hltPixelVertices',
65+
leptonTracks = 'ALCARECOTkAlHLTTracksZMuMu',
66+
useClosestVertexToDilepton = True,
67+
)
68+
69+
seqALCARECOTkAlHLTTracksZMuMu = cms.Sequence(ALCARECOTkAlHLTTracksZMuMuHLT+
70+
ALCARECOTkAlHLTTracksZMuMuDCSFilter+
71+
ALCARECOTkAlHLTTracksZMuMuGoodMuons+
72+
ALCARECOTkAlHLTTracksZMuMuRelCombIsoMuons+
73+
ALCARECOTkAlHLTTracksZMuMu+
74+
ALCARECOTkAlHLTPixelZMuMuVertexTracks)
5975

6076

Alignment/CommonAlignmentProducer/python/ALCARECOTkAlHLTTracks_Output_cff.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlHLTTracks_*_*',
1414
'keep L1AcceptBunchCrossings_*_*_*',
1515
'keep *_TriggerResults_*_*',
16+
'keep *_hltPixelVertices_*_*',
1617
'keep *_hltVerticesPFFilter_*_*',
1718
'keep *_hltOnlineBeamSpot_*_*')
1819
)

Alignment/CommonAlignmentProducer/src/AlignmentTracksFromVertexSelector.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,14 @@ AlignmentTrackFromVertexSelector::Tracks AlignmentTrackFromVertexSelector::selec
7878
// get collection of reconstructed vertices from event
7979
edm::Handle<reco::VertexCollection> vertexHandle = evt.getHandle(vertexToken_);
8080

81-
// get collection of the di-lepton traxks
82-
const auto& leptonTracks = evt.get(diLeptonToken_);
83-
8481
// fill the vector of keys
8582
if (vertexHandle.isValid()) {
8683
const reco::VertexCollection* vertices = vertexHandle.product();
8784
const reco::Vertex* theVtx = nullptr;
8885

8986
if (useClosestVertex_) {
87+
// get collection of the di-lepton traxks
88+
const auto& leptonTracks = evt.get(diLeptonToken_);
9089
theVtx = findClosestVertex(leptonTracks, vertices, setup);
9190
} else {
9291
if ((*vertices).at(vertexIndex_).isValid()) {

0 commit comments

Comments
 (0)