Skip to content
Snippets Groups Projects
Commit 04b92248 authored by Alexandru Bercuci's avatar Alexandru Bercuci
Browse files

clang format

parent a0782c51
No related branches found
No related tags found
1 merge request!1179WIP : TRD2D fixes asked by the community
......@@ -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;
}
......
......
......@@ -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;
......
......
......@@ -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
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment