Skip to content

Commit

Permalink
Merge pull request #40875 from arossi83/HLTPixelTrack130
Browse files Browse the repository at this point in the history
Fix Tracks related Pixel quantities at HLT DQM (backport)
  • Loading branch information
cmsbuild authored Mar 1, 2023
2 parents 6f0d518 + d943f6f commit 9c46630
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
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

0 comments on commit 9c46630

Please sign in to comment.