Skip to content

Commit

Permalink
Rename existing tracker hit
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Feb 8, 2024
1 parent 81a7bcb commit cdf2324
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions edm4hep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ datatypes:
- edm4hep::ParticleID particleIDs //particle IDs (sorted by their likelihood)

#------------- TrackerHit
edm4hep::TrackerHit:
edm4hep::TrackerHit3D:
Description: "Tracker hit"
Author: "F.Gaede, DESY"
Members:
Expand Down Expand Up @@ -408,7 +408,7 @@ datatypes:
- edm4hep::TrackState trackStates //track states
- edm4hep::Quantity dxQuantities // different measurements of dx quantities
OneToManyRelations:
- edm4hep::TrackerHit trackerHits //hits that have been used to create this track
- edm4hep::TrackerHit3D trackerHits //hits that have been used to create this track
- edm4hep::Track tracks //tracks (segments) that have been combined to create this track

#---------- Vertex
Expand Down Expand Up @@ -483,7 +483,7 @@ datatypes:
Members:
- float weight // weight of this association
OneToOneRelations:
- edm4hep::TrackerHit rec // reference to the reconstructed hit
- edm4hep::TrackerHit3D rec // reference to the reconstructed hit
- edm4hep::SimTrackerHit sim // reference to the simulated hit

edm4hep::MCRecoTrackerHitPlaneAssociation:
Expand Down
6 changes: 3 additions & 3 deletions tools/include/edm4hep2json.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "edm4hep/SimTrackerHitCollection.h"
#include "edm4hep/TimeSeriesCollection.h"
#include "edm4hep/TrackCollection.h"
#include "edm4hep/TrackerHitCollection.h"
#include "edm4hep/TrackerHit3DCollection.h"
#include "edm4hep/TrackerHitPlaneCollection.h"
#include "edm4hep/TrackerPulseCollection.h"
#include "edm4hep/VertexCollection.h"
Expand Down Expand Up @@ -92,8 +92,8 @@ nlohmann::json processEvent(const podio::Frame& frame, std::vector<std::string>&
insertIntoJson<edm4hep::ParticleIDCollection>(jsonDict, coll, collList[i]);
} else if (coll->getTypeName() == "edm4hep::ClusterCollection") {
insertIntoJson<edm4hep::ClusterCollection>(jsonDict, coll, collList[i]);
} else if (coll->getTypeName() == "edm4hep::TrackerHitCollection") {
insertIntoJson<edm4hep::TrackerHitCollection>(jsonDict, coll, collList[i]);
} else if (coll->getTypeName() == "edm4hep::TrackerHit3DCollection") {
insertIntoJson<edm4hep::TrackerHit3DCollection>(jsonDict, coll, collList[i]);
} else if (coll->getTypeName() == "edm4hep::TrackerHitPlaneCollection") {
insertIntoJson<edm4hep::TrackerHitPlaneCollection>(jsonDict, coll, collList[i]);
} else if (coll->getTypeName() == "edm4hep::RawTimeSeriesCollection") {
Expand Down

0 comments on commit cdf2324

Please sign in to comment.