-
Notifications
You must be signed in to change notification settings - Fork 6
Add edm4eic::Jet
#118
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
Open
ruse-traveler
wants to merge
4
commits into
main
Choose a base branch
from
add-jet-type
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add edm4eic::Jet
#118
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -539,6 +539,23 @@ datatypes: | |
| OneToManyRelations: | ||
| - edm4eic::ReconstructedParticle hadrons // Reconstructed hadrons used in calculation | ||
|
|
||
| ## ========================================================================== | ||
| ## Jets | ||
| ## ========================================================================== | ||
|
|
||
| edm4eic::Jet: | ||
| Description: "A reconstructed jet, inspired by the FastJet PseudoJet" | ||
| Author: "D. Anderson" | ||
| Members: | ||
| - uint32_t type // type of jet (0 - kt, 1 - C/A, 2 - anti-kt, ...) | ||
| - float area // jet area | ||
| - float energy // jet energy [GeV] | ||
| - float backgroundEnergy // background energy density * area [GeV] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (showing my ignorance here), I suppose the background energy density is rarely used, which is why you go for the product here instead? |
||
| - edm4hep::Vector3f momentum // jet 3-momentum [GeV] | ||
| OneToManyRelations: | ||
| - edm4eic::Jet jets // jets that have been combined to form this jet | ||
| - edm4eic::ReconstructedParticle constituents // constituents of this jet | ||
|
|
||
| ## ========================================================================== | ||
| ## Data-Montecarlo relations | ||
| ## ========================================================================== | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would propose to either
static constvalues that define each type, orFor the second part we have defined labels in EDM4hep that define the name of some metadata (Frame) parameter under which this information can be obtained, e.g.: https://github.com/key4hep/EDM4hep/blob/4d2242478347716d05b86c927fa6337764a5af62/edm4hep.yaml#L404
The labels are defined, here:
https://github.com/key4hep/EDM4hep/blob/4d2242478347716d05b86c927fa6337764a5af62/include/edm4hep/Constants.h#L25-L45