Skip to content
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
25 changes: 19 additions & 6 deletions Validation/RecoVertex/python/HLTmultiPVvalidator_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
trackAssociatorMap = "trackingParticleRecoTrackAsssociation",
vertexAssociator = "VertexAssociatorByPositionAndTracks"
)

from Validation.RecoTrack.associators_cff import hltTPClusterProducer, hltTrackAssociatorByHits, tpToHLTpixelTrackAssociation
from SimTracker.VertexAssociation.VertexAssociatorByPositionAndTracks_cfi import VertexAssociatorByPositionAndTracks as _VertexAssociatorByPositionAndTracks
vertexAssociatorByPositionAndTracks4pixelTracks = _VertexAssociatorByPositionAndTracks.clone(
Expand Down Expand Up @@ -70,6 +71,18 @@ def _modifyPixelPVanalysisForPhase2(pvanalysis):
)
)

hltPVanalysisReconstructable = hltMultiPVanalysis.clone(
do_generic_sim_plots = False, # to not produce fill the ones from hltPixelPVanalysisReconstructable twice
use_reconstructable_simvertices = True,
reco_tracks_for_reconstructable_simvertices = 1, #inclusive, below or equal discard sim vertex.
root_folder = "HLT/Vertexing/ValidationWRTReconstructableSim",
trackAssociatorMap = "tpToHLTpfMuonMergingTrackAssociation",
vertexAssociator = "vertexAssociatorByPositionAndTracks4pfMuonMergingTracks",
vertexRecoCollections = (
"hltVerticesPFFilter",
)
)

tpToHLTphase2TrackAssociation = tpToHLTpixelTrackAssociation.clone(
label_tr = "hltGeneralTracks"
)
Expand All @@ -85,6 +98,7 @@ def _modifyFullPVanalysisForPhase2(pvanalysis):
pvanalysis.vertexAssociator = "vertexAssociatorByPositionAndTracks4phase2HLTTracks"

phase2_tracker.toModify(hltPVanalysis, _modifyFullPVanalysisForPhase2)
phase2_tracker.toModify(hltPVanalysisReconstructable, _modifyFullPVanalysisForPhase2)

hltMultiPVAssociations = cms.Task(
hltOtherTPClusterProducer,
Expand All @@ -98,9 +112,8 @@ def _modifyFullPVanalysisForPhase2(pvanalysis):
vertexAssociatorByPositionAndTracks4phase2HLTTracks
)

hltMultiPVValidation = cms.Sequence(
hltPixelPVanalysis
+ hltPixelPVanalysisReconstructable
+ hltPVanalysis,
hltMultiPVAssociations
)
hltMultiPVValidation = cms.Sequence(hltPixelPVanalysis +
hltPixelPVanalysisReconstructable +
hltPVanalysis +
hltPVanalysisReconstructable,
hltMultiPVAssociations)