Skip to content

Commit 54d78f2

Browse files
mcoquet642ehellbar
authored andcommitted
Updating alpide parameters also when no clusterization
1 parent 650dc97 commit 54d78f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Detectors/ITSMFT/common/workflow/src/STFDecoderSpec.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,18 +300,18 @@ void STFDecoder<Mapping>::updateTimeDependentParams(ProcessingContext& pc)
300300
o2::base::GRPGeomHelper::instance().checkUpdates(pc);
301301
if (pc.services().get<o2::framework::TimingInfo>().globalRunNumberChanged) { // this params need to be queried only in the beginning of the run
302302
pc.inputs().get<o2::itsmft::NoiseMap*>("noise");
303+
pc.inputs().get<o2::itsmft::DPLAlpideParam<Mapping::getDetID()>*>("alppar");
304+
const auto& alpParams = DPLAlpideParam<Mapping::getDetID()>::Instance();
305+
alpParams.printKeyValues();
303306
if (mDoClusters) {
304307
mClusterer->setContinuousReadOut(o2::base::GRPGeomHelper::instance().getGRPECS()->isDetContinuousReadOut(Mapping::getDetID()));
305308
pc.inputs().get<o2::itsmft::TopologyDictionary*>("cldict");
306-
pc.inputs().get<o2::itsmft::DPLAlpideParam<Mapping::getDetID()>*>("alppar");
307309
pc.inputs().get<o2::itsmft::ClustererParam<Mapping::getDetID()>*>("cluspar");
308310
// settings for the fired pixel overflow masking
309-
const auto& alpParams = DPLAlpideParam<Mapping::getDetID()>::Instance();
310311
const auto& clParams = ClustererParam<Mapping::getDetID()>::Instance();
311312
if (clParams.maxBCDiffToMaskBias > 0 && clParams.maxBCDiffToSquashBias > 0) {
312313
LOGP(fatal, "maxBCDiffToMaskBias = {} and maxBCDiffToMaskBias = {} cannot be set at the same time. Either set masking or squashing with a BCDiff > 0", clParams.maxBCDiffToMaskBias, clParams.maxBCDiffToSquashBias);
313314
}
314-
alpParams.printKeyValues();
315315
clParams.printKeyValues();
316316
auto nbc = clParams.maxBCDiffToMaskBias;
317317
nbc += mClusterer->isContinuousReadOut() ? alpParams.roFrameLengthInBC : (alpParams.roFrameLengthTrig / o2::constants::lhc::LHCBunchSpacingNS);

0 commit comments

Comments
 (0)