Skip to content

Commit

Permalink
Remove comments in edm4hep.yaml that don't add any information (key4h…
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored Sep 16, 2024
1 parent d7a209f commit 84c5268
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 37 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,41 @@ A generic event data model for future HEP collider experiments.
|-|-|-|
| [Vector4f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L9) | [Vector3f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L34) | [Vector3d](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L56) |
| [Vector2i](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L84) | [Vector2f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L104) | [TrackState](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L203) |
| [Quantity](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L232) | [CovMatrix2f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L123) | [CovMatrix3f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L143) |
| [CovMatrix4f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L162) | [CovMatrix6f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L182) | |
| [Quantity](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L233) | [CovMatrix2f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L124) | [CovMatrix3f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L144) |
| [CovMatrix4f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L163) | [CovMatrix6f](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L183) | |


**Datatypes**

| | | |
|-|-|-|
| [EventHeader](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L241) | [MCParticle](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L253) | [SimTrackerHit](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L321) |
| [CaloHitContribution](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L363) | [SimCalorimeterHit](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L375) | [RawCalorimeterHit](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L387) |
| [CalorimeterHit](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L396) | [ParticleID](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L408) | [Cluster](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L423) |
| [TrackerHit3D](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L455) | [TrackerHitPlane](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L481) | [RawTimeSeries](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L511) |
| [Track](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L525) | [Vertex](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L542) | [ReconstructedParticle](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L588) |
| [TimeSeries](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L817) | [RecDqdx](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L829) | |
| [EventHeader](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L242) | [MCParticle](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L254) | [SimTrackerHit](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L321) |
| [CaloHitContribution](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L362) | [SimCalorimeterHit](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L374) | [RawCalorimeterHit](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L385) |
| [CalorimeterHit](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L394) | [ParticleID](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L405) | [Cluster](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L419) |
| [TrackerHit3D](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L451) | [TrackerHitPlane](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L477) | [RawTimeSeries](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L507) |
| [Track](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L521) | [Vertex](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L538) | [ReconstructedParticle](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L584) |
| [TimeSeries](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L813) | [RecDqdx](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L825) | |

**Links**

| | | |
|-|-|-|
| [RecoMCParticleLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L626) | [CaloHitSimCaloHitLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L653) | [TrackerHitSimTrackerHitLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L681) |
| [CaloHitMCParticleLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L708) | [ClusterMCParticleLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L735) | [TrackMCParticleLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L762) |
| [VertexRecoParticleLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L789) | | |
| [RecoMCParticleLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L622) | [CaloHitSimCaloHitLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L649) | [TrackerHitSimTrackerHitLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L677) |
| [CaloHitMCParticleLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L704) | [ClusterMCParticleLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L731) | [TrackMCParticleLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L758) |
| [VertexRecoParticleLink](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L785) | | |

**Generator related (meta-)data**

| | | |
|-|-|-|
| [GeneratorEventParameters](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L841) | | |
| [GeneratorPdfInfo](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L858) | | |
| [GeneratorEventParameters](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L837) | | |
| [GeneratorPdfInfo](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L853) | | |

**Interfaces**

| | | |
|-|-|-|
| [TrackerHit](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L869) | | |
| [TrackerHit](https://github.com/key4hep/EDM4hep/blob/main/edm4hep.yaml#L864) | | |

The tests and examples in the `tests` directory show how to read, write, and use these types in your code.

Expand Down
41 changes: 18 additions & 23 deletions edm4hep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ components:
return *( &x + i ) ; }\n
"

# Vector3D with floats

edm4hep::Vector3f:
Members:
- float x
Expand All @@ -52,7 +52,7 @@ components:
return *( &x + i ) ; }\n
"

# Vector3D with doubles

edm4hep::Vector3d:
Members:
- double x
Expand Down Expand Up @@ -80,7 +80,7 @@ components:
return *( &x + i ) ; }\n
"

# Vector2D with ints

edm4hep::Vector2i:
Members:
- int32_t a
Expand All @@ -100,7 +100,7 @@ components:
return *( &a + i ) ; }\n
"

# Vector2D with floats

edm4hep::Vector2f:
Members:
- float a
Expand All @@ -120,6 +120,7 @@ components:
return *( &a + i ) ; }\n
"


edm4hep::CovMatrix2f:
Description: "A generic 2 dimensional covariance matrix with values stored in lower triangular form"
Members:
Expand Down Expand Up @@ -199,8 +200,8 @@ components:
declarationFile: "edm4hep/extra_code/CovMatrixCommon.ipp"


# Parametrized description of a particle track
edm4hep::TrackState:
Description: "Parametrized description of a particle track"
Members:
- int32_t location // for use with At{Other|IP|FirstHit|LastHit|Calorimeter|Vertex}|LastLocation
- float D0 // transverse impact parameter
Expand Down Expand Up @@ -228,7 +229,7 @@ components:
constexpr void setCovMatrix(float value, edm4hep::TrackParams parI, edm4hep::TrackParams parJ) { covMatrix.setValue(value, parI, parJ); }
"

# quantity with an identifier, a value and an error

edm4hep::Quantity:
Members:
- int16_t type // flag identifying how to interpret the quantity
Expand Down Expand Up @@ -317,7 +318,6 @@ datatypes:
"


