From 10c979c717118c7e73b5441e0857b8b96be4b915 Mon Sep 17 00:00:00 2001 From: lintao Date: Tue, 7 May 2024 01:29:19 +0800 Subject: [PATCH 1/2] WIP: Add Reconstructed TOF. --- edm4hep.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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" From 0e2744e12ad2e22748f0d1176899cf740125047b Mon Sep 17 00:00:00 2001 From: lintao Date: Tue, 7 May 2024 16:25:35 +0800 Subject: [PATCH 2/2] Add RecTofCollection in edm4hep2json. --- tools/include/edm4hep2json.hxx | 3 +++ 1 file changed, 3 insertions(+) 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") {