diff --git a/edm4hep.yaml b/edm4hep.yaml index 9f3544c3e..c3218aba3 100644 --- a/edm4hep.yaml +++ b/edm4hep.yaml @@ -781,6 +781,19 @@ datatypes: OneToOneRelations: - edm4hep::Track track // the corresponding track + #------------- RecTof + edm4hep::RecTof: + Description: "Reconstructed TOF (time of flight) info." + Author: "EDM4hep authors" + Members: + - float time [ns] // time measurement + - std::array timeExp [ns] // expected time for e(0),mu(1),pi(2),K(3),p(4) + - float sigma // time resolution + - std::array pathLength [mm] // length of flight for e(0),mu(1),pi(2),K(3),p(4) + - edm4hep::Vector3d position [mm] // extrapolated hit position + OneToOneRelations: + - edm4hep::Track track // the corresponding track + interfaces: edm4hep::TrackerHit: Description: "Tracker hit interface class" diff --git a/tools/include/edm4hep2json.hxx b/tools/include/edm4hep2json.hxx index 0849453de..3b2be2a83 100644 --- a/tools/include/edm4hep2json.hxx +++ b/tools/include/edm4hep2json.hxx @@ -13,6 +13,7 @@ #include "edm4hep/RecDqdxCollection.h" #include "edm4hep/RecIonizationClusterCollection.h" #include "edm4hep/ReconstructedParticleCollection.h" +#include "edm4hep/RecTofCollection.h" #include "edm4hep/SimCalorimeterHitCollection.h" #include "edm4hep/SimPrimaryIonizationClusterCollection.h" #include "edm4hep/SimTrackerHitCollection.h" @@ -114,6 +115,8 @@ nlohmann::json processEvent(const podio::Frame& frame, std::vector& insertIntoJson(jsonDict, coll, collList[i]); } else if (coll->getTypeName() == "edm4hep::RecDqdxCollection") { insertIntoJson(jsonDict, coll, collList[i]); + } else if (coll->getTypeName() == "edm4hep::RecTofCollection") { + insertIntoJson(jsonDict, coll, collList[i]); } // Associations else if (coll->getTypeName() == "edm4hep::MCRecoParticleAssociationCollection") {