Skip to content

Commit a2ed5a1

Browse files
committed
revert Configurables type change
1 parent 52bc8c8 commit a2ed5a1

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ struct HfCandidateCreator3Prong {
111111
Configurable<bool> propagateToPCA{"propagateToPCA", true, "create tracks version propagated to PCA"};
112112
Configurable<bool> useAbsDCA{"useAbsDCA", false, "Minimise abs. distance rather than chi2"};
113113
Configurable<bool> useWeightedFinalPCA{"useWeightedFinalPCA", false, "Recalculate vertex position using track covariances, effective only if useAbsDCA is true"};
114-
Configurable<float> maxR{"maxR", 200., "reject PCA's above this radius"};
115-
Configurable<float> maxDZIni{"maxDZIni", 4., "reject (if>0) PCA candidate if tracks DZ exceeds threshold"};
116-
Configurable<float> minParamChange{"minParamChange", 1.e-3, "stop iterations if largest change of any X is smaller than this"};
117-
Configurable<float> minRelChi2Change{"minRelChi2Change", 0.9, "stop iterations is chi2/chi2old > this"};
114+
Configurable<double> maxR{"maxR", 200., "reject PCA's above this radius"};
115+
Configurable<double> maxDZIni{"maxDZIni", 4., "reject (if>0) PCA candidate if tracks DZ exceeds threshold"};
116+
Configurable<double> minParamChange{"minParamChange", 1.e-3, "stop iterations if largest change of any X is smaller than this"};
117+
Configurable<double> minRelChi2Change{"minRelChi2Change", 0.9, "stop iterations is chi2/chi2old > this"};
118118
Configurable<bool> fillHistograms{"fillHistograms", true, "do validation plots"};
119119
// magnetic field setting from CCDB
120120
Configurable<bool> isRun2{"isRun2", false, "enable Run 2 or Run 3 GRP objects for magnetic field"};
@@ -226,10 +226,10 @@ struct HfCandidateCreator3Prong {
226226
// Configure DCAFitterN
227227
// df.setBz(bz);
228228
df.setPropagateToPCA(propagateToPCA);
229-
df.setMaxR(maxR);
230-
df.setMaxDZIni(maxDZIni);
231-
df.setMinParamChange(minParamChange);
232-
df.setMinRelChi2Change(minRelChi2Change);
229+
df.setMaxR(static_cast<float>(maxR));
230+
df.setMaxDZIni(static_cast<float>(maxDZIni));
231+
df.setMinParamChange(static_cast<float>(minParamChange));
232+
df.setMinRelChi2Change(static_cast<float>(minRelChi2Change));
233233
df.setUseAbsDCA(useAbsDCA);
234234
df.setWeightedFinalPCA(useWeightedFinalPCA);
235235

PWGHF/TableProducer/candidateSelectorLc.cxx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@ struct HfCandidateSelectorLc {
6262
Configurable<double> ptCandMax{"ptCandMax", 36., "Upper bound of candidate pT"};
6363
Configurable<bool> usePid{"usePid", true, "Bool to use or not the PID based on nSigma cut at filtering level"};
6464
// TPC PID
65-
Configurable<float> ptPidTpcMin{"ptPidTpcMin", 0.1, "Lower bound of track pT for TPC PID"};
66-
Configurable<float> ptPidTpcMax{"ptPidTpcMax", 1., "Upper bound of track pT for TPC PID"};
67-
Configurable<float> nSigmaTpcMax{"nSigmaTpcMax", 3., "Nsigma cut on TPC only"};
68-
Configurable<float> nSigmaTpcCombinedMax{"nSigmaTpcCombinedMax", 5., "Nsigma cut on TPC combined with TOF"};
65+
Configurable<double> ptPidTpcMin{"ptPidTpcMin", 0.1, "Lower bound of track pT for TPC PID"};
66+
Configurable<double> ptPidTpcMax{"ptPidTpcMax", 1., "Upper bound of track pT for TPC PID"};
67+
Configurable<double> nSigmaTpcMax{"nSigmaTpcMax", 3., "Nsigma cut on TPC only"};
68+
Configurable<double> nSigmaTpcCombinedMax{"nSigmaTpcCombinedMax", 5., "Nsigma cut on TPC combined with TOF"};
6969
// TOF PID
70-
Configurable<float> ptPidTofMin{"ptPidTofMin", 0.5, "Lower bound of track pT for TOF PID"};
71-
Configurable<float> ptPidTofMax{"ptPidTofMax", 2.5, "Upper bound of track pT for TOF PID"};
72-
Configurable<float> nSigmaTofMax{"nSigmaTofMax", 3., "Nsigma cut on TOF only"};
73-
Configurable<float> nSigmaTofCombinedMax{"nSigmaTofCombinedMax", 5., "Nsigma cut on TOF combined with TPC"};
70+
Configurable<double> ptPidTofMin{"ptPidTofMin", 0.5, "Lower bound of track pT for TOF PID"};
71+
Configurable<double> ptPidTofMax{"ptPidTofMax", 2.5, "Upper bound of track pT for TOF PID"};
72+
Configurable<double> nSigmaTofMax{"nSigmaTofMax", 3., "Nsigma cut on TOF only"};
73+
Configurable<double> nSigmaTofCombinedMax{"nSigmaTofCombinedMax", 5., "Nsigma cut on TOF combined with TPC"};
7474
// Bayesian PID
75-
Configurable<float> ptPidBayesMin{"ptPidBayesMin", 0., "Lower bound of track pT for Bayesian PID"};
76-
Configurable<float> ptPidBayesMax{"ptPidBayesMax", 100, "Upper bound of track pT for Bayesian PID"};
75+
Configurable<double> ptPidBayesMin{"ptPidBayesMin", 0., "Lower bound of track pT for Bayesian PID"};
76+
Configurable<double> ptPidBayesMax{"ptPidBayesMax", 100, "Upper bound of track pT for Bayesian PID"};
7777
// Combined PID options
7878
Configurable<bool> usePidTpcAndTof{"usePidTpcAndTof", false, "Bool to decide how to combine TPC and TOF PID: true = both (if present, only one otherwise); false = one is enough"};
7979
// TPC quality track cuts
@@ -133,13 +133,13 @@ struct HfCandidateSelectorLc {
133133
LOGP(fatal, "One and only one process function must be enabled at a time.");
134134
}
135135

136-
selectorPion.setRangePtTpc(ptPidTpcMin, ptPidTpcMax);
137-
selectorPion.setRangeNSigmaTpc(-nSigmaTpcMax, nSigmaTpcMax);
138-
selectorPion.setRangeNSigmaTpcCondTof(-nSigmaTpcCombinedMax, nSigmaTpcCombinedMax);
139-
selectorPion.setRangePtTof(ptPidTofMin, ptPidTofMax);
140-
selectorPion.setRangeNSigmaTof(-nSigmaTofMax, nSigmaTofMax);
141-
selectorPion.setRangeNSigmaTofCondTpc(-nSigmaTofCombinedMax, nSigmaTofCombinedMax);
142-
selectorPion.setRangePtBayes(ptPidBayesMin, ptPidBayesMax);
136+
selectorPion.setRangePtTpc(static_cast<float>(ptPidTpcMin), static_cast<float>(ptPidTpcMax));
137+
selectorPion.setRangeNSigmaTpc(-static_cast<float>(nSigmaTpcMax), static_cast<float>(nSigmaTpcMax));
138+
selectorPion.setRangeNSigmaTpcCondTof(-static_cast<float>(nSigmaTpcCombinedMax), static_cast<float>(nSigmaTpcCombinedMax));
139+
selectorPion.setRangePtTof(static_cast<float>(ptPidTofMin), static_cast<float>(ptPidTofMax));
140+
selectorPion.setRangeNSigmaTof(-static_cast<float>(nSigmaTofMax), static_cast<float>(nSigmaTofMax));
141+
selectorPion.setRangeNSigmaTofCondTpc(-static_cast<float>(nSigmaTofCombinedMax), static_cast<float>(nSigmaTofCombinedMax));
142+
selectorPion.setRangePtBayes(static_cast<float>(ptPidBayesMin), static_cast<float>(ptPidBayesMax));
143143
selectorKaon = selectorPion;
144144
selectorProton = selectorPion;
145145

0 commit comments

Comments
 (0)