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

Created algorithm and factory for calculating hadronic final state variables #1405

Conversation

tylerkutz
Copy link
Contributor

Briefly, what does this PR introduce?

This adds and algorithm and corresponding factory for calculating hadronic final state variables. Since this uses a new EDM4eic data type not included in major release 5, the algorithm is only called for major release >= 6.

What kind of change does this PR introduce?

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

Does this PR change default behavior?

Copy link
Member

@veprbl veprbl left a comment

Choose a reason for hiding this comment

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

This could use more guards

src/algorithms/reco/HadronicFinalState.cc Show resolved Hide resolved
src/algorithms/reco/HadronicFinalState.cc Show resolved Hide resolved
src/global/reco/reco.cc Show resolved Hide resolved
src/global/reco/reco.cc Show resolved Hide resolved
@tylerkutz
Copy link
Contributor Author

Thanks @veprbl , I agree that I had left out some necessary guards. Have added them now (not yet pushed though).

I'm having a different problem now. When I compile against my version of EDM4eic and lower the EDM4EIC_VERSION_MAJOR requirement to 5, the algorithm still isn't called...currently trying to figure out why.

@tylerkutz
Copy link
Contributor Author

@veprbl Pushed with additional guards. Passes build checks now.

@veprbl
Copy link
Member

veprbl commented May 5, 2024

EDM4eic 6 should be in the nightly now, let's see how that fares.

@veprbl veprbl added this pull request to the merge queue May 6, 2024
@veprbl
Copy link
Member

veprbl commented May 6, 2024

(Tested that the values are indeed filled)

Merged via the queue into main with commit a392437 May 6, 2024
84 of 87 checks passed
@veprbl veprbl deleted the 1362-need-algorithm-and-factory-for-calculating-hadronic-final-state-variables branch May 6, 2024 04:00
ajentsch pushed a commit that referenced this pull request May 20, 2024
…riables (#1405)

### Briefly, what does this PR introduce?

This adds and algorithm and corresponding factory for calculating
hadronic final state variables. Since this uses a new `EDM4eic` data
type not included in major release 5, the algorithm is only called for
major release >= 6.

### What kind of change does this PR introduce?
- [ ] Bug fix (issue #__)
- [x] New feature (issue #1362 )
- [ ] Documentation update
- [ ] Other: __

### Please check if this PR fulfills the following:
- [ ] Tests for the changes have been added
- [ ] Documentation has been added / updated
- [ ] Changes have been communicated to collaborators

### Does this PR introduce breaking changes? What changes might users
need to make to their code?

### Does this PR change default behavior?

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dmitry Kalinkin <[email protected]>
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.

Need algorithm and factory for calculating hadronic final state variables
2 participants