Skip to content

Commit 9b32272

Browse files
Merge pull request #5 from alibuild/alibot-cleanup-14639
[PWGLF] Please consider the following formatting changes to #14639
2 parents 343ed06 + 5073cfe commit 9b32272

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3704,41 +3704,41 @@ struct AntinucleiInJets {
37043704
registryMC.fill(HIST("genEventsCoalescenceCorr"), 2.5);
37053705

37063706
// Build deuterons
3707-
for (size_t iP = 0; iP < protonCandidates.size(); ++iP) {
3708-
if (protonCandidates[iP].used)
3709-
continue;
3710-
3711-
for (size_t iN = 0; iN < neutronCandidates.size(); ++iN) {
3712-
if (neutronCandidates[iN].used)
3713-
continue;
3714-
3715-
// Physics consistency check
3716-
if (protonCandidates[iP].pdgCode * neutronCandidates[iN].pdgCode < 0)
3717-
continue;
3718-
3719-
if (passDeuteronCoalescence(protonCandidates[iP], neutronCandidates[iN], coalescenceMomentum, mRand)) {
3720-
3721-
neutronCandidates[iN].used = true;
3722-
protonCandidates[iP].used = true;
3723-
3724-
int sign = (protonCandidates[iP].pdgCode > 0) ? +1 : -1;
3725-
int deuteronPdg = sign * o2::constants::physics::Pdg::kDeuteron;
3726-
3727-
double pxDeut = protonCandidates[iP].px + neutronCandidates[iN].px;
3728-
double pyDeut = protonCandidates[iP].py + neutronCandidates[iN].py;
3729-
double pzDeut = protonCandidates[iP].pz + neutronCandidates[iN].pz;
3730-
double energyDeut = std::sqrt(pxDeut * pxDeut + pyDeut * pyDeut + pzDeut * pzDeut + massDeut * massDeut);
3731-
LorentzVector pd(pxDeut, pyDeut, pzDeut, energyDeut);
3732-
if (pd.Eta() >= minEta && pd.Eta() <= maxEta && (0.5 * pd.Pt()) >= MinPtPerNucleon) {
3733-
// Store Deuteron
3734-
finalDeuterons.push_back({pxDeut, pyDeut, pzDeut, deuteronPdg, protonCandidates[iP].mcIndex, false});
3735-
}
3736-
3737-
break;
3738-
}
3707+
for (size_t iP = 0; iP < protonCandidates.size(); ++iP) {
3708+
if (protonCandidates[iP].used)
3709+
continue;
3710+
3711+
for (size_t iN = 0; iN < neutronCandidates.size(); ++iN) {
3712+
if (neutronCandidates[iN].used)
3713+
continue;
3714+
3715+
// Physics consistency check
3716+
if (protonCandidates[iP].pdgCode * neutronCandidates[iN].pdgCode < 0)
3717+
continue;
3718+
3719+
if (passDeuteronCoalescence(protonCandidates[iP], neutronCandidates[iN], coalescenceMomentum, mRand)) {
3720+
3721+
neutronCandidates[iN].used = true;
3722+
protonCandidates[iP].used = true;
3723+
3724+
int sign = (protonCandidates[iP].pdgCode > 0) ? +1 : -1;
3725+
int deuteronPdg = sign * o2::constants::physics::Pdg::kDeuteron;
3726+
3727+
double pxDeut = protonCandidates[iP].px + neutronCandidates[iN].px;
3728+
double pyDeut = protonCandidates[iP].py + neutronCandidates[iN].py;
3729+
double pzDeut = protonCandidates[iP].pz + neutronCandidates[iN].pz;
3730+
double energyDeut = std::sqrt(pxDeut * pxDeut + pyDeut * pyDeut + pzDeut * pzDeut + massDeut * massDeut);
3731+
LorentzVector pd(pxDeut, pyDeut, pzDeut, energyDeut);
3732+
if (pd.Eta() >= minEta && pd.Eta() <= maxEta && (0.5 * pd.Pt()) >= MinPtPerNucleon) {
3733+
// Store Deuteron
3734+
finalDeuterons.push_back({pxDeut, pyDeut, pzDeut, deuteronPdg, protonCandidates[iP].mcIndex, false});
37393735
}
3736+
3737+
break;
3738+
}
37403739
}
3741-
3740+
}
3741+
37423742
// Add unused protons to final vectors
37433743
for (const auto& proton : protonCandidates) {
37443744
if (!proton.used) {

0 commit comments

Comments
 (0)