forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved MD SoA definition to its own header
- Loading branch information
Showing
2 changed files
with
62 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#ifndef RecoTracker_LSTCore_interface_MiniDoubletsSoA_h | ||
#define RecoTracker_LSTCore_interface_MiniDoubletsSoA_h | ||
|
||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE::lst { | ||
|
||
GENERATE_SOA_LAYOUT(MiniDoubletsSoALayout, | ||
SOA_COLUMN(unsigned int, anchorHitIndices), | ||
SOA_COLUMN(unsigned int, outerHitIndices), | ||
SOA_COLUMN(uint16_t, moduleIndices), | ||
SOA_COLUMN(float, dphichanges), | ||
SOA_COLUMN(float, dzs), | ||
SOA_COLUMN(float, dphis), | ||
SOA_COLUMN(float, shiftedXs), | ||
SOA_COLUMN(float, shiftedYs), | ||
SOA_COLUMN(float, shiftedZs), | ||
SOA_COLUMN(float, noShiftedDphis), | ||
SOA_COLUMN(float, noShiftedDphiChanges), | ||
SOA_COLUMN(float, anchorX), | ||
SOA_COLUMN(float, anchorY), | ||
SOA_COLUMN(float, anchorZ), | ||
SOA_COLUMN(float, anchorRt), | ||
SOA_COLUMN(float, anchorPhi), | ||
SOA_COLUMN(float, anchorEta), | ||
SOA_COLUMN(float, anchorHighEdgeX), | ||
SOA_COLUMN(float, anchorHighEdgeY), | ||
SOA_COLUMN(float, anchorLowEdgeX), | ||
SOA_COLUMN(float, anchorLowEdgeY), | ||
SOA_COLUMN(float, anchorLowEdgePhi), | ||
SOA_COLUMN(float, anchorHighEdgePhi), | ||
SOA_COLUMN(float, outerX), | ||
SOA_COLUMN(float, outerY), | ||
SOA_COLUMN(float, outerZ), | ||
SOA_COLUMN(float, outerRt), | ||
SOA_COLUMN(float, outerPhi), | ||
SOA_COLUMN(float, outerEta), | ||
SOA_COLUMN(float, outerHighEdgeX), | ||
SOA_COLUMN(float, outerHighEdgeY), | ||
SOA_COLUMN(float, outerLowEdgeX), | ||
SOA_COLUMN(float, outerLowEdgeY)); | ||
|
||
GENERATE_SOA_LAYOUT(MiniDoubletsOccupancySoALayout, | ||
SOA_COLUMN(unsigned int, nMDs), | ||
SOA_COLUMN(unsigned int, totOccupancyMDs)); | ||
|
||
using MiniDoubletsSoA = MiniDoubletsSoALayout<>; | ||
using MiniDoubletsOccupancySoA = MiniDoubletsOccupancySoALayout<>; | ||
|
||
using MiniDoublets = MiniDoubletsSoA::View; | ||
using MiniDoubletsConst = MiniDoubletsSoA::ConstView; | ||
using MiniDoubletsOccupancy = MiniDoubletsOccupancySoA::View; | ||
using MiniDoubletsOccupancyConst = MiniDoubletsOccupancySoA::ConstView; | ||
|
||
using MiniDoubletsDeviceCollection = PortableCollection2<MiniDoubletsSoA, MiniDoubletsOccupancySoA>; | ||
using MiniDoubletsHostCollection = PortableHostMultiCollection<MiniDoubletsSoA, MiniDoubletsOccupancySoA>; | ||
|
||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE::lst | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters