Skip to content

Commit f768c44

Browse files
[PWGLF] Add configurable for old covariance matrix calculation (#17884)
1 parent e867377 commit f768c44

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

PWGLF/Utils/strangenessBuilderHelper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ class strangenessBuilderHelper
253253
fitter.setMaxChi2(1e9);
254254
fitter.setUseAbsDCA(true);
255255
fitter.setWeightedFinalPCA(false);
256+
fitter.setOldMode(true); // enable old convariance matrix calculation until this has been fully tested
256257

257258
v0selections.minCrossedRows = -1;
258259
v0selections.dcanegtopv = -1.0f;

PWGLF/Utils/strangenessBuilderModule.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ struct coreConfigurables : o2::framework::ConfigurableGroup {
334334

335335
// test the possibility of refitting with material corrections (DCA Fitter option)
336336
o2::framework::Configurable<bool> refitWithMaterialCorrection{"refitWithMaterialCorrection", false, "do refit after material corrections were applied"};
337+
338+
// enable old convariance matrix calculation until this has been fully tested
339+
o2::framework::Configurable<bool> useOldModeDCAFitter{"useOldModeDCAFitter", true, "Use old mode for DCA fitter?"};
337340
};
338341

339342
// strangenessBuilder: V0 building options
@@ -824,6 +827,9 @@ class BuilderModule
824827
// Set option to refit with material corrections
825828
straHelper.fitter.setRefitWithMatCorr(baseOpts.refitWithMaterialCorrection.value);
826829

830+
// set option to enabled the old mode
831+
straHelper.fitter.setOldMode(baseOpts.useOldModeDCAFitter.value);
832+
827833
// Initialise the RCTFlagsChecker
828834
if (eventSelectOpts.cfgApplyRCTrequirement) {
829835
rctFlagsChecker.init(eventSelectOpts.cfgRCTLabel.value, eventSelectOpts.cfgCheckZDC, eventSelectOpts.cfgTreatLimitedAcceptanceAsBad);

0 commit comments

Comments
 (0)