Skip to content

Commit

Permalink
service template type should not be a pointer. Service was not being …
Browse files Browse the repository at this point in the history
…found due to that.
  • Loading branch information
smorovic committed Nov 22, 2024
1 parent 92333e3 commit a1d896b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions HLTrigger/JSONMonitoring/plugins/HLTriggerJSONMonitoring.cc
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,8 @@ void HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(edm::LuminosityBlo
unsigned int run = lumi.run();

bool writeFiles = true;
if (edm::Service<evf::FastMonitoringService*>().isAvailable()) {
evf::FastMonitoringService* fms =
(evf::FastMonitoringService*)(edm::Service<evf::FastMonitoringService*>().operator->());
if (fms)
writeFiles = fms->shouldWriteFiles(ls);
if (edm::Service<evf::FastMonitoringService>().isAvailable()) {
writeFiles = edm::Service<evf::FastMonitoringService>()->shouldWriteFiles(ls);
}
if (not writeFiles)
return;
Expand Down
5 changes: 1 addition & 4 deletions HLTrigger/JSONMonitoring/plugins/L1TriggerJSONMonitoring.cc
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,7 @@ void L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(edm::LuminosityBlo

bool writeFiles = true;
if (edm::Service<evf::FastMonitoringService>().isAvailable()) {
evf::FastMonitoringService* fms =
(evf::FastMonitoringService*)(edm::Service<evf::FastMonitoringService>().operator->());
if (fms)
writeFiles = fms->shouldWriteFiles(ls);
writeFiles = edm::Service<evf::FastMonitoringService>()->shouldWriteFiles(ls);
}
if (not writeFiles)
return;
Expand Down

0 comments on commit a1d896b

Please sign in to comment.