You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[EMCAL-786, EMCAL-565, EMCAL-566] Different spec names for Bad Channel Calib and Time Calib
Define differnet names for the EMCALChannelCalibratorSpec
depending on what calibration is running.
Needed in order to run the two calibrations
in one workflow at the same time.
using EMCALCalibParams = o2::emcal::EMCALCalibParams;
234
234
235
235
std::vector<OutputSpec> outputs;
236
-
if (EMCALCalibParams::Instance().calibType.find("time") != std::string::npos) { // time calibration
237
-
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBPayload, "EMC_TIMECALIB"}, Lifetime::Sporadic); // This needs to match with the output!
238
-
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBWrapper, "EMC_TIMECALIB"}, Lifetime::Sporadic); // This needs to match with the output!
239
-
} else { // bad channel calibration
236
+
std::string processorName;
237
+
if (EMCALCalibParams::Instance().calibType.find("time") != std::string::npos) { // time calibration
238
+
processorName = "calib-emcalchannel-time";
239
+
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBPayload, "EMC_TIMECALIB"}, Lifetime::Sporadic); // This needs to match with the output!
240
+
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBWrapper, "EMC_TIMECALIB"}, Lifetime::Sporadic); // This needs to match with the output!
241
+
} else { // bad channel calibration
242
+
processorName = "calib-emcalchannel-badchannel";
240
243
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBPayload, "EMC_BADCHANNELS"}, Lifetime::Sporadic); // This needs to match with the output!
241
244
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBWrapper, "EMC_BADCHANNELS"}, Lifetime::Sporadic); // This needs to match with the output!
0 commit comments