Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
ChimeraTK Mirror
ApplicationCore
Commits
1659fcec
Commit
1659fcec
authored
5 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
propagate initial values through TriggerFanOuts
parent
4057cb57
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/TriggerFanOut.h
+9
-8
9 additions, 8 deletions
include/TriggerFanOut.h
with
9 additions
and
8 deletions
include/TriggerFanOut.h
+
9
−
8
View file @
1659fcec
...
...
@@ -64,13 +64,8 @@ namespace ChimeraTK {
void
run
()
{
Application
::
registerThread
(
"TrFO"
+
externalTrigger
->
getName
());
Application
::
testableModeLock
(
"start"
);
ChimeraTK
::
VersionNumber
version
;
while
(
true
)
{
// wait for external trigger
boost
::
this_thread
::
interruption_point
();
Profiler
::
stopMeasurement
();
externalTrigger
->
read
();
Profiler
::
startMeasurement
();
boost
::
this_thread
::
interruption_point
();
// receive data. We need to catch exceptions here, since the ExceptionHandlingDecorator cannot do this for us
// inside a TransferGroup, if the exception is thrown inside doReadTransfer() (as it is directly called on the
// lowest-level TransferElements inside the group).
...
...
@@ -89,9 +84,15 @@ namespace ChimeraTK {
dm
.
reportException
(
e
.
what
());
goto
retry
;
}
// send the data to the consumers
auto
version
=
externalTrigger
->
getVersionNumber
();
// send the version number to the consumers
boost
::
fusion
::
for_each
(
fanOutMap
.
table
,
SendDataToConsumers
(
version
));
// wait for external trigger
boost
::
this_thread
::
interruption_point
();
Profiler
::
stopMeasurement
();
externalTrigger
->
read
();
Profiler
::
startMeasurement
();
boost
::
this_thread
::
interruption_point
();
version
=
externalTrigger
->
getVersionNumber
();
}
}
...
...
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