Skip to content

TPC: move disable-IDC-scalers to CorrectionMapsOptions - #15754

Open
matthias-kleiner wants to merge 2 commits into
AliceO2Group:devfrom
matthias-kleiner:tpc-disable-idc-scalers-correctionmapsoptions
Open

TPC: move disable-IDC-scalers to CorrectionMapsOptions#15754
matthias-kleiner wants to merge 2 commits into
AliceO2Group:devfrom
matthias-kleiner:tpc-disable-idc-scalers-correctionmapsoptions

Conversation

@matthias-kleiner

Copy link
Copy Markdown
Contributor

No description provided.

const auto enableMShape = configcontext.options().get<bool>("enable-M-shape-correction");
const auto enableIDCs = !configcontext.options().get<bool>("disable-IDC-scalers");
specs.emplace_back(o2::tpc::getTPCScalerSpec(enableIDCs, enableMShape, sclOpt));
specs.emplace_back(o2::tpc::getTPCScalerSpec(sclOpt.enableIDCScalers, sclOpt.enableMShapeCorrection, sclOpt));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Any reason for keeping enableIDCScalers and enableMShapeCorrection as separate arguments of getTPCScalerSpec, instead of calling directly getTPCScalerSpec(sclOpt) ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are right, so in principle we could just automatically disable the IDCs like we do already in other places like Detectors/Align/Workflow/src/barrel-alignment-workflow.cxx in case we dont use the IDCs for scaling or? This should make it alot easier I assume

Unify getTPCScalerSpec() across all 13 call sites to take just
CorrectionMapsGloOpts and derive enableIDCs/enableMShape internally,
instead of passing them as separate bools. This removes the
disable-IDC-scalers CLI flag and enableIDCScalers field added in the
previous commit: tpc-scaler.cxx/tpc-refitter-workflow.cxx now derive
enableIDCs the same way as every other caller already did
(sclOpts.lumiType == LumiScaleType::TPCScaler), instead of a separate
manual override.

dpl-workflow.sh's parse_TPC_CORR_SCALING() previously hand-replicated
this exact lumiType==TPCScaler logic externally (IGNOREIDC) just to
synthesize --disable-IDC-scalers for o2-tpc-scaler-workflow; that
workaround is now unnecessary and removed.

@shahor02 shahor02 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants