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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Rob Jones
Rec
Commits
e98d6def
Commit
e98d6def
authored
1 year ago
by
Christopher Rob Jones
Browse files
Options
Downloads
Patches
Plain Diff
RichDLLs: Fix out-of-range access to array of counters
parent
ac01d10d
No related branches found
No related tags found
No related merge requests found
Pipeline
#6749488
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rich/RichFutureRecMonitors/src/RichDLLs.cpp
+2
-2
2 additions, 2 deletions
Rich/RichFutureRecMonitors/src/RichDLLs.cpp
with
2 additions
and
2 deletions
Rich/RichFutureRecMonitors/src/RichDLLs.cpp
+
2
−
2
View file @
e98d6def
...
...
@@ -66,7 +66,7 @@ namespace Rich::Future::Rec::Moni {
withR1
+=
(
pid
->
usedRich1Gas
()
&&
!
pid
->
usedRich2Gas
()
);
withR2
+=
(
pid
->
usedRich2Gas
()
&&
!
pid
->
usedRich1Gas
()
);
withR1R2
+=
(
pid
->
usedRich2Gas
()
&&
pid
->
usedRich1Gas
()
);
for
(
const
auto
id
:
activeParticles
()
)
{
aboveThres
[
id
]
+=
pid
->
isAboveThreshold
(
id
);
}
for
(
const
auto
id
:
activeParticles
NoBT
()
)
{
aboveThres
.
at
(
id
)
+=
pid
->
isAboveThreshold
(
id
);
}
}
{
...
...
@@ -79,7 +79,7 @@ namespace Rich::Future::Rec::Moni {
// Only fill if either X or Y in DLL(X-Y) is above threshold.
// note by design Y is always pion
if
(
pid
->
isAboveThreshold
(
Rich
::
Pion
)
||
pid
->
isAboveThreshold
(
id
)
)
{
fillHisto
(
h_dlls
[
id
]
,
pid
->
particleDeltaLL
(
id
)
);
fillHisto
(
h_dlls
.
at
(
id
)
,
pid
->
particleDeltaLL
(
id
)
);
}
}
}
...
...
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