Skip to content

Commit a1d896b

Browse files
committed
service template type should not be a pointer. Service was not being found due to that.
1 parent 92333e3 commit a1d896b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

HLTrigger/JSONMonitoring/plugins/HLTriggerJSONMonitoring.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,8 @@ void HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(edm::LuminosityBlo
430430
unsigned int run = lumi.run();
431431

432432
bool writeFiles = true;
433-
if (edm::Service<evf::FastMonitoringService*>().isAvailable()) {
434-
evf::FastMonitoringService* fms =
435-
(evf::FastMonitoringService*)(edm::Service<evf::FastMonitoringService*>().operator->());
436-
if (fms)
437-
writeFiles = fms->shouldWriteFiles(ls);
433+
if (edm::Service<evf::FastMonitoringService>().isAvailable()) {
434+
writeFiles = edm::Service<evf::FastMonitoringService>()->shouldWriteFiles(ls);
438435
}
439436
if (not writeFiles)
440437
return;

HLTrigger/JSONMonitoring/plugins/L1TriggerJSONMonitoring.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,7 @@ void L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(edm::LuminosityBlo
367367

368368
bool writeFiles = true;
369369
if (edm::Service<evf::FastMonitoringService>().isAvailable()) {
370-
evf::FastMonitoringService* fms =
371-
(evf::FastMonitoringService*)(edm::Service<evf::FastMonitoringService>().operator->());
372-
if (fms)
373-
writeFiles = fms->shouldWriteFiles(ls);
370+
writeFiles = edm::Service<evf::FastMonitoringService>()->shouldWriteFiles(ls);
374371
}
375372
if (not writeFiles)
376373
return;

0 commit comments

Comments
 (0)