From 91277ff3c58239dad3ee45be16851a836dca73f7 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Mon, 2 Dec 2024 13:48:53 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGUD/Tasks/upcTauCentralBarrelRL.cxx | 37 +++++++++++++-------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/PWGUD/Tasks/upcTauCentralBarrelRL.cxx b/PWGUD/Tasks/upcTauCentralBarrelRL.cxx index 8f66be1999e..4fe2bb64091 100644 --- a/PWGUD/Tasks/upcTauCentralBarrelRL.cxx +++ b/PWGUD/Tasks/upcTauCentralBarrelRL.cxx @@ -686,7 +686,6 @@ struct UpcTauCentralBarrelRL { histos.add("Tracks/Truth/hPionPt", ";Pion #it{p_{T}} (GeV/c);Number of events (-)", HistType::kTH1D, {confAxis.axisPt}); histos.add("Tracks/Truth/hPionPhi", ";Pion #phi (rad);Number of events (-)", HistType::kTH1D, {confAxis.axisPhi}); histos.add("Tracks/Truth/hPionEta", ";Pion #eta (-);Number of events (-)", HistType::kTH1D, {confAxis.axisEta}); - } } // end init @@ -2099,7 +2098,8 @@ struct UpcTauCentralBarrelRL { } void fillTruthHistograms(aod::UDMcParticles const& particles) - { histos.get(HIST("Events/Truth/hCountCollisions"))->Fill(1); + { + histos.get(HIST("Events/Truth/hCountCollisions"))->Fill(1); histos.get(HIST("Events/Truth/hNparticles"))->Fill(particles.size()); histos.get(HIST("Events/Truth/hNphysPartVsNwoutMotherParts"))->Fill(countPhysicalPrimary(particles), countParticlesWithoutMother(particles)); @@ -2113,34 +2113,34 @@ struct UpcTauCentralBarrelRL { if (particle.has_mothers()) continue; histos.get(HIST("Events/Truth/hPDGcodesNoMother"))->Fill(particle.pdgCode()); - histos.get(HIST("Tracks/Truth/hTauPt"))->Fill(pt(particle.px(),particle.py())); - histos.get(HIST("Tracks/Truth/hTauP"))->Fill(momentum(particle.px(),particle.py(),particle.pz())); - histos.get(HIST("Tracks/Truth/hTauPhi"))->Fill(phi(particle.px(),particle.py())); - histos.get(HIST("Tracks/Truth/hTauEta"))->Fill(eta(particle.px(),particle.py(),particle.pz())); + histos.get(HIST("Tracks/Truth/hTauPt"))->Fill(pt(particle.px(), particle.py())); + histos.get(HIST("Tracks/Truth/hTauP"))->Fill(momentum(particle.px(), particle.py(), particle.pz())); + histos.get(HIST("Tracks/Truth/hTauPhi"))->Fill(phi(particle.px(), particle.py())); + histos.get(HIST("Tracks/Truth/hTauEta"))->Fill(eta(particle.px(), particle.py(), particle.pz())); const auto& daughters = particle.daughters_as(); histos.get(HIST("Events/Truth/hNtauDaughters"))->Fill(daughters.size()); for (const auto& daughter : daughters) { histos.get(HIST("Events/Truth/hPDGcodesTauDaughters"))->Fill(daughter.pdgCode()); if (enumMyParticle(daughter.pdgCode()) == P_ELECTRON) { countElectrons++; - histos.get(HIST("Tracks/Truth/hElectronPt"))->Fill(pt(daughter.px(),daughter.py())); - histos.get(HIST("Tracks/Truth/hElectronP"))->Fill(momentum(daughter.px(),daughter.py(),daughter.pz())); - histos.get(HIST("Tracks/Truth/hElectronPhi"))->Fill(phi(daughter.px(),daughter.py())); - histos.get(HIST("Tracks/Truth/hElectronEta"))->Fill(eta(daughter.px(),daughter.py(),daughter.pz())); + histos.get(HIST("Tracks/Truth/hElectronPt"))->Fill(pt(daughter.px(), daughter.py())); + histos.get(HIST("Tracks/Truth/hElectronP"))->Fill(momentum(daughter.px(), daughter.py(), daughter.pz())); + histos.get(HIST("Tracks/Truth/hElectronPhi"))->Fill(phi(daughter.px(), daughter.py())); + histos.get(HIST("Tracks/Truth/hElectronEta"))->Fill(eta(daughter.px(), daughter.py(), daughter.pz())); } if (enumMyParticle(daughter.pdgCode()) == P_MUON) { countMuons++; - histos.get(HIST("Tracks/Truth/hMuonPt"))->Fill(pt(daughter.px(),daughter.py())); - histos.get(HIST("Tracks/Truth/hMuonP"))->Fill(momentum(daughter.px(),daughter.py(),daughter.pz())); - histos.get(HIST("Tracks/Truth/hMuonPhi"))->Fill(phi(daughter.px(),daughter.py())); - histos.get(HIST("Tracks/Truth/hMuonEta"))->Fill(eta(daughter.px(),daughter.py(),daughter.pz())); + histos.get(HIST("Tracks/Truth/hMuonPt"))->Fill(pt(daughter.px(), daughter.py())); + histos.get(HIST("Tracks/Truth/hMuonP"))->Fill(momentum(daughter.px(), daughter.py(), daughter.pz())); + histos.get(HIST("Tracks/Truth/hMuonPhi"))->Fill(phi(daughter.px(), daughter.py())); + histos.get(HIST("Tracks/Truth/hMuonEta"))->Fill(eta(daughter.px(), daughter.py(), daughter.pz())); } if (enumMyParticle(daughter.pdgCode()) == P_PION) { countPions++; - histos.get(HIST("Tracks/Truth/hPionPt"))->Fill(pt(daughter.px(),daughter.py())); - histos.get(HIST("Tracks/Truth/hPionP"))->Fill(momentum(daughter.px(),daughter.py(),daughter.pz())); - histos.get(HIST("Tracks/Truth/hPionPhi"))->Fill(phi(daughter.px(),daughter.py())); - histos.get(HIST("Tracks/Truth/hPionEta"))->Fill(eta(daughter.px(),daughter.py(),daughter.pz())); + histos.get(HIST("Tracks/Truth/hPionPt"))->Fill(pt(daughter.px(), daughter.py())); + histos.get(HIST("Tracks/Truth/hPionP"))->Fill(momentum(daughter.px(), daughter.py(), daughter.pz())); + histos.get(HIST("Tracks/Truth/hPionPhi"))->Fill(phi(daughter.px(), daughter.py())); + histos.get(HIST("Tracks/Truth/hPionEta"))->Fill(eta(daughter.px(), daughter.py(), daughter.pz())); } } } @@ -2173,7 +2173,6 @@ struct UpcTauCentralBarrelRL { histos.get(HIST("Events/Truth/hChannels"))->Fill(CH_SIXPI); } - void processDataDG(FullUDCollision const& reconstructedCollision, FullUDTracks const& reconstructedBarrelTracks) {