#----------- SimTrackerHit
edm4hep::SimTrackerHit:
Description: "Simulated tracker hit"
Author: "EDM4hep authors"
Expand Down Expand Up @@ -359,7 +359,6 @@ datatypes:
"


#------------- CaloHitContribution
edm4hep::CaloHitContribution:
Description: "Monte Carlo contribution to SimCalorimeterHit"
Author: "EDM4hep authors"
Expand All @@ -371,7 +370,7 @@ datatypes:
OneToOneRelations:
- edm4hep::MCParticle particle // primary MCParticle that caused the shower responsible for this contribution to the hit

#------------- SimCalorimeterHit

edm4hep::SimCalorimeterHit:
Description: "Simulated calorimeter hit"
Author: "EDM4hep authors"
Expand All @@ -383,7 +382,6 @@ datatypes:
- edm4hep::CaloHitContribution contributions // Monte Carlo step contributions


#------------- RawCalorimeterHit
edm4hep::RawCalorimeterHit:
Description: "Raw calorimeter hit"
Author: "EDM4hep authors"
Expand All @@ -392,7 +390,7 @@ datatypes:
- int32_t amplitude // amplitude of the hit in ADC counts
- int32_t timeStamp // time stamp for the hit

#------------- CalorimeterHit

edm4hep::CalorimeterHit:
Description: "Calorimeter hit"
Author: "EDM4hep authors"
Expand All @@ -404,7 +402,6 @@ datatypes:
- edm4hep::Vector3f position [mm] // position of the hit in world coordinates
- int32_t type // type of hit

#---------- ParticleID
edm4hep::ParticleID:
Description: "ParticleID"
Author: "EDM4hep authors"
Expand All @@ -419,7 +416,6 @@ datatypes:
- edm4hep::ReconstructedParticle particle // the particle from which this PID has been computed


#------ Cluster
edm4hep::Cluster:
Description: "Calorimeter Hit Cluster"
Author: "EDM4hep authors"
Expand Down Expand Up @@ -451,7 +447,7 @@ datatypes:
void setPositionError(float value, edm4hep::Cartesian dimI, edm4hep::Cartesian dimJ) { return getPositionError().setValue(value, dimI, dimJ); }\n
"

#------------- TrackerHit

edm4hep::TrackerHit3D:
Description: "Tracker hit"
Author: "EDM4hep authors"
Expand All @@ -477,7 +473,7 @@ datatypes:
void setCovMatrix(float value, edm4hep::Cartesian dimI, edm4hep::Cartesian dimJ) { getCovMatrix().setValue(value, dimI, dimJ); }\n
"

#------------- TrackerHitPlane

edm4hep::TrackerHitPlane:
Description: "Tracker hit plane"
Author: "EDM4hep authors"
Expand Down Expand Up @@ -507,7 +503,7 @@ datatypes:
void setCovMatrix(float value, edm4hep::Cartesian dimI, edm4hep::Cartesian dimJ) { getCovMatrix().setValue(value, dimI, dimJ); }\n
"

#---------- RawTimeSeries

edm4hep::RawTimeSeries:
Description: "Raw data of a detector readout"
Author: "EDM4hep authors"
Expand All @@ -521,7 +517,7 @@ datatypes:
- int32_t adcCounts // raw data (32-bit) word at i


#-------- Track

edm4hep::Track:
Description: "Reconstructed track"
Author: "EDM4hep authors"
Expand All @@ -538,7 +534,7 @@ datatypes:
- edm4hep::TrackerHit trackerHits // hits that have been used to create this track
- edm4hep::Track tracks // tracks (segments) that have been combined to create this track

#---------- Vertex

edm4hep::Vertex:
Description: "Vertex"
Author: "EDM4hep authors"
Expand Down Expand Up @@ -584,7 +580,7 @@ datatypes:
void setTertiary(bool value=true) { setType(utils::setBit(getType(), BITTertiaryVertex, value)); }\n
"

#------- ReconstructedParticle

edm4hep::ReconstructedParticle:
Description: "Reconstructed Particle"
Author: "EDM4hep authors"
Expand Down Expand Up @@ -813,7 +809,7 @@ datatypes:
void {name}::setRec(const edm4hep::ReconstructedParticle& rec) { setTo(rec); }\n
"

#---------- TimeSeries

edm4hep::TimeSeries:
Description: "Calibrated Detector Data"
Author: "EDM4hep authors"
Expand All @@ -825,7 +821,7 @@ datatypes:
- float amplitude // calibrated detector data


#------------- RecDqdx

edm4hep::RecDqdx:
Description: "dN/dx or dE/dx info of a Track"
Author: "EDM4hep authors"
Expand All @@ -837,7 +833,7 @@ datatypes:

#===== Generator related data =====

#---------- GeneratorEventParameters

edm4hep::GeneratorEventParameters:
Description: "Generator event parameters"
Author: "EDM4hep authors"
Expand All @@ -854,7 +850,6 @@ datatypes:
- edm4hep::MCParticle signalVertex // List of initial state MCParticle that are the source of the hard interaction


#---------- GeneratorPdfInfo
edm4hep::GeneratorPdfInfo:
Description: "Generator pdf information"
Author: "EDM4hep authors"
Expand Down

0 comments on commit 84c5268

Please sign in to comment.