Skip to content

Commit bc4c751

Browse files
authored
Update chargeBalanceFunction.cxx
1 parent c98072a commit bc4c751

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

PWGCF/TwoParticleCorrelations/Tasks/chargeBalanceFunction.cxx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,6 @@ struct ChargeBalanceFunction {
362362
return false;
363363
}
364364

365-
// // Set Multiplicity
366-
// mult = col.multTPC();
367-
368365
return true;
369366
}
370367

@@ -427,7 +424,7 @@ struct ChargeBalanceFunction {
427424
}
428425

429426
template <RecGenType rec_gen, typename T, typename S>
430-
float GetNuaCorrectionFactor(T const& track, S const& sign)
427+
float getNuaCorrectionFactor(T const& track, S const& sign)
431428
{
432429
if (!cGetNuaCorrectionFlag) {
433430
return 1.;
@@ -527,7 +524,7 @@ struct ChargeBalanceFunction {
527524
// Reco/Gen Dir
528525
static constexpr auto SubDirRecGen = std::array{"Reco/", "McGen/"};
529526

530-
// Rap-phi bins
527+
// RapPhi bins
531528
const auto rapbin1 = static_cast<int>((trk_1.eta() - kminrap) / rapbinwidth);
532529
const auto rapbin2 = static_cast<int>((trk_2.eta() - kminrap) / rapbinwidth);
533530
const auto phibin1 = static_cast<int>(trk_1.phi() / phibinwidth);
@@ -577,7 +574,7 @@ struct ChargeBalanceFunction {
577574

578575
// Correction factor
579576
float corrFact = getCorrectionFactor<rec_gen>(track, sign);
580-
float nuaCorr = GetNuaCorrectionFactor<rec_gen>(track, sign);
577+
float nuaCorr = getNuaCorrectionFactor<rec_gen>(track, sign);
581578

582579
// Histograms
583580
if (sign > 0) {
@@ -713,8 +710,7 @@ struct ChargeBalanceFunction {
713710
}
714711

715712
// Fill single particle densities
716-
int sign_1 = pdg->GetParticle(mcpart_1.pdgCode())->Charge() / 3;
717-
fillSingleHist<kGen>(mcpart_1, sign_1);
713+
fillSingleHist<kGen>(mcpart_1, pdg->GetParticle(mcpart_1.pdgCode())->Charge() / 3);
718714

719715
// Loop 2
720716
for (auto const& mcpart_2 : mcParticles) {
@@ -724,8 +720,7 @@ struct ChargeBalanceFunction {
724720
}
725721

726722
// Fill pair densities
727-
int sign_2 = pdg->GetParticle(mcpart_2.pdgCode())->Charge() / 3;
728-
fillPairHist<kGen>(mcpart_1, mcpart_2, sign_1, sign_2);
723+
fillPairHist<kGen>(mcpart_1, mcpart_2, pdg->GetParticle(mcpart_1.pdgCode())->Charge() / 3, pdg->GetParticle(mcpart_2.pdgCode())->Charge() / 3);
729724
}
730725
}
731726
}

0 commit comments

Comments
 (0)