Commit bd531a5c authored by Pascal Raisig's avatar Pascal Raisig Committed by Pierre-Alain Loizeau
Browse files

Fix warning message of sts

parent ff3ccc64
......@@ -11,6 +11,7 @@
#include <RtypesCore.h>
#include <cstdint>
#include <iomanip>
// FIXME
// #include "StsXyterFinalHit.h"
......@@ -27,7 +28,7 @@ uint32_t CbmStsUnpackAlgo::getAsicIndex(uint32_t dpbidx, uint32_t crobidx, uint1
uint32_t asicidx = 0;
const int32_t uFebIdx = fElinkIdxToFebIdxVec.at(elinkidx);
uint32_t febtype = fviFebType[fuCurrDpbIdx][crobidx][uFebIdx];
uint32_t febtype = fviFebType[dpbidx][crobidx][uFebIdx];
// Feb type a
if (febtype == 0) asicidx = fElinkIdxToAsicIdxVec.at(elinkidx).first;
// Feb type b
......@@ -35,7 +36,7 @@ uint32_t CbmStsUnpackAlgo::getAsicIndex(uint32_t dpbidx, uint32_t crobidx, uint1
// else would be inactive feb, this was not handled in the previous implementation, this I expect it should not happen
uint32_t uAsicIdx = (fuCurrDpbIdx * fNrCrobPerDpb + crobidx) * fNrAsicsPerCrob + asicidx;
uint32_t uAsicIdx = (dpbidx * fNrCrobPerDpb + crobidx) * fNrAsicsPerCrob + asicidx;
return uAsicIdx;
}
......@@ -693,7 +694,7 @@ bool CbmStsUnpackAlgo::unpack(const fles::Timeslice* ts, std::uint16_t icomp, UI
LOG(info) << "---------------------------------------------------------------";
// Had to remove this line otherwise we would get circle dependencies in the current stage of cbmroot, since we still have Unpackers in the fles folders, which require the reco folders
// LOG(info) << FormatMsHeaderPrintout(msDescriptor);
LOG(warning) << fName << "unpack(...)::Could not find the sDPB index for AFCK id 0x" << std::hex << uCurrDpbId
LOG(warning) << fName << "::unpack(...)::Could not find the sDPB index for AFCK id 0x" << std::hex << uCurrDpbId
<< std::dec << " in timeslice " << fNrProcessedTs << " in microslice " << imslice << " component "
<< icomp << "\n"
<< "If valid this index has to be added in the STS "
......
......@@ -290,13 +290,13 @@ void CbmStsUnpackMonitor::DrawCanvases()
Bool_t CbmStsUnpackMonitor::CreateMsComponentSizeHistos(UInt_t component)
{
if (nullptr == fvhMsSize[component]) {
TString sMsSizeName = Form("MsSize_link_%02lu", component);
TString sMsSizeTitle = Form("Size of MS for nDPB of link %02lu; Ms Size [bytes]", component);
TString sMsSizeName = Form("MsSize_link_%02u", component);
TString sMsSizeTitle = Form("Size of MS for nDPB of link %02u; Ms Size [bytes]", component);
fvhMsSize[component] = new TH1F(sMsSizeName.Data(), sMsSizeTitle.Data(), 30000, 0., 30000.);
fvhMsSize[component]->SetCanExtend(TH2::kAllAxes);
sMsSizeName = Form("MsSizeTime_link_%02lu", component);
sMsSizeTitle = Form("Size of MS vs time for gDPB of link %02lu; Time[s] ; Ms Size [bytes]", component);
sMsSizeName = Form("MsSizeTime_link_%02u", component);
sMsSizeTitle = Form("Size of MS vs time for gDPB of link %02u; Time[s] ; Ms Size [bytes]", component);
fvhMsSizeTime[component] = new TProfile(sMsSizeName.Data(), sMsSizeTitle.Data(), 15000, 0., 300.);
fvhMsSizeTime[component]->SetCanExtend(TH2::kAllAxes);
......
......@@ -89,7 +89,6 @@ void CbmTrdUnpackMonitor::Finish()
TDirectory* oldDir = gDirectory;
/// (Re-)Create ROOT file to store the histos
// std::unique_ptr<TFile> histofile(new TFile(fOutfilename.data(), "RECREATE"));
TFile histofile(fOutfilename.data(), "RECREATE");
nhistos += writeHistosToFile(&fDigiHistoMap, &histofile);
......
......@@ -35,6 +35,7 @@
#include <Rtypes.h> // for types
#include <RtypesCore.h>
#include <TFile.h>
#include <TH1.h>
#include <THttpServer.h> // for histogram server
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment