Skip to content
17 changes: 17 additions & 0 deletions edm4eic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,23 @@ datatypes:
OneToManyRelations:
- edm4eic::ReconstructedParticle hadrons // Reconstructed hadrons used in calculation

edm4eic::Jet:
Description: "A reconstructed jet, inspired by the FastJet PseudoJet"
Author: "D. Anderson"
Members:
- uint32_t type // Jet type as enumerated in fastjet::JetAlgorithm
- float area // Jet area
- float energy // Jet energy [GeV]
- float backgroundEnergyDensity // Background energy density [GeV/area]
- edm4hep::Vector3f momentum // Jet 3-momentum [GeV]
OneToManyRelations:
- edm4eic::ReconstructedParticle constituents // Constituents of this jet
ExtraCode:
declaration: "
/// Compute the background energy in [GeV]\n
float getBackgroundEnergy() const { return getArea() * getBackgroundEnergyDensity(); }\n
"

## ==========================================================================
## Data-Monte Carlo relations
## ==========================================================================
Expand Down