Skip to content

Commit fa3e0dd

Browse files
committed
Please consider the following formatting changes
1 parent bfde7d0 commit fa3e0dd

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ struct AntinucleiInJets {
480480
}
481481

482482
void getReweightingHistograms(o2::framework::Service<o2::ccdb::BasicCCDBManager> const& ccdbObj,
483-
TString filepath, TString antip, TString antilambda, TString antisigma,
484-
TString antixi, TString antiomega)
483+
TString filepath, TString antip, TString antilambda, TString antisigma,
484+
TString antixi, TString antiomega)
485485
{
486486
TList* list = ccdbObj->get<TList>(filepath.Data());
487487
if (!list) {
@@ -490,10 +490,10 @@ struct AntinucleiInJets {
490490
}
491491

492492
primaryAntiprotons = static_cast<TH1F*>(list->FindObject(antip));
493-
primaryAntiLambda = static_cast<TH1F*>(list->FindObject(antilambda));
494-
primaryAntiSigma = static_cast<TH1F*>(list->FindObject(antisigma));
495-
primaryAntiXi = static_cast<TH1F*>(list->FindObject(antixi));
496-
primaryAntiOmega = static_cast<TH1F*>(list->FindObject(antiomega));
493+
primaryAntiLambda = static_cast<TH1F*>(list->FindObject(antilambda));
494+
primaryAntiSigma = static_cast<TH1F*>(list->FindObject(antisigma));
495+
primaryAntiXi = static_cast<TH1F*>(list->FindObject(antixi));
496+
primaryAntiOmega = static_cast<TH1F*>(list->FindObject(antiomega));
497497

498498
if (!primaryAntiprotons || !primaryAntiSigma || !primaryAntiLambda || !primaryAntiXi || !primaryAntiOmega) {
499499
LOGP(error, "Missing one or more reweighting histograms in CCDB list");
@@ -1416,11 +1416,11 @@ struct AntinucleiInJets {
14161416
double wPrimStd(1.0), wPrimUp(1.0), wPrimLow(1.0);
14171417

14181418
// Weight assignment
1419-
if (particle.pt() < primaryAntiprotons -> GetXaxis() -> GetXmax()) {
1420-
int ipt = primaryAntiprotons -> FindBin(particle.pt());
1421-
wPrimStd = primaryAntiprotons -> GetBinContent(ipt);
1422-
wPrimUp = wPrimStd + primaryAntiprotons -> GetBinError(ipt);
1423-
wPrimLow = wPrimStd - primaryAntiprotons -> GetBinError(ipt);
1419+
if (particle.pt() < primaryAntiprotons->GetXaxis()->GetXmax()) {
1420+
int ipt = primaryAntiprotons->FindBin(particle.pt());
1421+
wPrimStd = primaryAntiprotons->GetBinContent(ipt);
1422+
wPrimUp = wPrimStd + primaryAntiprotons->GetBinError(ipt);
1423+
wPrimLow = wPrimStd - primaryAntiprotons->GetBinError(ipt);
14241424
}
14251425

14261426
// Fill histograms
@@ -1439,44 +1439,44 @@ struct AntinucleiInJets {
14391439

14401440
// Antiprotons from sigma
14411441
if (std::abs(mother.pdgCode()) == PDG_t::kSigmaBarMinus) {
1442-
if (mother.pt() < primaryAntiSigma -> GetXaxis() -> GetXmax()) {
1443-
int ipt = primaryAntiSigma -> FindBin(mother.pt());
1444-
wSecStd = primaryAntiSigma -> GetBinContent(ipt);
1445-
wSecUp = wSecStd + primaryAntiSigma -> GetBinError(ipt);
1446-
wSecLow = wSecStd - primaryAntiSigma -> GetBinError(ipt);
1442+
if (mother.pt() < primaryAntiSigma->GetXaxis()->GetXmax()) {
1443+
int ipt = primaryAntiSigma->FindBin(mother.pt());
1444+
wSecStd = primaryAntiSigma->GetBinContent(ipt);
1445+
wSecUp = wSecStd + primaryAntiSigma->GetBinError(ipt);
1446+
wSecLow = wSecStd - primaryAntiSigma->GetBinError(ipt);
14471447
}
14481448
}
14491449

14501450
// Antiprotons from primary Lambda0
14511451
if (std::abs(mother.pdgCode()) == kLambda0Bar) {
14521452
if (mother.isPhysicalPrimary()) {
1453-
if (mother.pt() < primaryAntiLambda -> GetXaxis() -> GetXmax()) {
1454-
int ipt = primaryAntiLambda -> FindBin(mother.pt());
1455-
wSecStd = primaryAntiLambda -> GetBinContent(ipt);
1456-
wSecUp = wSecStd + primaryAntiLambda -> GetBinError(ipt);
1457-
wSecLow = wSecStd - primaryAntiLambda -> GetBinError(ipt);
1453+
if (mother.pt() < primaryAntiLambda->GetXaxis()->GetXmax()) {
1454+
int ipt = primaryAntiLambda->FindBin(mother.pt());
1455+
wSecStd = primaryAntiLambda->GetBinContent(ipt);
1456+
wSecUp = wSecStd + primaryAntiLambda->GetBinError(ipt);
1457+
wSecLow = wSecStd - primaryAntiLambda->GetBinError(ipt);
14581458
}
14591459
}
14601460

14611461
// Antiprotons from secondary Lambda0 (Xi -> Lambda0)
14621462
if (!mother.isPhysicalPrimary()) {
14631463
auto grandmother = mcParticles.iteratorAt(mother.mothersIds()[0]);
14641464
if (std::abs(grandmother.pdgCode()) == kXiMinus) {
1465-
if (grandmother.pt() < primaryAntiXi -> GetXaxis() -> GetXmax()) {
1466-
int ipt = primaryAntiXi -> FindBin(grandmother.pt());
1467-
wSecStd = primaryAntiXi -> GetBinContent(ipt);
1468-
wSecUp = wSecStd + primaryAntiXi -> GetBinError(ipt);
1469-
wSecLow = wSecStd - primaryAntiXi -> GetBinError(ipt);
1465+
if (grandmother.pt() < primaryAntiXi->GetXaxis()->GetXmax()) {
1466+
int ipt = primaryAntiXi->FindBin(grandmother.pt());
1467+
wSecStd = primaryAntiXi->GetBinContent(ipt);
1468+
wSecUp = wSecStd + primaryAntiXi->GetBinError(ipt);
1469+
wSecLow = wSecStd - primaryAntiXi->GetBinError(ipt);
14701470
}
14711471
}
14721472

14731473
// Antiprotons from secondary Lambda0 (Omega -> Lambda0)
14741474
if (std::abs(grandmother.pdgCode()) == kOmegaMinus) {
1475-
if (grandmother.pt() < primaryAntiOmega -> GetXaxis() -> GetXmax()) {
1476-
int ipt = primaryAntiOmega -> FindBin(grandmother.pt());
1477-
wSecStd = primaryAntiOmega -> GetBinContent(ipt);
1478-
wSecUp = wSecStd + primaryAntiOmega -> GetBinError(ipt);
1479-
wSecLow = wSecStd - primaryAntiOmega -> GetBinError(ipt);
1475+
if (grandmother.pt() < primaryAntiOmega->GetXaxis()->GetXmax()) {
1476+
int ipt = primaryAntiOmega->FindBin(grandmother.pt());
1477+
wSecStd = primaryAntiOmega->GetBinContent(ipt);
1478+
wSecUp = wSecStd + primaryAntiOmega->GetBinError(ipt);
1479+
wSecLow = wSecStd - primaryAntiOmega->GetBinError(ipt);
14801480
}
14811481
}
14821482
}

0 commit comments

Comments
 (0)