Skip to content

Commit 36f6d42

Browse files
committed
Please consider the following formatting changes
1 parent 5e44e2e commit 36f6d42

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
#include "CCDB/BasicCCDBManager.h"
3737
#include "CCDB/CcdbApi.h"
38-
#include "MathUtils/BetheBlochAleph.h"
3938
#include "Framework/ASoA.h"
4039
#include "Framework/ASoAHelpers.h"
4140
#include "Framework/AnalysisDataModel.h"
@@ -45,6 +44,7 @@
4544
#include "Framework/Logger.h"
4645
#include "Framework/RunningWorkflowInfo.h"
4746
#include "Framework/runDataProcessing.h"
47+
#include "MathUtils/BetheBlochAleph.h"
4848
#include "ReconstructionDataFormats/DCA.h"
4949
#include "ReconstructionDataFormats/PID.h"
5050
#include "ReconstructionDataFormats/Track.h"
@@ -3704,42 +3704,42 @@ 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-
neutronCandidates[iN].used = true;
3721-
protonCandidates[iP].used = true;
3722-
3723-
int sign = (protonCandidates[iP].pdgCode > 0) ? +1 : -1;
3724-
int deuteronPdg = sign * o2::constants::physics::Pdg::kDeuteron;
3725-
3726-
double pxDeut = protonCandidates[iP].px + neutronCandidates[iN].px;
3727-
double pyDeut = protonCandidates[iP].py + neutronCandidates[iN].py;
3728-
double pzDeut = protonCandidates[iP].pz + neutronCandidates[iN].pz;
3729-
double energyDeut = std::sqrt(pxDeut * pxDeut + pyDeut * pyDeut + pzDeut * pzDeut + massDeut * massDeut);
3730-
LorentzVector pd(pxDeut, pyDeut, pzDeut, energyDeut);
3731-
if (pd.Eta() >= minEta && pd.Eta() <= maxEta && (0.5 * pd.Pt()) >= MinPtPerNucleon) {
3732-
// Store Deuteron
3733-
finalDeuterons.push_back({pxDeut, pyDeut, pzDeut, deuteronPdg, protonCandidates[iP].mcIndex, false});
3734-
}
3735-
3736-
break;
3737-
}
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+
neutronCandidates[iN].used = true;
3721+
protonCandidates[iP].used = true;
3722+
3723+
int sign = (protonCandidates[iP].pdgCode > 0) ? +1 : -1;
3724+
int deuteronPdg = sign * o2::constants::physics::Pdg::kDeuteron;
3725+
3726+
double pxDeut = protonCandidates[iP].px + neutronCandidates[iN].px;
3727+
double pyDeut = protonCandidates[iP].py + neutronCandidates[iN].py;
3728+
double pzDeut = protonCandidates[iP].pz + neutronCandidates[iN].pz;
3729+
double energyDeut = std::sqrt(pxDeut * pxDeut + pyDeut * pyDeut + pzDeut * pzDeut + massDeut * massDeut);
3730+
LorentzVector pd(pxDeut, pyDeut, pzDeut, energyDeut);
3731+
if (pd.Eta() >= minEta && pd.Eta() <= maxEta && (0.5 * pd.Pt()) >= MinPtPerNucleon) {
3732+
// Store Deuteron
3733+
finalDeuterons.push_back({pxDeut, pyDeut, pzDeut, deuteronPdg, protonCandidates[iP].mcIndex, false});
37383734
}
3735+
3736+
break;
3737+
}
37393738
}
3740-
3741-
// Add unused protons to final vectors
3742-
for (const auto& proton : protonCandidates) {
3739+
}
3740+
3741+
// Add unused protons to final vectors
3742+
for (const auto& proton : protonCandidates) {
37433743
if (!proton.used) {
37443744
finalProtons.push_back(proton);
37453745
}

0 commit comments

Comments
 (0)