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

feat: Conversion and chain code in traccc #3656

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stephenswat
Copy link
Member

This PR adds conversion code as well as the code to run simple host-side chain algorithms using traccc.

This code is highly experimental and perhaps not yet of the highest possible quality; I intend to iterate on this later, but I'd like to get the skeleton in to somewhat stabilize this plugin.

Closes #3281, #3320, #3363, #3505.

@stephenswat
Copy link
Member Author

A little weekend gift for @asalzburger

@github-actions github-actions bot added Infrastructure Changes to build tools, continous integration, ... Component - Examples Affects the Examples module Component - Plugins Affects one or more Plugins Component - Documentation Affects the documentation labels Sep 27, 2024
@stephenswat stephenswat force-pushed the feat/traccc_host branch 4 times, most recently from cebf42a to ba45053 Compare September 29, 2024 04:50
Copy link

github-actions bot commented Sep 29, 2024

📊: Physics performance monitoring for a0c9c25

Full contents

physmon summary

@stephenswat stephenswat force-pushed the feat/traccc_host branch 2 times, most recently from cd6a697 to ea15a01 Compare September 29, 2024 07:26
Copy link

sonarcloud bot commented Sep 29, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 25%)
1 New Bugs (required ≤ 0)
C Reliability Rating on New Code (required ≥ A)
0.0% Line Coverage on New Code (required ≥ 50%)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint


auto traccc = mex.def_submodule("traccc");
auto [_, mex] = ctx.get("main", "examples");
auto m = mex.def_submodule("_traccc");
Copy link
Member

Choose a reason for hiding this comment

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

Does this run the code that adds a submodule multiple times?

Copy link
Contributor

Choose a reason for hiding this comment

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

We anyway need to streamline a bit the python bindings and make it somewhat consistent.

At this point in time, the iterator for `MeasurementContainer` does not
match the `std::forward_iterator` concept which SonarCloud really wants
me to use. In this commit, I make sure that the iterator satisfies the
concept.

Unfortunately, this requires a default-initializer, because
`std::forward_iterator` requires `std::incrementable` which requires
`std::regular`, which requires `std::semiregular` which in turn requires
`std::default_initializable` which I think is silly.
This PR adds conversion code as well as the code to run simple host-side
chain algorithms using traccc.

Co-authored-by: Stephen Nicholas Swatman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Documentation Affects the documentation Component - Examples Affects the Examples module Component - Plugins Affects one or more Plugins Event Data Model Infrastructure Changes to build tools, continous integration, ...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants