Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
1b6237d7
Commit
1b6237d7
authored
3 years ago
by
Adrian A. Weber
Committed by
Pierre-Alain Loizeau
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add licence informations and check format
parent
f8ca6210
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!711
Rich online monitor
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reco/detectors/rich/unpack/CbmRichUnpackMonitor.cxx
+9
-17
9 additions, 17 deletions
reco/detectors/rich/unpack/CbmRichUnpackMonitor.cxx
reco/detectors/rich/unpack/CbmRichUnpackMonitor.h
+22
-8
22 additions, 8 deletions
reco/detectors/rich/unpack/CbmRichUnpackMonitor.h
with
31 additions
and
25 deletions
reco/detectors/rich/unpack/CbmRichUnpackMonitor.cxx
+
9
−
17
View file @
1b6237d7
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
reco/detectors/rich/unpack/CbmRichUnpackMonitor.h
+
22
−
8
View file @
1b6237d7
/* 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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment