Skip to content

Commit d3c9ed3

Browse files
dstoccoaphecetche
authored andcommitted
Remove unused options for MID channel calibrator device
1 parent 375e98d commit d3c9ed3

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Detectors/MUON/MID/Workflow/src/ChannelCalibratorSpec.cxx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ class ChannelCalibratorDeviceDPL
5959
o2::base::GRPGeomHelper::instance().setRequest(mCCDBRequest);
6060
mThreshold = ic.options().get<double>("mid-mask-threshold");
6161

62-
auto slotL = ic.options().get<uint32_t>("tf-per-slot");
63-
auto delay = ic.options().get<uint32_t>("max-delay");
64-
65-
mCalibrator.setSlotLength(slotL);
66-
mCalibrator.setMaxSlotsDelay(delay);
62+
mCalibrator.setSlotLength(calibration::INFINITE_TF);
6763
mCalibrator.setUpdateAtTheEndOfRunOnly();
6864
}
6965

@@ -101,7 +97,7 @@ class ChannelCalibratorDeviceDPL
10197
}
10298

10399
private:
104-
ChannelCalibrator mCalibrator{}; ///< Calibrator
100+
ChannelCalibrator mCalibrator{}; ///< Calibrator
105101
std::shared_ptr<o2::base::GRPGeomRequest> mCCDBRequest;
106102
std::vector<ColumnData> mRefMasks{}; ///< Reference masks
107103
double mThreshold{0.9}; ///< Occupancy threshold for producing a mask
@@ -157,10 +153,7 @@ of::DataProcessorSpec getChannelCalibratorSpec(const FEEIdConfig& feeIdConfig, c
157153
{inputSpecs},
158154
{outputSpecs},
159155
of::AlgorithmSpec{of::adaptFromTask<o2::mid::ChannelCalibratorDeviceDPL>(feeIdConfig, crateMasks, ccdbRequest)},
160-
of::Options{
161-
{"mid-mask-threshold", of::VariantType::Double, 0.9, {"Tolerated occupancy before producing a map"}},
162-
{"tf-per-slot", of::VariantType::UInt32, ChannelCalibrator::INFINITE_TF, {"number of TFs per calibration time slot"}},
163-
{"max-delay", of::VariantType::UInt32, 0u, {"number of slots in past to consider"}}}};
156+
of::Options{{"mid-mask-threshold", of::VariantType::Double, 0.9, {"Tolerated occupancy before producing a map"}}}};
164157
}
165158
} // namespace mid
166159
} // namespace o2

0 commit comments

Comments
 (0)