From 07eaaf74862845ae9958fe09eec8ca8bee606c10 Mon Sep 17 00:00:00 2001 From: Alexandru Bercuci <abercuci@niham.nipne.ro> Date: Thu, 25 May 2023 11:38:09 +0300 Subject: [PATCH] clang format --- reco/detectors/trd/qa/data/CbmTrdHitMC.cxx | 6 +++--- reco/detectors/trd/unpack/CbmTrdUnpackFaspAlgo.cxx | 3 ++- .../detectors/trd/unpack/CbmTrdUnpackFaspMonitor.cxx | 12 +++++++++--- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/reco/detectors/trd/qa/data/CbmTrdHitMC.cxx b/reco/detectors/trd/qa/data/CbmTrdHitMC.cxx index db3f1ea430..2d3090deb2 100644 --- a/reco/detectors/trd/qa/data/CbmTrdHitMC.cxx +++ b/reco/detectors/trd/qa/data/CbmTrdHitMC.cxx @@ -75,13 +75,13 @@ double CbmTrdHitMC::GetSignal(uint idx) const //_____________________________________________________________________ CbmTrdHitMC::eCbmTrdHitMCshape CbmTrdHitMC::GetClShape() const { - if (fCluster.HasOpenStart()) { - if (fCluster.HasOpenStop()) return eCbmTrdHitMCshape::kRT; + if (fCluster.HasStart()) { + if (fCluster.HasStop()) return eCbmTrdHitMCshape::kRT; else return eCbmTrdHitMCshape::kRR; } else { - if (fCluster.HasOpenStop()) return eCbmTrdHitMCshape::kTT; + if (fCluster.HasStop()) return eCbmTrdHitMCshape::kTT; else return eCbmTrdHitMCshape::kTR; } diff --git a/reco/detectors/trd/unpack/CbmTrdUnpackFaspAlgo.cxx b/reco/detectors/trd/unpack/CbmTrdUnpackFaspAlgo.cxx index 9b0dd3273b..028ec5e783 100644 --- a/reco/detectors/trd/unpack/CbmTrdUnpackFaspAlgo.cxx +++ b/reco/detectors/trd/unpack/CbmTrdUnpackFaspAlgo.cxx @@ -223,7 +223,8 @@ bool CbmTrdUnpackFaspAlgo::pushDigis(std::vector<CbmTrdUnpackFaspAlgo::CbmTrdFas const Int_t pad = faspPar->GetPadAddress(imess.ch); const CbmTrdParFaspChannel* chCalib = faspPar->GetChannel(imess.ch); if (chCalib->IsMasked()) { - LOG(warn) << GetName() << "::pushDigis - FASP par " << mod_id * 1000 + lFasp << " ch " << int(imess.ch) << " masked but have data. Masks need attention."; + LOG(warn) << GetName() << "::pushDigis - FASP par " << mod_id * 1000 + lFasp << " ch " << int(imess.ch) + << " masked but have data. Masks need attention."; } const ULong64_t lTime = fTime + tdaqOffset + imess.tlab; const UShort_t lchR = chCalib->HasPairingR() ? imess.data : 0; diff --git a/reco/detectors/trd/unpack/CbmTrdUnpackFaspMonitor.cxx b/reco/detectors/trd/unpack/CbmTrdUnpackFaspMonitor.cxx index 07b3445f47..b2bef60976 100644 --- a/reco/detectors/trd/unpack/CbmTrdUnpackFaspMonitor.cxx +++ b/reco/detectors/trd/unpack/CbmTrdUnpackFaspMonitor.cxx @@ -204,7 +204,7 @@ void CbmTrdUnpackFaspMonitor::createHisto(eDigiHistos kHisto) case eDigiHistos::kMap_St: histoname = getTypeName(kHisto) + "MaskFasp"; - newhisto = std::make_shared<TH2I>(histoname.data(), Form("%s %d", histoname.data(), modId), 2 * ncols, -0.5, + newhisto = std::make_shared<TH2I>(histoname.data(), Form("%s %d", histoname.data(), modId), 2 * ncols, -0.5, (ncols - 0.5), nrows, -0.5, (nrows - 0.5)); newhisto->SetXTitle("COL (pad)"); newhisto->SetYTitle("ROW (pad)"); @@ -225,13 +225,19 @@ void CbmTrdUnpackFaspMonitor::createHisto(eDigiHistos kHisto) newhisto->SetYTitle("FASP-Ch"); newhisto->SetZTitle("Yield"); break; - case eDigiHistos::kDigiDeltaT: + case eDigiHistos::kDigiDeltaT: { + const int npointsDecade = 40; + const int nb = 6 * npointsDecade; + double xa[nb + 1], base = std::pow(10, 1. / npointsDecade); + for (int i(-2 * npointsDecade), j(0); i <= 4 * npointsDecade; i++, j++) + xa[j] = std::pow(base, i); newhisto = std::make_shared<TH2I>(histoname.data(), Form("%s %d", histoname.data(), modId), 2 * nchs, -0.5, - (nchs - 0.5), 1000, 0, 1e2); + (nchs - 0.5), nb, xa); newhisto->SetXTitle("Pad-Id"); newhisto->SetYTitle("Rate_{SGN} [kHz]"); newhisto->SetZTitle("Yield"); break; + } default: return; } LOG(debug) << Class_Name() << "::CreateHisto() HistoDigi " << static_cast<size_t>(kHisto) << " Module " << modId -- GitLab