/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/TrackingRecHitSoA/interface/TrackingRecHitsSoA.h
70 строк
3 KB
markus
Remove MultiCollections from TrackingRecHitSoA
14 янв 2026, 11:47
14 янв 2026, 11:47
0685b5b
Код
Авторство
О чём код?
#ifndef DataFormats_TrackingRecHitSoA_interface_TrackingRecHitsSoA_h #define DataFormats_TrackingRecHitSoA_interface_TrackingRecHitsSoA_h #include <Eigen/Dense> #include "DataFormats/SoATemplate/interface/SoALayout.h" #include "DataFormats/SoATemplate/interface/SoABlocks.h" #include "DataFormats/TrackingRecHitSoA/interface/SiPixelHitStatus.h" #include "Geometry/CommonTopologies/interface/SimplePixelTopology.h" #include "HeterogeneousCore/AlpakaInterface/interface/HistoContainer.h" namespace reco { GENERATE_SOA_LAYOUT(TrackingHitsLayout, SOA_COLUMN(float, xLocal), SOA_COLUMN(float, yLocal), SOA_COLUMN(float, xerrLocal), SOA_COLUMN(float, yerrLocal), SOA_COLUMN(float, xGlobal), SOA_COLUMN(float, yGlobal), SOA_COLUMN(float, zGlobal), SOA_COLUMN(float, rGlobal), SOA_COLUMN(int16_t, iphi), SOA_COLUMN(SiPixelHitStatusAndCharge, chargeAndStatus), SOA_COLUMN(int16_t, clusterSizeX), SOA_COLUMN(int16_t, clusterSizeY), SOA_COLUMN(uint16_t, detectorIndex), SOA_SCALAR(int32_t, offsetBPIX2)); GENERATE_SOA_LAYOUT(HitModulesLayout, SOA_COLUMN(uint32_t, moduleStart)); GENERATE_SOA_BLOCKS(TrackingBlocksLayout, SOA_BLOCK(trackingHits, TrackingHitsLayout), SOA_BLOCK(hitModules, HitModulesLayout)) // N.B. this layout is not really included by default in the hits SoA // This holds the needed parameters to activate (via ONLY_TRIPLETS_IN_HOLE) the // calculations to check if a triplet points to the disk hole // and then retain only those that fulfil this requirement. // At the moment this feature is not fully (re)implemented. GENERATE_SOA_LAYOUT(AverageGeometryLayout, SOA_COLUMN(float, ladderZ), SOA_COLUMN(float, ladderX), SOA_COLUMN(float, ladderY), SOA_COLUMN(float, ladderR), SOA_COLUMN(float, ladderMinZ), SOA_COLUMN(float, ladderMaxZ), SOA_SCALAR(int32_t, endCapZPos), SOA_SCALAR(int32_t, endCapZNeg)) using TrackingRecHitSoA = TrackingHitsLayout<>; using TrackingRecHitView = TrackingRecHitSoA::View; using TrackingRecHitConstView = TrackingRecHitSoA::ConstView; using HitModuleSoA = HitModulesLayout<>; using HitModuleSoAView = HitModuleSoA::View; using HitModuleSoAConstView = HitModuleSoA::ConstView; using TrackingBlocksSoA = TrackingBlocksLayout<>; using TrackingBlocksSoAView = TrackingBlocksSoA::View; using TrackingBlocksSoAConstView = TrackingBlocksSoA::ConstView; using AverageGeometrySoA = AverageGeometryLayout<>; using AverageGeometryView = AverageGeometrySoA::View; using AverageGeometryConstView = AverageGeometrySoA::ConstView; }; // namespace reco #endif