Skip to content

Commit b972236

Browse files
Merge pull request #48 from alibuild/alibot-cleanup-15659
Please consider the following formatting changes to #15659
2 parents c6bb352 + d7bd85f commit b972236

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

PWGLF/TableProducer/Strangeness/sigma0builder.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ struct sigma0builder {
10811081
// Assumption: first mother is the physical one
10821082
auto const& lambdaMother = lambdaMothers.front();
10831083
int lambdaMotherIndex = lambdaMother.globalIndex();
1084-
1084+
10851085
// ============================================================
10861086
// 2) --- EMCal cluster: loop over MC contributors ---
10871087
// ============================================================
@@ -1117,21 +1117,21 @@ struct sigma0builder {
11171117
// Require true photon, please
11181118
if (mcPhoton.pdgCode() != PDG_t::kGamma)
11191119
continue;
1120-
1120+
11211121
// Get Sigma0 index from photon mother
1122-
auto const& photonMothers = mcPhoton.template mothers_as<aod::McParticles>();
1122+
auto const& photonMothers = mcPhoton.template mothers_as<aod::McParticles>();
11231123
if (photonMothers.empty()) // No mothers? Weird
11241124
continue;
11251125

11261126
// Assumption: first mother is the physical one
11271127
auto const& photonMother = photonMothers.front();
1128-
int photonMotherIndex = photonMother.globalIndex();
1129-
1128+
int photonMotherIndex = photonMother.globalIndex();
1129+
11301130
// ------------------------------------------------------------
11311131
// Check 2:
11321132
// Does this photon share the same mother as the Lambda?
11331133
// ------------------------------------------------------------
1134-
if (photonMotherIndex == lambdaMotherIndex) {
1134+
if (photonMotherIndex == lambdaMotherIndex) {
11351135
matchedPhotonId = daughterId;
11361136
matchedMotherIndex = photonMotherIndex;
11371137
MCinfo.EMCalClusterAmplitude = cluster.amplitudeA()[i];
@@ -2402,7 +2402,7 @@ struct sigma0builder {
24022402
// Momentum components
24032403
float gammapx = gammapT * std::cos(gamma.phi());
24042404
float gammapy = gammapT * std::sin(gamma.phi());
2405-
float gammapz = gammapT * std::sinh(gamma.eta());
2405+
float gammapz = gammapT * std::sinh(gamma.eta());
24062406

24072407
//_______________________________________________
24082408
// Sigma0 pre-selections
@@ -2439,7 +2439,7 @@ struct sigma0builder {
24392439
if constexpr (requires { gamma.mcParticleIds(); lambda.motherMCPartId(); }) {
24402440

24412441
auto sigma0MCInfo = getClusterV0PairMCInfo(gamma, lambda, collision, mcparticles);
2442-
2442+
24432443
sigma0mccores(sigma0MCInfo.V0PairMCParticleID, sigma0MCInfo.V0PairMCRadius, sigma0MCInfo.V0PairPDGCode, sigma0MCInfo.V0PairPDGCodeMother, sigma0MCInfo.V0PairMCProcess, sigma0MCInfo.fV0PairProducedByGenerator,
24442444
sigma0MCInfo.V01MCpx, sigma0MCInfo.V01MCpy, sigma0MCInfo.V01MCpz, sigma0MCInfo.EMCalClusterAmplitude,
24452445
sigma0MCInfo.V01PDGCodePos, sigma0MCInfo.V01PDGCodeNeg, sigma0MCInfo.fIsV01Primary, sigma0MCInfo.V01PDGCode, sigma0MCInfo.V01PDGCodeMother, sigma0MCInfo.fIsV01CorrectlyAssign,

PWGLF/Tasks/Strangeness/sigmaanalysis.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,9 @@ struct sigmaanalysis {
505505
histos.add(histodir + "/MC/Reso/h2dGammaPtResolution", "h2dGammaPtResolution", kTH2D, {axisInvPt, axisReso});
506506
histos.add(histodir + "/MC/Reso/h2dGammaInvPtResolution", "h2dGammaInvPtResolution", kTH2D, {axisInvPt, axisDeltaPt});
507507
histos.add(histodir + "/MC/Reso/h2dLambdaPtResolution", "h2dLambdaPtResolution", kTH2D, {axisInvPt, axisDeltaPt});
508-
histos.add(histodir + "/MC/Reso/h3dLambdaPtResoVsTPCCR", "h3dLambdaPtResoVsTPCCR", kTH3D, {axisInvPt, axisDeltaPt, axisTPCrows});
508+
histos.add(histodir + "/MC/Reso/h3dLambdaPtResoVsTPCCR", "h3dLambdaPtResoVsTPCCR", kTH3D, {axisInvPt, axisDeltaPt, axisTPCrows});
509509
histos.add(histodir + "/MC/Reso/h2dAntiLambdaPtResolution", "h2dAntiLambdaPtResolution", kTH2D, {axisInvPt, axisDeltaPt});
510-
histos.add(histodir + "/MC/Reso/h3dAntiLambdaPtResoVsTPCCR", "h3dAntiLambdaPtResoVsTPCCR", kTH3D, {axisInvPt, axisDeltaPt, axisTPCrows});
510+
histos.add(histodir + "/MC/Reso/h3dAntiLambdaPtResoVsTPCCR", "h3dAntiLambdaPtResoVsTPCCR", kTH3D, {axisInvPt, axisDeltaPt, axisTPCrows});
511511
histos.add(histodir + "/MC/Reso/h2dSigma0PtResolution", "h2dSigma0PtResolution", kTH2D, {axisInvPt, axisReso});
512512
histos.add(histodir + "/MC/Reso/h2dSigma0InvPtResolution", "h2dSigma0InvPtResolution", kTH2D, {axisInvPt, axisDeltaPt});
513513
histos.add(histodir + "/MC/Reso/h2dAntiSigma0PtResolution", "h2dAntiSigma0PtResolution", kTH2D, {axisInvPt, axisReso});
@@ -1011,7 +1011,7 @@ struct sigmaanalysis {
10111011
// Gamma MC association
10121012
if (sigma.photonPDGCode() == PDG_t::kGamma) {
10131013
if (sigma.photonmcpt() > 0) {
1014-
histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dGammaPtResolution"), sigma.photonmcpt(), (sigma.photonPt()/sigma.photonmcpt()) - 1.f); // pT resolution
1014+
histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dGammaPtResolution"), sigma.photonmcpt(), (sigma.photonPt() / sigma.photonmcpt()) - 1.f); // pT resolution
10151015
histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dGammaInvPtResolution"), 1.f / sigma.photonmcpt(), 1.f / sigma.photonPt() - 1.f / sigma.photonmcpt()); // pT resolution
10161016
}
10171017
}
@@ -1041,7 +1041,7 @@ struct sigmaanalysis {
10411041
if (sigma.isSigma0()) {
10421042
histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dSigma0RadiusResolution"), sigma.mcpt(), sigma.radius() - sigma.mcradius()); // pT resolution
10431043
if (sigma.mcpt() > 0) {
1044-
histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dSigma0PtResolution"), sigma.mcpt(), (sigma.pt()/sigma.mcpt()) - 1.f); // pT resolution
1044+
histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dSigma0PtResolution"), sigma.mcpt(), (sigma.pt() / sigma.mcpt()) - 1.f); // pT resolution
10451045
histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dSigma0InvPtResolution"), 1.f / sigma.mcpt(), 1.f / sigma.pt() - 1.f / sigma.mcpt()); // pT resolution
10461046
}
10471047
}
@@ -1664,7 +1664,7 @@ struct sigmaanalysis {
16641664
auto sigma0 = fullSigma0s.rawIteratorAt(sigma0grouped[coll.globalIndex()][i]);
16651665

16661666
// if MC
1667-
if constexpr (requires { sigma0.isSigma0(); sigma0.isAntiSigma0(); }) {
1667+
if constexpr (requires { sigma0.isSigma0(); sigma0.isAntiSigma0(); }) {
16681668
if (doMCAssociation && !(sigma0.isSigma0() || sigma0.isAntiSigma0()))
16691669
continue;
16701670

0 commit comments

Comments
 (0)