Skip to content
Snippets Groups Projects
Commit 1b6237d7 authored by Adrian A. Weber's avatar Adrian A. Weber Committed by Pierre-Alain Loizeau
Browse files

add licence informations and check format

parent f8ca6210
No related branches found
No related tags found
1 merge request!711Rich online monitor
......@@ -26,9 +26,7 @@
#include <cmath>
CbmRichUnpackMonitor::CbmRichUnpackMonitor(/* args */) : vNbMessType(7, 0), fvpAllHistoPointers()
{
}
CbmRichUnpackMonitor::CbmRichUnpackMonitor(/* args */) : vNbMessType(7, 0), fvpAllHistoPointers() {}
CbmRichUnpackMonitor::~CbmRichUnpackMonitor()
{
......@@ -49,10 +47,10 @@ Bool_t CbmRichUnpackMonitor::CreateHistograms(CbmMcbm2018RichPar* pUnpackPar)
fhDigisTimeInRun = new TH1I("hRichDigisTimeInRun", "Digis Nb vs Time in Run; Time in run [s]; Digis Nb []", 10, 0, 1);
fhDigisTimeInRun->SetCanExtend(TH1::kAllAxes);
AddHistoToVector(fhDigisTimeInRun, "");
fhDigisToT = new TH1F("hDigisToT", "fhDigisToT; ToT [ns]; Entries", 400, 0, 40.);
fhDigisTimeInRun->SetCanExtend(TH1::kAllAxes);
AddHistoToVector(fhDigisToT, "");
AddHistoToVector(fhDigisToT, "");
fhVectorSize = new TH1I("fhVectorSize", "Size of the vector VS TS index; TS index; Size [bytes]", 10, 0, 10);
fhVectorSize->SetCanExtend(TH1::kAllAxes);
......@@ -75,15 +73,9 @@ Bool_t CbmRichUnpackMonitor::ResetHistograms()
return kTRUE;
}
Bool_t CbmRichUnpackMonitor::CreateDebugHistograms(CbmMcbm2018RichPar* pUnpackPar)
{
return kTRUE;
}
Bool_t CbmRichUnpackMonitor::CreateDebugHistograms(CbmMcbm2018RichPar* pUnpackPar) { return kTRUE; }
Bool_t CbmRichUnpackMonitor::ResetDebugHistograms()
{
return kTRUE;
}
Bool_t CbmRichUnpackMonitor::ResetDebugHistograms() { return kTRUE; }
// -------------------------------------------------------------------------
......@@ -91,14 +83,14 @@ Bool_t CbmRichUnpackMonitor::ResetDebugHistograms()
void CbmRichUnpackMonitor::FillPerTimesliceCountersHistos(double_t dTsStartTimeS)
{
if (0 == dFirstTsStartTime) dFirstTsStartTime = dTsStartTimeS;
double_t dTimeInRun = dTsStartTimeS - dFirstTsStartTime;
double_t dRatio = 0;
// double_t dTimeInRun = dTsStartTimeS - dFirstTsStartTime;
// double_t dRatio = 0;
}
// -------------------------------------------------------------------------
void CbmRichUnpackMonitor::PrintDebugInfo(const uint64_t MsStartTime, const size_t NrProcessedTs,
const uint16_t msDescriptorFlags, const uint32_t uSize)
const uint16_t msDescriptorFlags, const uint32_t uSize)
{
}
......@@ -140,7 +132,7 @@ void CbmRichUnpackMonitor::Finish()
// open separate histo file in recreate mode
histoFile = new TFile(fHistoFileName, "RECREATE");
histoFile->cd();
/// Write histos to output file
for (UInt_t uHisto = 0; uHisto < vHistos.size(); ++uHisto) {
/// Make sure we end up in chosen folder
......
/* Copyright (C) 2021 Goethe-University, Frankfurt
/* Copyright (C) 2021 Justus Liebig Universität Giessen
SPDX-License-Identifier: GPL-3.0-only
Authors: Adrian Weber [commiter]*/
/**
* @file CbmRichUnpackMonitor.h
* @author Adrian Weber (adrian.a.weber@exp2.physik.uni-giessen.de)
* @brief Monitoring historgrams class for Rich unpacker
* @version 0.1
* @date 2022-02-14
*
* @copyright Copyright (c) 2022
*
* This is the monitoring class for Rich unpacker
*
*/
#ifndef CbmRichUnpackMonitor_H
#define CbmRichUnpackMonitor_H
......@@ -53,9 +67,9 @@ public:
///Fill general histograms
void FillVectorSize(ULong64_t TsIdx, UInt_t Size) { fhVectorSize->Fill(TsIdx, Size); }
void FillVectorCapacity(ULong64_t TsIdx, UInt_t Capacity) { fhVectorCapacity->Fill(TsIdx, Capacity); }
void FillDigisTimeInRun(Double_t Time) { fhDigisTimeInRun->Fill(Time * 1e-9); }
void FillDigisToT(Double_t ToT) { fhDigisToT->Fill(ToT); }
void FillPerTimesliceCountersHistos(double_t dTsStartTime);
......@@ -69,14 +83,14 @@ public:
private:
TString fHistoFileName = "HistosUnpackerRich.root";
double_t dFirstTsStartTime = 0;
///General histograms
TH1* fhDigisTimeInRun = nullptr;
TH1* fhDigisToT = nullptr;
TH1* fhVectorSize = nullptr;
TH1* fhVectorCapacity = nullptr;
TH1* fhDigisTimeInRun = nullptr;
TH1* fhDigisToT = nullptr;
TH1* fhVectorSize = nullptr;
TH1* fhVectorCapacity = nullptr;
/** @brief Flag if debug mode is active or not */
bool fDebugMode = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment