Skip to content

Commit e184dc0

Browse files
committed
Use bool properly
1 parent 344ce0d commit e184dc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@ struct HfTrackIndexSkimCreator {
22962296
pvCoord2Prong[2] = pvRefitCoord2Prong[2];
22972297
}
22982298
applySelection2Prong(pVecCandProng2, secondaryVertex2, pvCoord2Prong, cutStatus2Prong, isSelected2ProngCand);
2299-
if (is2ProngCandidateGoodFor3Prong && config.do3Prong == 1) {
2299+
if (is2ProngCandidateGoodFor3Prong && config.do3Prong) {
23002300
is2ProngCandidateGoodFor3Prong = isTwoTrackVertexSelectedFor3Prongs(secondaryVertex2, pvCoord2Prong, df2);
23012301
}
23022302

@@ -2378,7 +2378,7 @@ struct HfTrackIndexSkimCreator {
23782378
}
23792379

23802380
// if the cut on the decay length of 3-prongs computed with the first two tracks is enabled and the vertex was not computed for the D0, we compute it now
2381-
if (config.do3Prong == 1 && is2ProngCandidateGoodFor3Prong && (config.minTwoTrackDecayLengthFor3Prongs > 0.f || config.maxTwoTrackChi2PcaFor3Prongs < 1.e9f) && nVtxFrom2ProngFitter == 0) {
2381+
if (config.do3Prong && is2ProngCandidateGoodFor3Prong && (config.minTwoTrackDecayLengthFor3Prongs > 0.f || config.maxTwoTrackChi2PcaFor3Prongs < 1.e9f) && nVtxFrom2ProngFitter == 0) {
23822382
try {
23832383
nVtxFrom2ProngFitter = df2.process(trackParVarPos1, trackParVarNeg1);
23842384
} catch (...) {
@@ -2392,7 +2392,7 @@ struct HfTrackIndexSkimCreator {
23922392
}
23932393
}
23942394

2395-
if (config.do3Prong == 1 && is2ProngCandidateGoodFor3Prong) { // if 3 prongs are enabled and the first 2 tracks are selected for the 3-prong channels
2395+
if (config.do3Prong && is2ProngCandidateGoodFor3Prong) { // if 3 prongs are enabled and the first 2 tracks are selected for the 3-prong channels
23962396
// second loop over positive tracks
23972397
for (auto trackIndexPos2 = trackIndexPos1 + 1; trackIndexPos2 != groupedTrackIndicesPos1.end(); ++trackIndexPos2) {
23982398

0 commit comments

Comments
 (0)