From 96dd9824e840b200f9ebeaf42260cc5809fecb51 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 9 May 2025 16:53:44 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGCF/Femto/DataModel/PionDeuteronTables.h | 2 +- PWGCF/Femto/TableProducer/PiDeuteronFemto.cxx | 29 +++++++++---------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/PWGCF/Femto/DataModel/PionDeuteronTables.h b/PWGCF/Femto/DataModel/PionDeuteronTables.h index f8960279d3f..a537ea5a9e5 100644 --- a/PWGCF/Femto/DataModel/PionDeuteronTables.h +++ b/PWGCF/Femto/DataModel/PionDeuteronTables.h @@ -108,4 +108,4 @@ DECLARE_SOA_TABLE(PionDeuteronMult, "AOD", "PIDEUTERONMULT", } // namespace o2::aod -#endif // PWGCF_DATAMODEL_PIONDEUTERONTABLES_H_ \ No newline at end of file +#endif // PWGCF_DATAMODEL_PIONDEUTERONTABLES_H_ diff --git a/PWGCF/Femto/TableProducer/PiDeuteronFemto.cxx b/PWGCF/Femto/TableProducer/PiDeuteronFemto.cxx index b7914c5e1af..a1897865f71 100644 --- a/PWGCF/Femto/TableProducer/PiDeuteronFemto.cxx +++ b/PWGCF/Femto/TableProducer/PiDeuteronFemto.cxx @@ -8,7 +8,7 @@ // In applying this license CERN does not waive the privileges and immunities // granted to it by virtue of its status as an Intergovernmental Organization // or submit itself to any jurisdiction. -// +// /// \file PiDeuteronFemto.cxx /// \brief Analysis task for Deuteron-Pion femto analysis @@ -80,10 +80,9 @@ using TrackCandidates = soa::Join betheBlochParNames{"p0", "p1", "p2", "p3", "p4", "resolution"}; - enum Selections { kNoCuts = 0, kTrackCuts, @@ -148,7 +147,7 @@ struct PiDeuteronFemto { Produces mOutputDataTable; Produces mOutputMultiplicityTable; - + // Selections Configurable settingCutVertex{"settingCutVertex", 10.0f, "Accepted z-vertex range"}; Configurable settingCutPinMinDe{"settingCutPinMinDe", 0.0f, "Minimum Pin for De"}; @@ -263,11 +262,11 @@ struct PiDeuteronFemto { int mat{static_cast(settingMaterialCorrection)}; mFitter.setMatCorrType(static_cast(mat)); - const int numParticles = 5; + const int numParticles = 5; for (int i = 0; i < numParticles; i++) { mBBparamsDe[i] = settingBetheBlochParams->get("De", Form("p%i", i)); } - mBBparamsDe[5] = settingBetheBlochParams->get("De", "resolution");// wdf? + mBBparamsDe[5] = settingBetheBlochParams->get("De", "resolution"); // wdf? std::vector selectionLabels = {"All", "Track selection", "PID"}; for (int i = 0; i < Selections::kAll; i++) { @@ -388,7 +387,7 @@ struct PiDeuteronFemto { return false; } mQaRegistry.fill(HIST("h2NsigmaPiTOF_preselection"), candidate.pt(), tofNSigmaPi); - if (std::sqrt(tofNSigmaPi*tofNSigmaPi + tpcNSigmaPi*tpcNSigmaPi) > settingCutNsigmaTOFTPCPi) { + if (std::sqrt(tofNSigmaPi * tofNSigmaPi + tpcNSigmaPi * tpcNSigmaPi) > settingCutNsigmaTOFTPCPi) { return false; } mQaRegistry.fill(HIST("h2NsigmaPiTPC"), candidate.pt(), tpcNSigmaPi); @@ -403,8 +402,8 @@ struct PiDeuteronFemto { template float computeNSigmaDe(const Ttrack& candidate) - { - float expTPCSignal = o2::tpc::BetheBlochAleph(static_cast(candidate.tpcInnerParam()/ constants::physics::MassDeuteron), mBBparamsDe[0], mBBparamsDe[1], mBBparamsDe[2], mBBparamsDe[3], mBBparamsDe[4]); + { + float expTPCSignal = o2::tpc::BetheBlochAleph(static_cast(candidate.tpcInnerParam() / constants::physics::MassDeuteron), mBBparamsDe[0], mBBparamsDe[1], mBBparamsDe[2], mBBparamsDe[3], mBBparamsDe[4]); double resoTPC{expTPCSignal * mBBparamsDe[5]}; return static_cast((candidate.tpcSignal() - expTPCSignal) / resoTPC); } @@ -426,12 +425,12 @@ struct PiDeuteronFemto { if (std::abs(tpcNSigmaDe) > settingCutNsigmaTPCDe) { return false; } - if (std::sqrt(tofNSigmaDe*tofNSigmaDe + tpcNSigmaDe*tpcNSigmaDe) > settingCutNsigmaTOFTPCDe) { + if (std::sqrt(tofNSigmaDe * tofNSigmaDe + tpcNSigmaDe * tpcNSigmaDe) > settingCutNsigmaTOFTPCDe) { return false; } o2::aod::ITSResponse mResponseITS; auto itsnSigmaDe = mResponseITS.nSigmaITS(candidate.itsClusterSizes(), candidate.p(), candidate.eta()); - + mQaRegistry.fill(HIST("h2NSigmaDeITS_preselection"), candidate.sign() * candidate.pt(), itsnSigmaDe); if (itsnSigmaDe < settingCutNsigmaITSDe) { return false; @@ -451,7 +450,7 @@ struct PiDeuteronFemto { template bool fillCandidateInfo(const Ttrack& trackDe, const Ttrack& trackPi, const CollBracket& collBracket, const Tcollisions& collisions, PiDecandidate& piDecand, const Ttracks& /*trackTable*/, bool isMixedEvent) - { + { const int numCoordinates = 3; if (!isMixedEvent) { auto trackCovDe = getTrackParCov(trackDe); @@ -495,7 +494,7 @@ struct PiDeuteronFemto { piDecand.momDe = std::array{trackDe.px(), trackDe.py(), trackDe.pz()}; for (int i = 0; i < numCoordinates; i++) - piDecand.momPi = std::array{trackPi.px(), trackPi.py(), trackPi.pz()}; + piDecand.momPi = std::array{trackPi.px(), trackPi.py(), trackPi.pz()}; float invMass = 0; invMass = RecoDecay::m(std::array{piDecand.momDe, piDecand.momPi}, std::array{o2::constants::physics::MassDeuteron, o2::constants::physics::MassPiPlus}); if (settingCutInvMass > 0 && invMass > settingCutInvMass) { @@ -564,8 +563,8 @@ struct PiDeuteronFemto { template void pairTracksSameEvent(const Ttrack& tracks) - { - //LOG(info) << "Number of tracks: " << tracks.size(); + { + // LOG(info) << "Number of tracks: " << tracks.size(); for (const auto& track0 : tracks) { mQaRegistry.fill(HIST("hTrackSel"), Selections::kNoCuts);