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

Homogenize authors and cleanup docstrings #276

Merged
merged 7 commits into from
Feb 22, 2024

Conversation

BrieucF
Copy link
Contributor

@BrieucF BrieucF commented Feb 22, 2024

BEGINRELEASENOTES

ENDRELEASENOTES

Let me know if you want me to remove the two commits homogenizing comments.

Copy link
Contributor

@tmadlener tmadlener left a comment

Choose a reason for hiding this comment

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

Thanks :). I found a few more mentions of parameters or things that we do not use yet.

edm4hep.yaml Outdated
VectorMembers:
- float shapeParameters //shape parameters - check/set collection parameter ClusterShapeParameters for size and names of parameters.
- float subdetectorEnergies //energy observed in a particular subdetector. Check/set collection parameter ClusterSubdetectorNames for decoding the indices of the array.
- float shapeParameters // shape parameters. This should be accompanied by a descriptive list of names in the shapeParameterNames collection level metadata, as a vector of strings with the same ordering.
Copy link
Contributor

Choose a reason for hiding this comment

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

We could even add a constant into edm4hep/Constants.h that is just the name of this, so that there are no typos. Basically the same as we did for the weights vector member in EventHeader.

edm4hep.yaml Outdated
- edm4hep::Vector3d position //hit position in [mm].
- std::array<float,6> covMatrix //covariance of the position (x,y,z), stored as lower triangle matrix. i.e. cov(x,x) , cov(y,x) , cov(y,y) , cov(z,x) , cov(z,y) , cov(z,z)
- uint64_t cellID // ID of the sensor that created this hit.
- int32_t type // type of raw data hit, either one of edm4hep::RawTimeSeries, edm4hep::SIMTRACKERHIT.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- int32_t type // type of raw data hit, either one of edm4hep::RawTimeSeries, edm4hep::SIMTRACKERHIT.
- int32_t type // type of raw data hit.

I don't think we define anything like that at the moment.

edm4hep.yaml Outdated
- edm4hep::Vector3d position //hit position in [mm].
- std::array<float,6> covMatrix //covariance of the position (x,y,z), stored as lower triangle matrix. i.e. cov(x,x) , cov(y,x) , cov(y,y) , cov(z,x) , cov(z,y) , cov(z,z)
- uint64_t cellID // ID of the sensor that created this hit.
- int32_t type // type of raw data hit, either one of edm4hep::RawTimeSeries, edm4hep::SIMTRACKERHIT.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- int32_t type // type of raw data hit, either one of edm4hep::RawTimeSeries, edm4hep::SIMTRACKERHIT.
- int32_t type // type of raw data hit.

We don't define anything like that yet, so I think it's best to just remove it completely.

edm4hep.yaml Outdated
- int32_t subdetectorHitNumbers //number of hits in particular subdetectors.Check/set collection variable TrackSubdetectorNames for decoding the indices
- edm4hep::TrackState trackStates //track states
- edm4hep::Quantity dxQuantities // different measurements of dx quantities
- int32_t subdetectorHitNumbers // number of hits in particular subdetectors.Check/set collection variable TrackSubdetectorNames for decoding the indices.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- int32_t subdetectorHitNumbers // number of hits in particular subdetectors.Check/set collection variable TrackSubdetectorNames for decoding the indices.
- int32_t subdetectorHitNumbers // number of hits in particular subdetectors.

edm4hep.yaml Outdated
Members:
- int32_t type //type of reconstructed particle. Check/set collection parameters ReconstructedParticleTypeNames and ReconstructedParticleTypeValues.
- int32_t type // type of reconstructed particle. Check/set collection parameters ReconstructedParticleTypeNames and ReconstructedParticleTypeValues.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- int32_t type // type of reconstructed particle. Check/set collection parameters ReconstructedParticleTypeNames and ReconstructedParticleTypeValues.
- int32_t type // type of reconstructed particle.

Although we will redefine this as PDG in any case, I think.

@jmcarcell
Copy link
Member

Can you also run sed -i 's/\. *$//' edm4hep.yaml and remove the dots? Now that I see them they are not useful and since the datamodel is being saved to the files it's a few characters less that we don't need

@jmcarcell jmcarcell enabled auto-merge (squash) February 22, 2024 12:47
@tmadlener tmadlener changed the title Homogenization Homogenize authors and cleanup docstrings Feb 22, 2024
@jmcarcell jmcarcell merged commit 23d89b0 into key4hep:main Feb 22, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants