From bb68616b847b2b91c2eb37e36edee4f88a4bc7cd Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 24 Jun 2024 09:19:38 +0200 Subject: [PATCH] Add a converter back to LCIO --- CLDConfig/CLDReconstruction.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CLDConfig/CLDReconstruction.py b/CLDConfig/CLDReconstruction.py index f1eacdc..c1c45b5 100644 --- a/CLDConfig/CLDReconstruction.py +++ b/CLDConfig/CLDReconstruction.py @@ -117,6 +117,8 @@ algList[-1].Lcio2EDM4hepTool = trackDigiConverter +index = len(algList) + # tracker hit digitisation sequenceLoader.load("Tracking/TrackingDigi") @@ -126,6 +128,26 @@ elif CONFIG["Tracking"] == "Conformal": sequenceLoader.load("Tracking/ConformalTracking") +trackingConverter = EDM4hep2LcioTool("InputConverter") +trackingConverter.convertAll = False +trackingConverter.collNameMapping = {"VXDTrackerHitRelations" : "VXDTrackerHitRelations", + "VXDTrackerHits" : "VXDTrackerHits", + "VXDEndcapTrackerHitRelations" : "VXDEndcapTrackerHitRelations", + "VXDEndcapTrackerHits" : "VXDEndcapTrackerHits", + "InnerTrackerBarrelHitsRelations" : "InnerTrackerBarrelHitsRelations", + "ITrackerHits" : "ITrackerHits", + "InnerTrackerEndcapHitsRelations" : "InnerTrackerEndcapHitsRelations", + "ITrackerEndcapHits" : "ITrackerEndcapHits", + "OuterTrackerBarrelHitsRelations" : "OuterTrackerBarrelHitsRelations", + "OTrackerHits" : "OTrackerHits", + "OuterTrackerEndcapHitsRelations" : "OuterTrackerEndcapHitsRelations", + "OuterTrackerEndcapHits" : "OuterTrackerEndcapHits", + } + +trackingConverter.OutputLevel = DEBUG + +algList[index].EDM4hep2LcioTool = trackingConverter + sequenceLoader.load("Tracking/Refit") # calorimeter digitization and pandora