From f42a6b9ff9688296b716f8c99e567cd7c371f066 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 17 Jul 2025 04:28:08 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGHF/HFL/Tasks/taskSingleElectron.cxx | 95 +++++++++++--------------- 1 file changed, 38 insertions(+), 57 deletions(-) diff --git a/PWGHF/HFL/Tasks/taskSingleElectron.cxx b/PWGHF/HFL/Tasks/taskSingleElectron.cxx index 659667fb1ef..4ed3d6da785 100644 --- a/PWGHF/HFL/Tasks/taskSingleElectron.cxx +++ b/PWGHF/HFL/Tasks/taskSingleElectron.cxx @@ -128,48 +128,40 @@ struct HfTaskSingleElectron { template bool trackSel(TrackType track) { - if (track.pt() > ptTrackMax || track.pt() < ptTrackMin) - { + if (track.pt() > ptTrackMax || track.pt() < ptTrackMin) { return false; - } - if (std::abs(track.eta()) > etaTrackMax) - { + } + if (std::abs(track.eta()) > etaTrackMax) { return false; - } + } int tpcNClsFound = track.tpcNClsCrossedRows(); int tpcNClsFindable = track.tpcNClsFindable(); float tpcFoundOverFindable = (tpcNClsFindable ? static_cast(tpcNClsFound) / static_cast(tpcNClsFindable) : 0); - if (tpcNClsFound < tpcNCrossedRowMin) - { + if (tpcNClsFound < tpcNCrossedRowMin) { return false; - } + } - if (tpcFoundOverFindable < tpcNClsFoundOverFindableMin) - { + if (tpcFoundOverFindable < tpcNClsFoundOverFindableMin) { return false; - } + } - if (track.tpcChi2NCl() > tpcChi2perNClMax) - { + if (track.tpcChi2NCl() > tpcChi2perNClMax) { return false; - } + } - if (!(track.itsNClsInnerBarrel() == itsIBClsMin)) - { + if (!(track.itsNClsInnerBarrel() == itsIBClsMin)) { return false; - } + } - if (std::abs(track.dcaXY()) > dcaxyMax) - { + if (std::abs(track.dcaXY()) > dcaxyMax) { return false; - } + } - if (std::abs(track.dcaZ()) > dcazMax) - { + if (std::abs(track.dcaZ()) > dcazMax) { return false; - } + } histos.fill(HIST("etaTrack"), track.eta()); histos.fill(HIST("ptTrack"), track.pt()); @@ -187,39 +179,33 @@ struct HfTaskSingleElectron { template bool assoTrackSel(TrackType track) { - if (std::abs(track.eta()) > etaTrackMax) - { + if (std::abs(track.eta()) > etaTrackMax) { return false; - } + } - if (track.pt() < ptAssoTrackMin || track.pt() > ptAssoTrackMax) - { + if (track.pt() < ptAssoTrackMin || track.pt() > ptAssoTrackMax) { return false; - } + } int tpcNClsFound = track.tpcNClsCrossedRows(); int tpcNClsFindable = track.tpcNClsFindable(); float tpcFoundOverFindable = (tpcNClsFindable ? static_cast(tpcNClsFound) / static_cast(tpcNClsFindable) : 0); - if (tpcNClsFound < tpcNCrossedRowAssoTrackMin) - { + if (tpcNClsFound < tpcNCrossedRowAssoTrackMin) { return false; - } + } - if (track.tpcChi2NCl() > tpcChi2perNClMax) - { + if (track.tpcChi2NCl() > tpcChi2perNClMax) { return false; - } + } - if (std::abs(track.dcaXY()) > dcaxyMax) - { + if (std::abs(track.dcaXY()) > dcaxyMax) { return false; - } + } - if (std::abs(track.dcaZ()) > dcazMax) - { + if (std::abs(track.dcaZ()) > dcazMax) { return false; - } + } histos.fill(HIST("tpcNClsAsso"), tpcNClsFound); histos.fill(HIST("tpcFoundFindableAsso"), tpcFoundOverFindable); @@ -240,16 +226,14 @@ struct HfTaskSingleElectron { { histos.fill(HIST("hEventCounter"), 0.5); - if (!collision.sel8()) - { + if (!collision.sel8()) { return; - } + } histos.fill(HIST("hEventCounter"), 1.5); - if (collision.numContrib() < nContribMin) - { + if (collision.numContrib() < nContribMin) { return; - } + } histos.fill(HIST("hEventCounter"), 2.5); histos.fill(HIST("VtxZ"), collision.posZ()); @@ -258,25 +242,22 @@ struct HfTaskSingleElectron { for (const auto& track : tracks) { - if (!trackSel(track)) - { + if (!trackSel(track)) { continue; - } + } histos.fill(HIST("tofNSigPt"), track.pt(), track.tofNSigmaEl()); histos.fill(HIST("tpcNSigPt"), track.pt(), track.tpcNSigmaEl()); - if (std::abs(track.tofNSigmaEl()) > tofNSigmaMax) - { + if (std::abs(track.tofNSigmaEl()) > tofNSigmaMax) { continue; - } + } histos.fill(HIST("tofNSigPtQA"), track.pt(), track.tofNSigmaEl()); histos.fill(HIST("tpcNSigPtAfterTofCut"), track.pt(), track.tpcNSigmaEl()); - if (track.tpcNSigmaEl() < tpcNSigmaMin || track.tpcNSigmaEl() > tpcNSigmaMax) - { + if (track.tpcNSigmaEl() < tpcNSigmaMin || track.tpcNSigmaEl() > tpcNSigmaMax) { continue; - } + } histos.fill(HIST("tpcNSigPtQA"), track.pt(), track.tpcNSigmaEl()); histos.fill(HIST("dcaTrack"), track.pt(), track.dcaXY());