Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LHCb
Rec
Commits
2abb07e1
Commit
2abb07e1
authored
1 year ago
by
Sascha Stahl
Browse files
Options
Downloads
Patches
Plain Diff
Change to using HistoDef
parent
0fab44e3
No related branches found
No related tags found
1 merge request
!3555
Monitor algorithm for event variables
Pipeline
#6768621
failed
1 year ago
Stage: test
Stage: .post
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Phys/SelAlgorithms/src/VoidMonitor.cpp
+1
-6
1 addition, 6 deletions
Phys/SelAlgorithms/src/VoidMonitor.cpp
with
1 addition
and
6 deletions
Phys/SelAlgorithms/src/VoidMonitor.cpp
+
1
−
6
View file @
2abb07e1
...
...
@@ -43,9 +43,8 @@ struct EventVariableMonitor final : public base_type {
auto
sc
=
base_type
::
initialize
();
if
(
sc
.
isFailure
()
)
return
sc
;
if
(
m_histogram_title
.
value
().
empty
()
)
m_histogram_title
=
m_histogram_name
.
value
();
m_histogram
.
emplace
(
this
,
m_histogram_name
.
value
(),
m_histo
gram_title
.
valu
e
(),
this
,
m_histogram_name
.
value
(),
m_histo
def
.
value
().
titl
e
(),
Gaudi
::
Accumulators
::
Axis
<
value_type
>
{
static_cast
<
unsigned
int
>
(
m_histodef
.
value
().
bins
()),
m_histodef
.
value
().
lowEdge
(),
m_histodef
.
value
().
highEdge
()}
);
return
sc
;
}
...
...
@@ -59,10 +58,6 @@ private:
Gaudi
::
Property
<
Gaudi
::
Histo1DDef
>
m_histodef
{
this
,
"HistogramDef"
,{
"DefaultTitle"
,
0.
,
1.
,
100
},
"Histogram definition"
};
Gaudi
::
Property
<
std
::
string
>
m_histogram_name
{
this
,
"HistogramName"
,
"Histogram"
,
"Histogram name"
};
Gaudi
::
Property
<
std
::
string
>
m_histogram_title
{
this
,
"HistogramTitle"
,
""
,
"Histogram title (it defaults to the histogram name)"
};
Gaudi
::
Property
<
unsigned
int
>
m_bins
{
this
,
"Bins"
,
100
};
Gaudi
::
Property
<
std
::
pair
<
value_type
,
value_type
>>
m_range
{
this
,
"Range"
,
{
0.
,
1.
}};
mutable
std
::
optional
<
Gaudi
::
Accumulators
::
Histogram
<
1
,
Gaudi
::
Accumulators
::
atomicity
::
full
,
value_type
>>
m_histogram
;
};
...
...
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