Skip to content

Commit 22a8d04

Browse files
authored
Merge pull request #45 from alibuild/alibot-cleanup-8670
Please consider the following formatting changes to AliceO2Group#8670
2 parents ffc7bfa + f1390eb commit 22a8d04

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

PWGHF/TableProducer/candidateCreator2Prong.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ struct HfCandidateCreator2ProngExpressions {
724724
int8_t sign = 0;
725725
int8_t flag = 0;
726726
int8_t origin = 0;
727-
int8_t nKinkedTracks = 0;
727+
int8_t nKinkedTracks = 0;
728728

729729
// Match reconstructed candidates.
730730
// Spawned table can be used directly
@@ -753,7 +753,7 @@ struct HfCandidateCreator2ProngExpressions {
753753
std::vector<int> idxBhadMothers{};
754754

755755
// D0(bar) → π± K∓
756-
if (matchKinkedDecayTopology){
756+
if (matchKinkedDecayTopology) {
757757
indexRec = RecoDecay::getMatchedMCRec<false, false, false, true>(mcParticles, arrayDaughters, Pdg::kD0, std::array{+kPiPlus, -kKPlus}, true, &sign, 1, &nKinkedTracks);
758758
} else {
759759
indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kD0, std::array{+kPiPlus, -kKPlus}, true, &sign);

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ struct HfCandidateCreator3ProngExpressions {
458458
o2::framework::Configurable<bool> rejectBackground{"rejectBackground", true, "Reject particles from background events"};
459459
o2::framework::Configurable<bool> matchKinkedDecayTopology{"matchKinkedDecayTopology", true, "Match also candidates with tracks that decay with kinked topology"};
460460

461-
462461
bool createDplus{false};
463462
bool createDs{false};
464463
bool createLc{false};
@@ -568,9 +567,9 @@ struct HfCandidateCreator3ProngExpressions {
568567

569568
// D± → π± K∓ π±
570569
if (createDplus) {
571-
if (matchKinkedDecayTopology){
570+
if (matchKinkedDecayTopology) {
572571
indexRec = RecoDecay::getMatchedMCRec<false, false, false, true>(mcParticles, arrayDaughters, Pdg::kDPlus, std::array{+kPiPlus, -kKPlus, +kPiPlus}, true, &sign, 2, &nKinkedTracks);
573-
} else{
572+
} else {
574573
indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDPlus, std::array{+kPiPlus, -kKPlus, +kPiPlus}, true, &sign, 2);
575574
}
576575
if (indexRec > -1) {
@@ -581,14 +580,14 @@ struct HfCandidateCreator3ProngExpressions {
581580
// Ds± → K± K∓ π± and D± → K± K∓ π±
582581
if (flag == 0 && createDs) {
583582
bool isDplus = false;
584-
if (matchKinkedDecayTopology){
583+
if (matchKinkedDecayTopology) {
585584
indexRec = RecoDecay::getMatchedMCRec<false, false, false, true>(mcParticles, arrayDaughters, Pdg::kDS, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2, &nKinkedTracks);
586585
} else {
587586
indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDS, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2);
588587
}
589588
if (indexRec == -1) {
590589
isDplus = true;
591-
if (matchKinkedDecayTopology){
590+
if (matchKinkedDecayTopology) {
592591
indexRec = RecoDecay::getMatchedMCRec<false, false, false, true>(mcParticles, arrayDaughters, Pdg::kDPlus, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2, &nKinkedTracks);
593592
} else {
594593
indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDPlus, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2);
@@ -618,9 +617,9 @@ struct HfCandidateCreator3ProngExpressions {
618617

619618
// Λc± → p± K∓ π±
620619
if (flag == 0 && createLc) {
621-
if (matchKinkedDecayTopology){
620+
if (matchKinkedDecayTopology) {
622621
indexRec = RecoDecay::getMatchedMCRec<false, false, false, true>(mcParticles, arrayDaughters, Pdg::kLambdaCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2, &nKinkedTracks);
623-
} else{
622+
} else {
624623
indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kLambdaCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2);
625624
}
626625
if (indexRec > -1) {
@@ -649,11 +648,11 @@ struct HfCandidateCreator3ProngExpressions {
649648

650649
// Ξc± → p± K∓ π±
651650
if (flag == 0 && createXic) {
652-
if (matchKinkedDecayTopology){
651+
if (matchKinkedDecayTopology) {
653652
indexRec = RecoDecay::getMatchedMCRec<false, false, false, true>(mcParticles, arrayDaughters, Pdg::kXiCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2, &nKinkedTracks);
654653
} else {
655654
indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kXiCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2);
656-
}
655+
}
657656
if (indexRec > -1) {
658657
flag = sign * (1 << DecayType::XicToPKPi);
659658
}

PWGHF/TableProducer/candidateCreatorDstar.cxx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ struct HfCandidateCreatorDstarExpressions {
508508
o2::framework::Configurable<bool> rejectBackground{"rejectBackground", true, "Reject particles from background events"};
509509
o2::framework::Configurable<bool> matchKinkedDecayTopology{"matchKinkedDecayTopology", true, "Match also candidates with tracks that decay with kinked topology"};
510510

511-
512511
using McCollisionsNoCents = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels>;
513512
using McCollisionsFT0Cs = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels, aod::CentFT0Cs>;
514513
using McCollisionsFT0Ms = soa::Join<aod::Collisions, aod::EvSels, aod::McCollisionLabels, aod::CentFT0Ms>;
@@ -556,7 +555,6 @@ struct HfCandidateCreatorDstarExpressions {
556555
int8_t originDstar = 0, originD0 = 0;
557556
int8_t nKinkedTracksDstar = 0, nKinkedTracksD0 = 0;
558557

559-
560558
// Match reconstructed candidates.
561559
for (const auto& rowCandidateDstar : *rowsCandidateDstar) {
562560
flagDstar = 0;
@@ -590,8 +588,7 @@ struct HfCandidateCreatorDstarExpressions {
590588
}
591589
}
592590

593-
594-
if (matchKinkedDecayTopology){
591+
if (matchKinkedDecayTopology) {
595592
// D*± → D0(bar) π±
596593
indexRecDstar = RecoDecay::getMatchedMCRec<false, false, false, true>(mcParticles, arrayDaughtersDstar, Pdg::kDStar, std::array{+kPiPlus, +kPiPlus, -kKPlus}, true, &signDstar, 2, &nKinkedTracksDstar);
597594
// D0(bar) → π± K∓
@@ -602,7 +599,7 @@ struct HfCandidateCreatorDstarExpressions {
602599
// D0(bar) → π± K∓
603600
indexRecD0 = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughtersofD0, Pdg::kD0, std::array{+kPiPlus, -kKPlus}, true, &signD0);
604601
}
605-
602+
606603
if (indexRecDstar > -1) {
607604
flagDstar = signDstar * (BIT(aod::hf_cand_dstar::DecayType::DstarToD0Pi));
608605
}

0 commit comments

Comments
 (0)