-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
298 additions
and
310 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,43 @@ | ||
#ifndef RecoTracker_LSTCore_interface_HitsSoA_h | ||
#define RecoTracker_LSTCore_interface_HitsSoA_h | ||
|
||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
#include "DataFormats/Portable/interface/PortableCollection.h" | ||
|
||
namespace lst { | ||
|
||
GENERATE_SOA_LAYOUT(HitsSoALayout, | ||
SOA_COLUMN(float, xs), | ||
SOA_COLUMN(float, ys), | ||
SOA_COLUMN(float, zs), | ||
SOA_COLUMN(uint16_t, moduleIndices), | ||
SOA_COLUMN(unsigned int, idxs), | ||
SOA_COLUMN(unsigned int, detid), | ||
SOA_COLUMN(float, rts), | ||
SOA_COLUMN(float, phis), | ||
SOA_COLUMN(float, etas), | ||
SOA_COLUMN(float, highEdgeXs), | ||
SOA_COLUMN(float, highEdgeYs), | ||
SOA_COLUMN(float, lowEdgeXs), | ||
SOA_COLUMN(float, lowEdgeYs)) | ||
|
||
GENERATE_SOA_LAYOUT(HitsOccupancySoALayout, | ||
SOA_COLUMN(ArrayIx2, hitRanges), | ||
SOA_COLUMN(int, hitRangesLower), | ||
SOA_COLUMN(int, hitRangesUpper), | ||
SOA_COLUMN(int8_t, hitRangesnLower), | ||
SOA_COLUMN(int8_t, hitRangesnUpper)) | ||
|
||
using HitsSoA = HitsSoALayout<>; | ||
using HitsOccupancySoA = HitsOccupancySoALayout<>; | ||
|
||
using Hits = HitsSoA::View; | ||
using HitsConst = HitsSoA::ConstView; | ||
using HitsOccupancy = HitsOccupancySoA::View; | ||
using HitsOccupancyConst = HitsOccupancySoA::ConstView; | ||
|
||
using HitsHostCollection = PortableHostMultiCollection<HitsSoA, HitsOccupancySoA>; | ||
|
||
} // namespace lst | ||
|
||
#endif |
12 changes: 12 additions & 0 deletions
12
RecoTracker/LSTCore/interface/alpaka/HitsDeviceCollection.h
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,12 @@ | ||
#ifndef RecoTracker_LSTCore_interface_alpaka_HitsDeviceCollection_h | ||
#define RecoTracker_LSTCore_interface_alpaka_HitsDeviceCollection_h | ||
|
||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
|
||
#include "RecoTracker/LSTCore/interface/HitsSoA.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE::lst { | ||
using HitsDeviceCollection = PortableCollection2<HitsSoA, HitsOccupancySoA>; | ||
} // 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
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
Oops, something went wrong.