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
00e3011e
Commit
00e3011e
authored
2 years ago
by
Pierre-Alain Loizeau
Browse files
Options
Downloads
Patches
Plain Diff
[BMon] in Tof unpack monitor, use vector as input for the SetBmonChannelMap
parent
6f47785b
No related branches found
No related tags found
1 merge request
!889
[BMon] in Tof unpack monitor, use vector as input for the SetBmonChannelMap
Pipeline
#17989
passed
2 years ago
Stage: documentation
Stage: deploy
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reco/detectors/tof/unpack/CbmTofUnpackMonitor.cxx
+12
-0
12 additions, 0 deletions
reco/detectors/tof/unpack/CbmTofUnpackMonitor.cxx
reco/detectors/tof/unpack/CbmTofUnpackMonitor.h
+3
-34
3 additions, 34 deletions
reco/detectors/tof/unpack/CbmTofUnpackMonitor.h
with
15 additions
and
34 deletions
reco/detectors/tof/unpack/CbmTofUnpackMonitor.cxx
+
12
−
0
View file @
00e3011e
...
...
@@ -53,6 +53,18 @@ CbmTofUnpackMonitor::~CbmTofUnpackMonitor()
}
}
void
CbmTofUnpackMonitor
::
SetBmonChannelMap
(
std
::
vector
<
uint32_t
>
vChanMapIn
)
{
uint32_t
uNbCh
=
vChanMapIn
.
size
();
if
(
8
!=
uNbCh
&&
16
!=
uNbCh
)
{
LOG
(
fatal
)
<<
"Wrong number of channels in call to CbmTofUnpackMonitor::SetBmonChannelMap, "
<<
"only 8 and 16 supported, input here was "
<<
uNbCh
;
}
for
(
UInt_t
uChan
=
0
;
uChan
<
uNbCh
;
++
uChan
)
{
fuBmonChanMap
[
uChan
]
=
vChanMapIn
[
uChan
];
}
}
Bool_t
CbmTofUnpackMonitor
::
CreateHistograms
()
{
/// Avoid name collision for the histos and canvases in Root memory
...
...
This diff is collapsed.
Click to expand it.
reco/detectors/tof/unpack/CbmTofUnpackMonitor.h
+
3
−
34
View file @
00e3011e
...
...
@@ -13,7 +13,9 @@
#include
"TProfile.h"
#include
"TProfile2D.h"
#include
<array>
#include
<cstdint>
#include
<vector>
class
TCanvas
;
...
...
@@ -50,40 +52,7 @@ public:
inline
void
SetSpillThreshold
(
UInt_t
uCntLimit
)
{
fuOffSpillCountLimit
=
uCntLimit
;
}
inline
void
SetSpillThresholdNonPulser
(
UInt_t
uCntLimit
)
{
fuOffSpillCountLimitNonPulser
=
uCntLimit
;
}
inline
void
SetSpillCheckInterval
(
Double_t
dIntervalSec
)
{
fdSpillCheckInterval
=
dIntervalSec
;
}
inline
void
SetBmonChannelMap
(
UInt_t
uChan0
,
UInt_t
uChan1
,
UInt_t
uChan2
,
UInt_t
uChan3
,
UInt_t
uChan4
,
UInt_t
uChan5
,
UInt_t
uChan6
,
UInt_t
uChan7
)
{
fuBmonChanMap
[
0
]
=
uChan0
;
fuBmonChanMap
[
1
]
=
uChan1
;
fuBmonChanMap
[
2
]
=
uChan2
;
fuBmonChanMap
[
3
]
=
uChan3
;
fuBmonChanMap
[
4
]
=
uChan4
;
fuBmonChanMap
[
5
]
=
uChan5
;
fuBmonChanMap
[
6
]
=
uChan6
;
fuBmonChanMap
[
7
]
=
uChan7
;
}
inline
void
SetBmonChannelMap
(
UInt_t
uChan0
,
UInt_t
uChan1
,
UInt_t
uChan2
,
UInt_t
uChan3
,
UInt_t
uChan4
,
UInt_t
uChan5
,
UInt_t
uChan6
,
UInt_t
uChan7
,
UInt_t
uChan8
,
UInt_t
uChan9
,
UInt_t
uChan10
,
UInt_t
uChan11
,
UInt_t
uChan12
,
UInt_t
uChan13
,
UInt_t
uChan14
,
UInt_t
uChan15
)
{
fuBmonChanMap
[
0
]
=
uChan0
;
fuBmonChanMap
[
1
]
=
uChan1
;
fuBmonChanMap
[
2
]
=
uChan2
;
fuBmonChanMap
[
3
]
=
uChan3
;
fuBmonChanMap
[
4
]
=
uChan4
;
fuBmonChanMap
[
5
]
=
uChan5
;
fuBmonChanMap
[
6
]
=
uChan6
;
fuBmonChanMap
[
7
]
=
uChan7
;
fuBmonChanMap
[
8
]
=
uChan8
;
fuBmonChanMap
[
9
]
=
uChan9
;
fuBmonChanMap
[
10
]
=
uChan10
;
fuBmonChanMap
[
11
]
=
uChan11
;
fuBmonChanMap
[
12
]
=
uChan12
;
fuBmonChanMap
[
13
]
=
uChan13
;
fuBmonChanMap
[
14
]
=
uChan14
;
fuBmonChanMap
[
15
]
=
uChan15
;
}
void
SetBmonChannelMap
(
std
::
vector
<
uint32_t
>
vChanMapIn
);
void
SetLongDurationLimits
(
UInt_t
uDurationSeconds
,
UInt_t
uBinSize
)
{
...
...
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