From e1e99cb680e580f7fcfbd0af7079a28953082e90 Mon Sep 17 00:00:00 2001 From: BrieucF Date: Wed, 1 Nov 2023 14:19:29 +0100 Subject: [PATCH 1/2] Synchronizing name for the Cell ID encoding string --- Detector/DetComponents/src/RedoSegmentation.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Detector/DetComponents/src/RedoSegmentation.h b/Detector/DetComponents/src/RedoSegmentation.h index 659a808..17c6056 100644 --- a/Detector/DetComponents/src/RedoSegmentation.h +++ b/Detector/DetComponents/src/RedoSegmentation.h @@ -61,15 +61,12 @@ class RedoSegmentation : public GaudiAlgorithm { /// Handle for the EDM positioned hits to be read DataHandle m_inHits{ "hits/caloInHits", Gaudi::DataHandle::Reader, this}; - /// Handle for the input hits cell id encoding - MetaDataHandle m_inHitsCellIDEncoding{ - m_inHits,"CellIDEncodingString", Gaudi::DataHandle::Reader}; /// Handle for the EDM hits to be written DataHandle m_outHits{ "hits/caloOutHits", Gaudi::DataHandle::Writer, this}; /// Handle for the output hits cell id encoding MetaDataHandle m_outHitsCellIDEncoding{ - m_outHits,"CellIDEncodingString", Gaudi::DataHandle::Writer}; + m_outHits,"CellIDEncoding", Gaudi::DataHandle::Writer}; /// New segmentation dd4hep::DDSegmentation::Segmentation* m_segmentation; int m_segmentationType; // use enum instead? defined in some namespace? From 95a01358c9e1f9c59a4788904fa47173a31b0931 Mon Sep 17 00:00:00 2001 From: BrieucF Date: Wed, 1 Nov 2023 16:18:42 +0100 Subject: [PATCH 2/2] Make clear that 'CellIDEncoding' should be used --- Detector/DetComponents/src/RedoSegmentation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Detector/DetComponents/src/RedoSegmentation.h b/Detector/DetComponents/src/RedoSegmentation.h index 17c6056..d5909e7 100644 --- a/Detector/DetComponents/src/RedoSegmentation.h +++ b/Detector/DetComponents/src/RedoSegmentation.h @@ -64,7 +64,7 @@ class RedoSegmentation : public GaudiAlgorithm { /// Handle for the EDM hits to be written DataHandle m_outHits{ "hits/caloOutHits", Gaudi::DataHandle::Writer, this}; - /// Handle for the output hits cell id encoding + /// Handle for the output hits cell id encoding. The name MUST be "CellIDEncoding" MetaDataHandle m_outHitsCellIDEncoding{ m_outHits,"CellIDEncoding", Gaudi::DataHandle::Writer}; /// New segmentation