Skip to content

Commit 1560208

Browse files
author
Alessandro Rossi
committed
Modification to protect the process when some collection are not available
1 parent 6804460 commit 1560208

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

DQM/Integration/python/clients/hlt_dqm_sourceclient-live_cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
)
4747
#SiStrip Local Reco
4848
process.load("CalibTracker.SiStripCommon.TkDetMapESProducer_cfi")
49-
#SiPixelTemplate
50-
process.load("CalibTracker.SiPixelESProducers.SiPixelTemplateDBObjectESProducer_cfi")
49+
#Track refitters
50+
process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
5151

5252
#---- for P5 (online) DB access
5353
process.load("DQM.Integration.config.FrontierCondition_GT_cfi")

DQMOffline/Trigger/python/SiPixel_OfflineMonitoring_cff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from DQM.SiPixelMonitorTrack.RefitterForPixelDQM import *
77

88
hltSiPixelClusterShapeCache = siPixelClusterShapeCache.clone(src = 'hltSiPixelClusters')
9-
hltrefittedForPixelDQM = refittedForPixelDQM.clone(src ='hltMergedTracks')
10-
9+
hltrefittedForPixelDQM = refittedForPixelDQM.clone(src ='hltMergedTracks',
10+
TTRHBuilder = cms.string('WithTrackAngle')) # no templates at HLT
1111
sipixelMonitorHLTsequence = cms.Sequence(
1212
hltSiPixelClusterShapeCache
1313
+ hltSiPixelPhase1ClustersAnalyzer

RecoPixelVertexing/PixelLowPtUtilities/plugins/SiPixelClusterShapeCacheProducer.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ void SiPixelClusterShapeCacheProducer::produce(edm::StreamID, edm::Event& iEvent
6161
edm::Handle<InputCollection> input;
6262
iEvent.getByToken(token_, input);
6363

64+
if (!input.isValid()) {
65+
edm::LogError("siPixelClusterShapeCache") << "input pixel cluster collection is not valid!";
66+
auto output = std::make_unique<SiPixelClusterShapeCache>();
67+
iEvent.put(std::move(output));
68+
return;
69+
}
70+
6471
const auto& geom = &iSetup.getData(geomToken_);
6572

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

0 commit comments

Comments
 (0)