@@ -143,8 +143,8 @@ struct HfCandidateCreatorSigmac0plusplus {
143143 softPiCuts.SetMaxChi2PerClusterITS (softPiChi2Max);
144144 // ITS hitmap
145145 std::set<uint8_t > setSoftPiItsHitMap; // = {};
146- const int itsLayers = 7 ;
147- for (int idItsLayer = 0 ; idItsLayer < itsLayers; idItsLayer++) {
146+ constexpr std:: size_t itsLayers = 7 ;
147+ for (std:: size_t idItsLayer = 0u ; idItsLayer < itsLayers; idItsLayer++) {
148148 if (TESTBIT (softPiItsHitMap, idItsLayer)) {
149149 setSoftPiItsHitMap.insert (static_cast <uint8_t >(idItsLayer));
150150 }
@@ -180,7 +180,7 @@ struct HfCandidateCreatorSigmac0plusplus {
180180
181181 // / keep only the candidates flagged as possible Λc+ (and charge conj.) decaying into a charged pion, kaon and proton
182182 // / if not selected, skip it and go to the next one
183- if (!(candLc.hfflag () & 1 << aod::hf_cand_3prong::DecayType::LcToPKPi)) {
183+ if (!(candLc.hfflag () & BIT ( aod::hf_cand_3prong::DecayType::LcToPKPi) )) {
184184 continue ;
185185 }
186186 // / keep only the candidates Λc+ (and charge conj.) within the desired rapidity
@@ -236,7 +236,7 @@ struct HfCandidateCreatorSigmac0plusplus {
236236 int chargeLc = candLc.template prong0_as <aod::TracksWDcaExtra>().sign () + candLc.template prong1_as <aod::TracksWDcaExtra>().sign () + candLc.template prong2_as <aod::TracksWDcaExtra>().sign ();
237237 int chargeSoftPi = trackSoftPi.sign ();
238238 int8_t chargeSigmac = chargeLc + chargeSoftPi;
239- if (std::abs (chargeSigmac) != o2::aod::hf_cand_sigmac::chargeNull && std::abs (chargeSigmac) != o2::aod::hf_cand_sigmac::chargePlusPlus ) {
239+ if (std::abs (chargeSigmac) != o2::aod::hf_cand_sigmac::ChargeNull && std::abs (chargeSigmac) != o2::aod::hf_cand_sigmac::ChargePlusPlus ) {
240240 // / this shall never happen
241241 LOG (fatal) << " >>> Sc candidate with charge +1 built, not possible! Charge Lc: " << chargeLc << " , charge soft pion: " << chargeSoftPi;
242242 }
@@ -451,7 +451,7 @@ struct HfCandidateSigmac0plusplusMc {
451451
452452 // / skip immediately the candidate Σc0,++ w/o a Λc+ matched to MC
453453 auto candLc = candSigmac.prongLc_as <LambdacMc>();
454- if (!(std::abs (candLc.flagMcMatchRec ()) == 1 << aod::hf_cand_3prong::DecayType::LcToPKPi)) { // / (*)
454+ if (!(std::abs (candLc.flagMcMatchRec ()) == BIT ( aod::hf_cand_3prong::DecayType::LcToPKPi) )) { // / (*)
455455 rowMCMatchScRec (flag, origin, -1 .f , 0 );
456456 continue ;
457457 }
@@ -462,7 +462,7 @@ struct HfCandidateSigmac0plusplusMc {
462462 candLc.prong2_as <aod::TracksWMc>(),
463463 candSigmac.prong1_as <aod::TracksWMc>()};
464464 chargeSigmac = candSigmac.charge ();
465- if (chargeSigmac == o2::aod::hf_cand_sigmac::chargeNull ) {
465+ if (chargeSigmac == o2::aod::hf_cand_sigmac::ChargeNull ) {
466466 // / candidate Σc0
467467 // / 3 levels:
468468 // / 1. Σc0 → Λc+ π-,+
@@ -472,18 +472,18 @@ struct HfCandidateSigmac0plusplusMc {
472472 // / look for Σc0(2455)
473473 indexRec = RecoDecay::getMatchedMCRec (mcParticles, arrayDaughters, Pdg::kSigmaC0 , std::array{+kProton , -kKPlus , +kPiPlus , -kPiPlus }, true , &sign, 3 );
474474 if (indexRec > -1 ) { // / due to (*) no need to check anything for LambdaC
475- flag = sign * ( 1 << aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi);
475+ flag = sign * BIT ( aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi);
476476 }
477477
478478 // / look for Σc0(2520)
479479 if (flag == 0 ) {
480480 indexRec = RecoDecay::getMatchedMCRec (mcParticles, arrayDaughters, Pdg::kSigmaCStar0 , std::array{+kProton , -kKPlus , +kPiPlus , -kPiPlus }, true , &sign, 3 );
481481 if (indexRec > -1 ) { // / due to (*) no need to check anything for LambdaC
482- flag = sign * ( 1 << aod::hf_cand_sigmac::DecayType::ScStar0ToPKPiPi);
482+ flag = sign * BIT ( aod::hf_cand_sigmac::DecayType::ScStar0ToPKPiPi);
483483 }
484484 }
485485
486- } else if (std::abs (chargeSigmac) == o2::aod::hf_cand_sigmac::chargePlusPlus ) {
486+ } else if (std::abs (chargeSigmac) == o2::aod::hf_cand_sigmac::ChargePlusPlus ) {
487487 // / candidate Σc++
488488 // / 3 levels:
489489 // / 1. Σc0 → Λc+ π-,+
@@ -493,14 +493,14 @@ struct HfCandidateSigmac0plusplusMc {
493493 // / look for Σc++(2455)
494494 indexRec = RecoDecay::getMatchedMCRec (mcParticles, arrayDaughters, Pdg::kSigmaCPlusPlus , std::array{+kProton , -kKPlus , +kPiPlus , +kPiPlus }, true , &sign, 3 );
495495 if (indexRec > -1 ) { // / due to (*) no need to check anything for LambdaC
496- flag = sign * ( 1 << aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi);
496+ flag = sign * BIT ( aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi);
497497 }
498498
499499 // / look for Σc++(2520)
500500 if (flag == 0 ) {
501501 indexRec = RecoDecay::getMatchedMCRec (mcParticles, arrayDaughters, Pdg::kSigmaCStarPlusPlus , std::array{+kProton , -kKPlus , +kPiPlus , +kPiPlus }, true , &sign, 3 );
502502 if (indexRec > -1 ) { // / due to (*) no need to check anything for LambdaC
503- flag = sign * ( 1 << aod::hf_cand_sigmac::DecayType::ScStarPlusPlusToPKPiPi);
503+ flag = sign * BIT ( aod::hf_cand_sigmac::DecayType::ScStarPlusPlusToPKPiPi);
504504 }
505505 }
506506 }
@@ -554,7 +554,7 @@ struct HfCandidateSigmac0plusplusMc {
554554 continue ;
555555 if (RecoDecay::isMatchedMCGen (mcParticles, daughter, Pdg::kLambdaCPlus , std::array{+kProton , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
556556 // / Λc+ daughter decaying in pK-π+ found!
557- flag = sign * ( 1 << aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi);
557+ flag = sign * BIT ( aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi);
558558 break ;
559559 }
560560 }
@@ -566,7 +566,7 @@ struct HfCandidateSigmac0plusplusMc {
566566 continue ;
567567 if (RecoDecay::isMatchedMCGen (mcParticles, daughter, Pdg::kLambdaCPlus , std::array{+kProton , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
568568 // / Λc+ daughter decaying in pK-π+ found!
569- flag = sign * ( 1 << aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi);
569+ flag = sign * BIT ( aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi);
570570 break ;
571571 }
572572 }
@@ -582,7 +582,7 @@ struct HfCandidateSigmac0plusplusMc {
582582 continue ;
583583 if (RecoDecay::isMatchedMCGen (mcParticles, daughter, Pdg::kLambdaCPlus , std::array{+kProton , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
584584 // / Λc+ daughter decaying in pK-π+ found!
585- flag = sign * ( 1 << aod::hf_cand_sigmac::DecayType::ScStar0ToPKPiPi);
585+ flag = sign * BIT ( aod::hf_cand_sigmac::DecayType::ScStar0ToPKPiPi);
586586 break ;
587587 }
588588 }
@@ -594,7 +594,7 @@ struct HfCandidateSigmac0plusplusMc {
594594 continue ;
595595 if (RecoDecay::isMatchedMCGen (mcParticles, daughter, Pdg::kLambdaCPlus , std::array{+kProton , -kKPlus , +kPiPlus }, true , &sign, 2 )) {
596596 // / Λc+ daughter decaying in pK-π+ found!
597- flag = sign * ( 1 << aod::hf_cand_sigmac::DecayType::ScStarPlusPlusToPKPiPi);
597+ flag = sign * BIT ( aod::hf_cand_sigmac::DecayType::ScStarPlusPlusToPKPiPi);
598598 break ;
599599 }
600600 }
0 commit comments