From 4001c3631d07453762c30556f92c8bf38ea290ee Mon Sep 17 00:00:00 2001 From: zwu0922 Date: Wed, 17 Apr 2024 11:56:42 +0200 Subject: [PATCH] change function name: xtalk_get_cell_indices --- .../xtalk_neighbors_moduleThetaMergedSegmentation.h | 2 +- ...xtalk_neighbors_moduleThetaMergedSegmentation.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h b/detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h index 2441463a5..52a735aea 100644 --- a/detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h +++ b/detectorCommon/include/detectorCommon/xtalk_neighbors_moduleThetaMergedSegmentation.h @@ -44,7 +44,7 @@ std::vector> xtalk_neighbours_ModuleThetaMerged(cons uint64_t aCellId); // debug: return cell layer/module/theta indices -std::vector xtalk_get_cell_position(const dd4hep::DDSegmentation::FCCSWGridModuleThetaMerged_k4geo& aSeg, +std::vector xtalk_get_cell_indices(const dd4hep::DDSegmentation::FCCSWGridModuleThetaMerged_k4geo& aSeg, const dd4hep::DDSegmentation::BitFieldCoder& aDecoder, const std::vector& aFieldNames, uint64_t aCellId); diff --git a/detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp b/detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp index d35f8e87e..10019fedd 100644 --- a/detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp +++ b/detectorCommon/src/xtalk_neighbors_moduleThetaMergedSegmentation.cpp @@ -213,7 +213,7 @@ std::vector> xtalk_neighbours_ModuleThetaMerged(cons } // return indices of layer/module/theta fields of a give cell. This is a function to be used for debug purpose -std::vector xtalk_get_cell_position(const dd4hep::DDSegmentation::FCCSWGridModuleThetaMerged_k4geo& aSeg, +std::vector xtalk_get_cell_indices(const dd4hep::DDSegmentation::FCCSWGridModuleThetaMerged_k4geo& aSeg, const dd4hep::DDSegmentation::BitFieldCoder& aDecoder, const std::vector& aFieldNames, uint64_t aCellId) { @@ -234,11 +234,11 @@ std::vector xtalk_get_cell_position(const dd4hep::DDSegmentation::FCCSWGrid int layer_id = aDecoder.get(aCellId, aFieldNames[idLayerField]); int module_id = aDecoder.get(aCellId, aFieldNames[idModuleField]); int theta_id = aDecoder.get(aCellId, aFieldNames[idThetaField]); - std::vector cell_position; - cell_position.emplace_back(layer_id); - cell_position.emplace_back(module_id); - cell_position.emplace_back(theta_id); - return cell_position; + std::vector cell_indices; + cell_indices.emplace_back(layer_id); + cell_indices.emplace_back(module_id); + cell_indices.emplace_back(theta_id); + return cell_indices; } }