Skip to content

Commit 159128b

Browse files
mfasDashahor02
authored andcommitted
[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.
1 parent 4f08f5a commit 159128b

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

Detectors/EMCAL/calibration/testWorkflow/EMCALChannelCalibratorSpec.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,13 @@ DataProcessorSpec getEMCALChannelCalibDeviceSpec(const bool loadCalibParamsFromC
233233
using EMCALCalibParams = o2::emcal::EMCALCalibParams;
234234

235235
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";
240243
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBPayload, "EMC_BADCHANNELS"}, Lifetime::Sporadic); // This needs to match with the output!
241244
outputs.emplace_back(ConcreteDataTypeMatcher{o2::calibration::Utils::gDataOriginCDBWrapper, "EMC_BADCHANNELS"}, Lifetime::Sporadic); // This needs to match with the output!
242245
}
@@ -256,7 +259,7 @@ DataProcessorSpec getEMCALChannelCalibDeviceSpec(const bool loadCalibParamsFromC
256259
o2::base::GRPGeomRequest::None, // geometry
257260
inputs);
258261
return DataProcessorSpec{
259-
"calib-emcalchannel-calibration",
262+
processorName,
260263
inputs,
261264
outputs,
262265
AlgorithmSpec{adaptFromTask<device>(ccdbRequest, loadCalibParamsFromCCDB)},

0 commit comments

Comments
 (0)