Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
scdaq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
scouting-demonstrator
scdaq
Commits
ca429f1f
Commit
ca429f1f
authored
8 months ago
by
Giovanna Lazzari Miotto
Browse files
Options
Downloads
Patches
Plain Diff
ref: Sweep lumi indices to lumisection metadata
parent
4446e843
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!107
Draft: ref: output: Rewrite sink functionality
Pipeline
#7850980
passed
8 months ago
Stage: check
Stage: build
Stage: run
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OutputFile.h
+4
-1
4 additions, 1 deletion
src/OutputFile.h
with
4 additions
and
1 deletion
src/OutputFile.h
+
4
−
1
View file @
ca429f1f
...
...
@@ -52,7 +52,10 @@ struct LumisectionMetadata {
:
max_index
(
max_index_per_ls
)
{}
void
UpdateIndex
(
uint32_t
global_index
)
{
assert
(
lumisection
==
(
global_index
/
(
max_index
+
1
)
+
1
));
std
::
cout
<<
"Lumisection = "
<<
lumisection
<<
", index = "
<<
index_in_lumisection
<<
std
::
endl
;
std
::
cout
<<
"New LS = "
<<
(
global_index
/
(
max_index
+
1
)
+
1
)
<<
", global index = "
<<
global_index
<<
std
::
endl
;
assert
(
lumisection
==
0
||
lumisection
==
(
global_index
/
(
max_index
+
1
)
+
1
));
lumisection
=
global_index
/
(
max_index
+
1
)
+
1
;
index_in_lumisection
=
global_index
%
(
max_index
+
1
);
}
...
...
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