@@ -77,6 +77,10 @@ class TOFDPLDigitizerTask : public o2::base::BaseDPLDigitizer
7777 mUpdateCCDB = true ;
7878 return ;
7979 }
80+ if (matcher == ConcreteDataMatcher (" TOF" , " DiagnosticDRM" , 0 )) {
81+ mUpdateCCDB = true ;
82+ return ;
83+ }
8084 if (matcher == ConcreteDataMatcher (" TOF" , " LHCphaseCal" , 0 )) {
8185 mUpdateCCDB = true ;
8286 return ;
@@ -127,6 +131,7 @@ class TOFDPLDigitizerTask : public o2::base::BaseDPLDigitizer
127131 const auto lhcPhaseIn = pc.inputs ().get <o2::dataformats::CalibLHCphaseTOF*>(" tofccdbLHCphase" );
128132 const auto channelCalibIn = pc.inputs ().get <o2::dataformats::CalibTimeSlewingParamTOF*>(" tofccdbChannelCalib" );
129133 const auto diagnosticIn = pc.inputs ().get <o2::tof::Diagnostic*>(" tofccdbDia" );
134+ const auto diagnosticDRM = pc.inputs ().get <o2::tof::Diagnostic*>(" tofccdbDrm" );
130135 const auto statusIn = pc.inputs ().get <o2::tof::TOFFEElightInfo*>(" tofccdbStatus" );
131136 const auto tofParams = pc.inputs ().get <o2::tof::ParameterCollection*>(" tofccdbParams" );
132137
@@ -165,10 +170,12 @@ class TOFDPLDigitizerTask : public o2::base::BaseDPLDigitizer
165170 o2::dataformats::CalibLHCphaseTOF* lhcPhase = new o2::dataformats::CalibLHCphaseTOF (std::move (*lhcPhaseIn));
166171 o2::dataformats::CalibTimeSlewingParamTOF* channelCalib = new o2::dataformats::CalibTimeSlewingParamTOF (std::move (*channelCalibIn));
167172 o2::tof::Diagnostic* diagnostic = new o2::tof::Diagnostic (std::move (*diagnosticIn));
173+ o2::tof::Diagnostic* diagnosticDRMerr = new o2::tof::Diagnostic (std::move (*diagnosticDRM));
168174 o2::tof::TOFFEElightInfo* status = new o2::tof::TOFFEElightInfo (std::move (*statusIn));
169175
170- mCalibApi = new o2::tof::CalibTOFapi (long (0 ), lhcPhase, channelCalib, diagnostic);
176+ mCalibApi = new o2::tof::CalibTOFapi (long (0 ), lhcPhase, channelCalib, diagnostic, diagnosticDRMerr );
171177 mCalibApi ->loadDiagnosticFrequencies ();
178+ mCalibApi ->loadDiagnosticDRMFrequencies ();
172179 mCalibApi ->loadActiveMap (status);
173180 mUpdateCCDB = false ;
174181 } else { // update if necessary
@@ -178,9 +185,11 @@ class TOFDPLDigitizerTask : public o2::base::BaseDPLDigitizer
178185 o2::dataformats::CalibLHCphaseTOF* lhcPhase = new o2::dataformats::CalibLHCphaseTOF (*lhcPhaseIn);
179186 o2::dataformats::CalibTimeSlewingParamTOF* channelCalib = new o2::dataformats::CalibTimeSlewingParamTOF (*channelCalibIn);
180187 o2::tof::Diagnostic* diagnostic = new o2::tof::Diagnostic (std::move (*diagnosticIn));
188+ o2::tof::Diagnostic* diagnosticDRMerr = new o2::tof::Diagnostic (std::move (*diagnosticDRM));
181189 o2::tof::TOFFEElightInfo* status = new o2::tof::TOFFEElightInfo (std::move (*statusIn));
182190 mCalibApi = new o2::tof::CalibTOFapi (long (0 ), lhcPhase, channelCalib, diagnostic);
183191 mCalibApi ->loadDiagnosticFrequencies ();
192+ mCalibApi ->loadDiagnosticDRMFrequencies ();
184193 mCalibApi ->loadActiveMap (status);
185194 mUpdateCCDB = false ;
186195 } else {
@@ -205,6 +214,7 @@ class TOFDPLDigitizerTask : public o2::base::BaseDPLDigitizer
205214 if (mUseCCDB ) {
206215 mCalibApi ->setURL (mCCDBurl );
207216 mCalibApi ->readDiagnosticFrequencies ();
217+ mCalibApi ->readDiagnosticDRMFrequencies ();
208218 mCalibApi ->readLHCphase ();
209219 mCalibApi ->readActiveMap ();
210220 mCalibApi ->readTimeSlewingParam ();
@@ -319,6 +329,7 @@ DataProcessorSpec getTOFDigitizerSpec(int channel, bool useCCDB, bool mctruth, s
319329 if (useCCDB) {
320330 inputs.emplace_back (" tofccdbStatus" , " TOF" , " StatusTOF" , 0 , Lifetime::Condition, ccdbParamSpec (" TOF/Calib/FEELIGHT" ));
321331 inputs.emplace_back (" tofccdbDia" , " TOF" , " DiagnosticCal" , 0 , Lifetime::Condition, ccdbParamSpec (" TOF/Calib/Diagnostic" ));
332+ inputs.emplace_back (" tofccdbDrm" , " TOF" , " DiagnosticDRM" , 0 , Lifetime::Condition, ccdbParamSpec (" TOF/Calib/DRMerrors" ));
322333 inputs.emplace_back (" tofccdbLHCphase" , " TOF" , " LHCphaseCal" , 0 , Lifetime::Condition, ccdbParamSpec (" TOF/Calib/LHCphase" ));
323334 inputs.emplace_back (" tofccdbChannelCalib" , " TOF" , " ChannelCalibCal" , 0 , Lifetime::Condition, ccdbParamSpec (" TOF/Calib/ChannelCalib" ));
324335 inputs.emplace_back (" tofccdbParams" , " TOF" , " parameters" , 0 , Lifetime::Condition, ccdbParamSpec (" TOF/Calib/Params" ));
0 commit comments