Skip to content

Improved Event Content for the TkAlHLT* ALCARECO #48474

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

Merged
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
'keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlHLTTracksZMuMu_*_*',
'keep L1AcceptBunchCrossings_*_*_*',
'keep *_TriggerResults_*_*',
'keep *_hltPixelVertices_*_*',
'keep *_ALCARECOTkAlHLTPixelZMuMuVertexTracks_*_*',
'keep *_hltVerticesPFFilter_*_*',
'keep *_hltOnlineBeamSpot_*_*'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@
ALCARECOTkAlHLTTracksZMuMu.TwoBodyDecaySelector.applyAcoplanarityFilter = False
ALCARECOTkAlHLTTracksZMuMu.TwoBodyDecaySelector.numberOfCandidates = 1

seqALCARECOTkAlHLTTracksZMuMu = cms.Sequence(ALCARECOTkAlHLTTracksZMuMuHLT+ALCARECOTkAlHLTTracksZMuMuDCSFilter+ALCARECOTkAlHLTTracksZMuMuGoodMuons+ALCARECOTkAlHLTTracksZMuMuRelCombIsoMuons+ALCARECOTkAlHLTTracksZMuMu)
##################################################################
# Tracks from the selected vertex
#################################################################
import Alignment.CommonAlignmentProducer.AlignmentTracksFromVertexSelector_cfi as _TracksFromPixelVertex
ALCARECOTkAlHLTPixelZMuMuVertexTracks = _TracksFromPixelVertex.AlignmentTracksFromVertexSelector.clone(
src = 'hltPixelTracks',
vertices = 'hltPixelVertices',
leptonTracks = 'ALCARECOTkAlHLTTracksZMuMu',
useClosestVertexToDilepton = True,
)

seqALCARECOTkAlHLTTracksZMuMu = cms.Sequence(ALCARECOTkAlHLTTracksZMuMuHLT+
ALCARECOTkAlHLTTracksZMuMuDCSFilter+
ALCARECOTkAlHLTTracksZMuMuGoodMuons+
ALCARECOTkAlHLTTracksZMuMuRelCombIsoMuons+
ALCARECOTkAlHLTTracksZMuMu+
ALCARECOTkAlHLTPixelZMuMuVertexTracks)


Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
'keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlHLTTracks_*_*',
'keep L1AcceptBunchCrossings_*_*_*',
'keep *_TriggerResults_*_*',
'keep *_hltPixelVertices_*_*',
'keep *_hltVerticesPFFilter_*_*',
'keep *_hltOnlineBeamSpot_*_*')
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,14 @@ AlignmentTrackFromVertexSelector::Tracks AlignmentTrackFromVertexSelector::selec
// get collection of reconstructed vertices from event
edm::Handle<reco::VertexCollection> vertexHandle = evt.getHandle(vertexToken_);

// get collection of the di-lepton traxks
const auto& leptonTracks = evt.get(diLeptonToken_);

// fill the vector of keys
if (vertexHandle.isValid()) {
const reco::VertexCollection* vertices = vertexHandle.product();
const reco::Vertex* theVtx = nullptr;

if (useClosestVertex_) {
// get collection of the di-lepton traxks
const auto& leptonTracks = evt.get(diLeptonToken_);
theVtx = findClosestVertex(leptonTracks, vertices, setup);
} else {
if ((*vertices).at(vertexIndex_).isValid()) {
Expand Down