@@ -287,19 +287,19 @@ struct HfCandidateSelectorDstarToD0Pi {
287287 {
288288 // LOG(info) << "selector called";
289289 for (const auto & candDstar : rowsDstarCand) {
290- // final selection flag: 0 - rejected, 1 - accepted
291- int statusDstar = 0 , statusD0Flag = 0 , statusTopol = 0 , statusCand = 0 , statusPID = 0 ;
290+ // final selection flag: false - rejected, true - accepted
291+ bool statusDstar = false , statusD0Flag = false , statusTopol = false , statusCand = false , statusPID = false ;
292292
293- if (!(candDstar.hfflag () & 1 << aod::hf_cand_2prong::DecayType::D0ToPiK)) {
293+ if (!TESTBIT (candDstar.hfflag (), aod::hf_cand_2prong::DecayType::D0ToPiK)) {
294294 hfSelDstarCandidate (statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
295295 continue ;
296296 }
297- statusD0Flag = 1 ;
297+ statusD0Flag = true ;
298298 if (!selectionDstar (candDstar)) {
299299 hfSelDstarCandidate (statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
300300 continue ;
301301 }
302- statusTopol = 1 ;
302+ statusTopol = true ;
303303 // implement filter bit 4 cut - should be done before this task at the track selection level
304304 // need to add special cuts (additional cuts on decay length and d0 norm)
305305
@@ -309,7 +309,7 @@ struct HfCandidateSelectorDstarToD0Pi {
309309 hfSelDstarCandidate (statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
310310 continue ;
311311 }
312- statusCand = 1 ;
312+ statusCand = true ;
313313
314314 // track-level PID selection
315315 int pidTrackPosKaon = -1 ;
@@ -350,10 +350,10 @@ struct HfCandidateSelectorDstarToD0Pi {
350350 }
351351
352352 if ((pidDstar == -1 || pidDstar == 1 ) && topoDstar) {
353- statusDstar = 1 ; // identified as dstar
353+ statusDstar = true ; // identified as dstar
354354 }
355355
356- statusPID = 1 ;
356+ statusPID = true ;
357357 hfSelDstarCandidate (statusDstar, statusD0Flag, statusTopol, statusCand, statusPID);
358358 }
359359 }
0 commit comments