Skip to content

Commit

Permalink
customize HLT DQM vs offline validation for Run3 PbPb
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Nov 7, 2023
1 parent 7d99d30 commit d13c163
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 4 deletions.
14 changes: 14 additions & 0 deletions Configuration/EventContent/python/EventContent_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ def SwapKeepAndDrop(l):
from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
from RecoLocalFastTime.Configuration.RecoLocalFastTime_EventContent_cff import *
from RecoMTD.Configuration.RecoMTD_EventContent_cff import *
Expand Down Expand Up @@ -640,6 +641,19 @@ def SwapKeepAndDrop(l):
FEVTDEBUGHLTEventContent.outputCommands.append('keep *_*_MergedTrackTruth_*')
FEVTDEBUGHLTEventContent.outputCommands.append('keep *_*_StripDigiSimLink_*')
FEVTDEBUGHLTEventContent.outputCommands.append('keep *_*_PixelDigiSimLink_*')

pp_on_PbPb_run3.toModify(FEVTDEBUGHLTEventContent,
outputCommands = FEVTDEBUGHLTEventContent.outputCommands+[
'keep *_hltMergedTracksPPOnAA_*_*',
'keep *_hltVerticesPFFilterPPOnAA_*_*',
'keep *_hltDoubletRecoveryPFlowTrackSelectionHighPurityPPOnAA_*_*',
'keep *_hltPixelTracksPPOnAA_*_*',
'keep *_hltPixelVerticesPPOnAA_*_*',
'keep *_hltTrimmedPixelVerticesPPOnAA_*_*',
'keep *_hltSiPixelClustersAfterSplittingPPOnAA_*_*',
'keep *_hltHITrackingSiStripRawToClustersFacilityFullZeroSuppression_*_*'
])

approxSiStripClusters.toModify(FEVTDEBUGHLTEventContent,
outputCommands = FEVTDEBUGHLTEventContent.outputCommands+[
'keep *_hltSiStripClusters2ApproxClusters_*_*',
Expand Down
12 changes: 12 additions & 0 deletions DQMOffline/Trigger/python/PrimaryVertexMonitoring_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
useHPforAlignmentPlots = False
)

from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
pp_on_PbPb_run3.toModify(hltPixelVerticesMonitoring,
vertexLabel = "hltPixelVerticesPPOnAA")

phase2_tracker.toModify(hltPixelVerticesMonitoring,
vertexLabel = "hltPhase2PixelVertices")

Expand All @@ -27,11 +31,19 @@
ndof = 1,
useHPforAlignmentPlots = False
)

pp_on_PbPb_run3.toModify(hltTrimmedPixelVerticesMonitoring,
vertexLabel = "hltTrimmedPixelVerticesPPOnAA")

hltVerticesPFFilterMonitoring = hltVerticesMonitoring.clone(
TopFolderName = "HLT/Vertexing/hltVerticesPFFilter",
vertexLabel = "hltVerticesPFFilter",
useHPforAlignmentPlots = False
)

pp_on_PbPb_run3.toModify(hltVerticesPFFilterMonitoring,
vertexLabel = cms.InputTag("hltVerticesPFFilterPPOnAA"))

hltVerticesL3PFBjetsMonitoring = hltVerticesMonitoring.clone(
TopFolderName = "HLT/Vertexing/hltVerticesL3PFBjets",
vertexLabel = "hltVerticesL3PFBjets",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@
triggerflag = hltSiPixelPhase1ClustersTriggers,
)

from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
pp_on_PbPb_run3.toModify(hltSiPixelPhase1ClustersAnalyzer,
pixelSrc = "hltSiPixelClustersAfterSplittingPPOnAA",
stripSrc = "hltHITrackingSiStripRawToClustersFacilityFullZeroSuppression")

hltSiPixelPhase1ClustersHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
histograms = hltSiPixelPhase1ClustersConf,
geometry = hltSiPixelPhase1Geometry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@
geometry = hltSiPixelPhase1Geometry
)

from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
pp_on_PbPb_run3.toModify(hltSiPixelPhase1TrackClustersAnalyzer,
clusters = "hltSiPixelClustersAfterSplittingPPOnAA")

hltSiPixelPhase1TrackClustersHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
histograms = hltSiPixelPhase1TrackClustersConf,
geometry = hltSiPixelPhase1Geometry
Expand Down
11 changes: 10 additions & 1 deletion DQMOffline/Trigger/python/SiPixel_OfflineMonitoring_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@
from RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi import *

hltSiPixelClusterShapeCache = siPixelClusterShapeCache.clone(src = 'hltSiPixelClusters')

from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
pp_on_PbPb_run3.toModify(hltSiPixelClusterShapeCache,
src = "hltSiPixelClustersAfterSplittingPPOnAA")

hltrefittedForPixelDQM = refittedForPixelDQM.clone(src ='hltMergedTracks',
TTRHBuilder = 'WithTrackAngle') # no templates at HLT

pp_on_PbPb_run3.toModify(hltrefittedForPixelDQM,
src ='hltMergedTracksPPOnAA')

sipixelMonitorHLTsequence = cms.Sequence(
hltSiPixelClusterShapeCache
+ hltSiPixelPhase1ClustersAnalyzer
+ hltrefittedForPixelDQM
+ hltSiPixelPhase1TrackClustersAnalyzer,
cms.Task(SiPixelTemplateStoreESProducer)
)
)
14 changes: 14 additions & 0 deletions DQMOffline/Trigger/python/SiStrip_OfflineMonitoring_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
ClusterHisto = True,
Mod_On = False
)

