Skip to content
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

Fix Tracks related Pixel quantities at HLT DQM (backport) #40875

Merged
merged 5 commits into from
Mar 1, 2023
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 @@ -46,6 +46,8 @@
)
#SiStrip Local Reco
process.load("CalibTracker.SiStripCommon.TkDetMapESProducer_cfi")
#Track refitters
process.load("RecoTracker.TrackProducer.TrackRefitters_cff")

#---- for P5 (online) DB access
process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
SiPixelPhase1TrackResidualsAnalyzer = DQMEDAnalyzer('SiPixelPhase1TrackResiduals',
trajectoryInput = cms.string("generalTracks"),
Tracks = cms.InputTag("generalTracks"),
trajectoryInput = cms.string("refittedForPixelDQM"),
Tracks = cms.InputTag("refittedForPixelDQM"),
vertices = cms.InputTag("offlinePrimaryVertices"),
histograms = SiPixelPhase1TrackResidualsConf,
geometry = SiPixelPhase1Geometry,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
hltSiPixelPhase1TrackClustersAnalyzer = DQMEDAnalyzer('SiPixelPhase1TrackClusters',
VertexCut = cms.untracked.bool(False),
clusters = cms.InputTag("hltSiPixelClusters"),
tracks = cms.InputTag("hltMergedTracks"), #hltIter2Merged"
tracks = cms.InputTag("hltrefittedForPixelDQM"),
clusterShapeCache = cms.InputTag("hltSiPixelClusterShapeCache"),
vertices = cms.InputTag(""),
histograms = hltSiPixelPhase1TrackClustersConf,
Expand Down
13 changes: 11 additions & 2 deletions DQMOffline/Trigger/python/SiPixel_OfflineMonitoring_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@

from DQMOffline.Trigger.SiPixel_OfflineMonitoring_Cluster_cff import *
from DQMOffline.Trigger.SiPixel_OfflineMonitoring_TrackCluster_cff import *
from RecoPixelVertexing.PixelLowPtUtilities.siPixelClusterShapeCache_cfi import *
from DQM.SiPixelMonitorTrack.RefitterForPixelDQM import *

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


sipixelMonitorHLTsequence = cms.Sequence(
hltSiPixelPhase1ClustersAnalyzer
#+ hltSiPixelPhase1TrackClustersAnalyzer
hltSiPixelClusterShapeCache
+ hltSiPixelPhase1ClustersAnalyzer
+ hltrefittedForPixelDQM
+ hltSiPixelPhase1TrackClustersAnalyzer
)
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ void SiPixelClusterShapeCacheProducer::produce(edm::StreamID, edm::Event& iEvent
edm::Handle<InputCollection> input;
iEvent.getByToken(token_, input);

if (!input.isValid()) {
edm::LogError("siPixelClusterShapeCache") << "input pixel cluster collection is not valid!";
auto output = std::make_unique<SiPixelClusterShapeCache>();
iEvent.put(std::move(output));
return;
}

const auto& geom = &iSetup.getData(geomToken_);

auto output = std::make_unique<SiPixelClusterShapeCache>(input);
Expand Down