Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add module level trigger #4

Merged
merged 16 commits into from
Apr 14, 2021
Merged

Conversation

philiprodrigues
Copy link
Collaborator

This PR adds a ModuleLevelTrigger DAQModule, which takes in TriggerCandidates from the timing system and produces a TriggerDecision for each one, subject to available tokens from the DF subsystem. The PR also contains some fake generators to exercise the MLT and a python confgen to run a simple test setup

…ed in any way

TriggerDecisionEmulator is copied and renamed to ModuleLevelTrigger. TimestampEstimator is also copied. Both are so-far unchanged except for naming and package-specific things (eg namespaces, include guards)
This test job uses IntervalTCCreator to create TCs at fixed time intervals (based on the system clock, rather than TimeSync messages). The TCs are fed into the MLT, which turns them into TDs and pushes them to an output queue, where they languish forever, because nothing is popping them.
Copy link
Member

@eflumerf eflumerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that we are still hard-coded to APA0, but a brief code review looks good and the code builds in my test area. Functionality-based tests were not run, and this PR does not add any unit tests (!!).

@philiprodrigues philiprodrigues merged commit e44e2b9 into develop Apr 14, 2021
@philiprodrigues philiprodrigues deleted the philiprodrigues/import-trigemu branch April 14, 2021 13:42
CharlieBatchelor pushed a commit that referenced this pull request May 2, 2022
Change type of `TriggerCandidate::type` to `TriggerCandidateType`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants