/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/ParticleFlowReco/interface/PFRecHitSoA.h
33 строки
1 KB
leonardo beltrame
Merged SoAView into SoALayout and added heterogeneous deepCopy for PortableCollections
19 июн 2025, 18:01
19 июн 2025, 18:01
9d7deb8
Код
Авторство
О чём код?
#ifndef DataFormats_ParticleFlowReco_interface_PFRecHitSoA_h #define DataFormats_ParticleFlowReco_interface_PFRecHitSoA_h #include <Eigen/Core> #include <Eigen/Dense> #include "DataFormats/ParticleFlowReco/interface/PFLayer.h" #include "DataFormats/SoATemplate/interface/SoACommon.h" #include "DataFormats/SoATemplate/interface/SoALayout.h" namespace reco { using PFRecHitsNeighbours = Eigen::Matrix<int32_t, 8, 1>; GENERATE_SOA_LAYOUT(PFRecHitSoALayout, SOA_COLUMN(uint32_t, detId), SOA_COLUMN(uint32_t, denseId), SOA_COLUMN(float, energy), SOA_COLUMN(float, time), SOA_COLUMN(int, depth), SOA_COLUMN(PFLayer::Layer, layer), SOA_EIGEN_COLUMN(PFRecHitsNeighbours, neighbours), // Neighbour indices (or -1); order: N, S, E, W, NE, SW, SE, NW SOA_COLUMN(float, x), SOA_COLUMN(float, y), SOA_COLUMN(float, z), SOA_SCALAR(uint32_t, size) // Number of PFRecHits in SoA ) using PFRecHitSoA = PFRecHitSoALayout<>; } // namespace reco #endif // DataFormats_ParticleFlowReco_interface_PFRecHitSoA_h