@@ -113,7 +113,7 @@ class icarus::OpHitRecalibrator : public art::SharedProducer
113113
114114 // / Pointers to the online corrections services
115115 icarusDB::PMTTimingCorrections const &fPMTTimingCorrectionsService ;
116- icarusDB::PhotonCalibratorFromDB const &fPhotonCalibratorService ;
116+ calib::IPhotonCalibrator const &fPhotonCalibratorService ;
117117
118118 // / Pointer to the provider for the old pmt corrections
119119 std::unique_ptr<icarusDB::PMTTimingCorrectionsProvider> fOldTimingProvider ;
@@ -129,7 +129,7 @@ icarus::OpHitRecalibrator::OpHitRecalibrator(fhicl::ParameterSet const &config,
129129 fSPEArea {config.get <double >(" SPEArea" , -1 .)},
130130 fVerbose {config.get <bool >(" Verbose" , false )},
131131 fPMTTimingCorrectionsService {*(lar::providerFrom<icarusDB::IPMTTimingCorrectionService const >())},
132- fPhotonCalibratorService {*(lar::providerFrom<icarusDB::ICARUSPhotonCalibratorServiceFromDB const >())},
132+ fPhotonCalibratorService {*(lar::providerFrom<calib::IPhotonCalibratorService const >())},
133133 fOldTimingProvider {std::make_unique<icarusDB::PMTTimingCorrectionsProvider>(config.get <fhicl::ParameterSet>(" OldTimingDBTags" ))}
134134{
135135 async<art::InEvent>();
@@ -166,8 +166,9 @@ icarus::OpHitRecalibrator::OpHitRecalibrator(fhicl::ParameterSet const &config,
166166
167167 if (fRecalibratePE && fUseGainDatabase )
168168 {
169- mf::LogInfo (" OpHitRecalibrator" ) << " Re-calibration of PE (gain) enabled:\n "
170- << " AreaTag: " << fPhotonCalibratorService .getAreaDatabaseTag ();
169+ art::ServiceHandle<calib::ICARUSPhotonCalibratorServiceFromDB const > serv; // really sorry about this
170+ mf::LogInfo (" OpHitRecalibrator" ) << " Re-calibration of PE (gain) from database enabled:\n "
171+ << " AreaTag: " << serv->getAreaDatabaseTag ();
171172 }
172173
173174 // Consumes
0 commit comments