from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
pp_on_PbPb_run3.toModify(HLTSiStripMonitorCluster,
ClusterProducerStrip = "hltHITrackingSiStripRawToClustersFacilityFullZeroSuppression",
ClusterProducerPix = "hltSiPixelClustersAfterSplittingPPOnAA")

HLTSiStripMonitorCluster.TH1TotalNumberOfClusters.subdetswitchon = cms.bool(True)
HLTSiStripMonitorCluster.TProfClustersApvCycle.subdetswitchon = cms.bool(False)
HLTSiStripMonitorCluster.TProfTotalNumberOfClusters.subdetswitchon = cms.bool(True)
Expand Down Expand Up @@ -144,6 +150,10 @@
#TTRHBuilder = 'hltESPTTRHBuilderAngleAndTemplate',
TTRHBuilder = 'hltESPTTRHBWithTrackAngle'
)

pp_on_PbPb_run3.toModify(hltTrackRefitterForSiStripMonitorTrack,
src = 'hltMergedTracksPPOnAA')

import DQM.SiStripMonitorTrack.SiStripMonitorTrack_cfi
HLTSiStripMonitorTrack = DQM.SiStripMonitorTrack.SiStripMonitorTrack_cfi.SiStripMonitorTrack.clone(
TrackProducer = 'hltTrackRefitterForSiStripMonitorTrack',
Expand All @@ -154,6 +164,10 @@
TopFolderName = 'HLT/SiStrip',
Mod_On = False
)

pp_on_PbPb_run3.toModify(HLTSiStripMonitorTrack,
Cluster_src = 'hltHITrackingSiStripRawToClustersFacilityFullZeroSuppression')

sistripMonitorHLTsequence = cms.Sequence(
HLTSiStripMonitorCluster
* hltTrackRefitterForSiStripMonitorTrack
Expand Down
11 changes: 11 additions & 0 deletions DQMOffline/Trigger/python/TrackToTrackMonitoring_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
monitoredPrimaryVertices = "hltVerticesPFSelector"
)

from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
pp_on_PbPb_run3.toModify(hltMerged2highPurity,
topDirName = "HLT/Tracking/ValidationWRTOffline/hltMergedPPonAAWrtHighPurity",
monitoredTrack = "hltMergedTracksPPOnAA",
monitoredPrimaryVertices = "hltVerticesPFFilterPPOnAA")

from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(hltMerged2highPurity,
monitoredTrack = cms.InputTag("generalTracks","","HLT"),
Expand All @@ -38,6 +44,11 @@
monitoredPrimaryVertices = "hltVerticesPFSelector"
)

pp_on_PbPb_run3.toModify(hltMerged2highPurityPV,
topDirName = "HLT/Tracking/ValidationWRTOffline/hltMergedPPonAAWrtHighPurityPV",
monitoredTrack = "hltMergedTracksPPOnAA",
monitoredPrimaryVertices = "hltVerticesPFFilterPPOnAA")

from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(hltMerged2highPurityPV,
monitoredTrack = cms.InputTag("generalTracks","","HLT"),
Expand Down
8 changes: 6 additions & 2 deletions DQMOffline/Trigger/python/TrackingMonitoring_Client_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
trackingForElectronsEffFromHitPatternHLT
)



TrackToTrackEfficiencies = DQMEDHarvester("DQMGenericClient",
subDirs = cms.untracked.vstring(
"HLT/Tracking/ValidationWRTOffline/hltMergedWrtHighPurity",
Expand Down Expand Up @@ -65,6 +63,12 @@
),
)

from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
pp_on_PbPb_run3.toModify(TrackToTrackEfficiencies,
subDirs = [
"HLT/Tracking/ValidationWRTOffline/hltMergedPPonAAWrtHighPurity",
"HLT/Tracking/ValidationWRTOffline/hltMergedPPonAAWrtHighPurityPV"])

trackEfficiencyMonitoringClientHLT = cms.Sequence(
TrackToTrackEfficiencies
)
Expand Down
14 changes: 13 additions & 1 deletion DQMOffline/Trigger/python/TrackingMonitoring_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
doEffFromHitPatternVsLUMI = False
)

from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
pp_on_PbPb_run3.toModify(pixelTracksMonitoringHLT,
TrackProducer = 'hltPixelTracksPPOnAA',
allTrackProducer = 'hltPixelTracksPPOnAA')

from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(pixelTracksMonitoringHLT,
TrackProducer = 'hltPhase2PixelTracks',
Expand Down Expand Up @@ -101,7 +106,10 @@
doSIPPlots = cms.bool(True)
)

from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
pp_on_PbPb_run3.toModify(iterHLTTracksMonitoringHLT,
TrackProducer = 'hltMergedTracksPPOnAA',
allTrackProducer = 'hltMergedTracksPPOnAA')

phase2_tracker.toModify(iterHLTTracksMonitoringHLT,
TrackProducer = cms.InputTag("generalTracks","","HLT"),
allTrackProducer = cms.InputTag("generalTracks","","HLT"))
Expand Down Expand Up @@ -148,6 +156,10 @@
doEffFromHitPatternVsLUMI = False
)

pp_on_PbPb_run3.toModify(doubletRecoveryHPTracksMonitoringHLT,
TrackProducer = 'hltDoubletRecoveryPFlowTrackSelectionHighPurityPPOnAA',
allTrackProducer = 'hltDoubletRecoveryPFlowTrackSelectionHighPurityPPOnAA')

############
#### EGM tracks
# GSF: hltEgammaGsfTracks
Expand Down

0 comments on commit d13c163

Please sign in to comment.