From 3d06bbb3e2bdc7056a39378742f00ba09707fcf2 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 3 Oct 2024 19:49:01 +0000 Subject: [PATCH] Please consider the following formatting changes --- Detectors/GLOQC/include/GLOQC/MatchITSTPCQC.h | 4 ++-- Detectors/GLOQC/src/MatchITSTPCQC.cxx | 13 +++++-------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Detectors/GLOQC/include/GLOQC/MatchITSTPCQC.h b/Detectors/GLOQC/include/GLOQC/MatchITSTPCQC.h index 1aaf34bc244fb..00862dd3c734d 100644 --- a/Detectors/GLOQC/include/GLOQC/MatchITSTPCQC.h +++ b/Detectors/GLOQC/include/GLOQC/MatchITSTPCQC.h @@ -435,8 +435,8 @@ class MatchITSTPCQC std::vector mTBinClOcc; ///< TPC occupancy histo: i-th entry is the integrated occupancy for ~1 orbit starting from the TB = i*mNTPCOccBinLength gsl::span mTPCRefitterOccMap; ///< externally set TPC clusters occupancy map bool mIsHI = false; - float mK0Scaling = 1.f; // permill that we want to keep of K0S - uint64_t mNK0 = 0; // number of found V0s + float mK0Scaling = 1.f; // permill that we want to keep of K0S + uint64_t mNK0 = 0; // number of found V0s ClassDefNV(MatchITSTPCQC, 3); }; diff --git a/Detectors/GLOQC/src/MatchITSTPCQC.cxx b/Detectors/GLOQC/src/MatchITSTPCQC.cxx index 81b5743a58893..d010d7dab96b5 100644 --- a/Detectors/GLOQC/src/MatchITSTPCQC.cxx +++ b/Detectors/GLOQC/src/MatchITSTPCQC.cxx @@ -472,8 +472,7 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx) if (grplhcif->getBeamZ(0) != 1 || grplhcif->getBeamZ(1) != 1) { LOG(info) << "We are in Heavy Ion: Z for beam 0 = " << grplhcif->getBeamZ(0) << " ; Z for beam 1 = " << grplhcif->getBeamZ(1); mIsHI = true; - } - else { + } else { LOG(info) << "We are not in Heavy Ion: Z for beam 0 = " << grplhcif->getBeamZ(0) << " ; Z for beam 1 = " << grplhcif->getBeamZ(1); } } @@ -1064,10 +1063,9 @@ bool MatchITSTPCQC::processV0(int iv, o2::globaltracking::RecoContainer& recoDat const auto& v0id = v0IDs[iv]; ++mNK0; - if (mNK0 % int(1/mK0Scaling) == 0) { + if (mNK0 % int(1 / mK0Scaling) == 0) { LOG(debug) << "Checking " << mNK0 << "th V0: refitting it, since we keep " << mK0Scaling * 100 << "% of all V0s"; - } - else { + } else { LOG(debug) << "Checking " << mNK0 << "th K0: NOT refitting it, but skipping it, since we keep " << mK0Scaling * 100 << "% of all V0s"; return false; } @@ -1089,8 +1087,7 @@ bool MatchITSTPCQC::processV0(int iv, o2::globaltracking::RecoContainer& recoDat LOG(debug) << "Filling K0 histogram with pt = " << v0sel.getPt() << " mass = " << std::sqrt(v0sel.calcMass2AsK0()) << " mult TPC = " << mltTPC; if (!mIsHI) { mK0MassVsPtVsOccpp->Fill(v0sel.getPt(), std::sqrt(v0sel.calcMass2AsK0()), mltTPC); - } - else { + } else { mK0MassVsPtVsOccPbPb->Fill(v0sel.getPt(), std::sqrt(v0sel.calcMass2AsK0()), mltTPC); } return true; @@ -1235,7 +1232,7 @@ void MatchITSTPCQC::setEfficiency(TEfficiency* eff, TH1* hnum, TH1* hden, bool i // we need to force to replace the total histogram, otherwise it will compare it to the previous passed one, and it might get an error of inconsistency in the bin contents if constexpr (false) { // checking - bool bad{false}; + bool bad{false}; LOG(debug) << "Setting efficiency " << eff->GetName() << " from " << hnum->GetName() << " and " << hden->GetName(); LOG(debug) << "Num " << hnum->GetName() << " " << hnum->GetNbinsX() << " " << hnum->GetNbinsY() << " with " << hnum->GetEntries() << " entries"; LOG(debug) << "Den " << hden->GetName() << " " << hden->GetNbinsX() << " " << hden->GetNbinsY() << " with " << hden->GetEntries() << " entries";