-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
21 changed files
with
802 additions
and
875 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
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
This file was deleted.
Oops, something went wrong.
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,57 @@ | ||
#ifndef RecoTracker_LSTCore_interface_ModulesSoA_h | ||
#define RecoTracker_LSTCore_interface_ModulesSoA_h | ||
|
||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
#include "DataFormats/Portable/interface/PortableCollection.h" | ||
|
||
namespace lst { | ||
|
||
enum SubDet { InnerPixel = 0, Barrel = 5, Endcap = 4 }; | ||
|
||
enum Side { NegZ = 1, PosZ = 2, Center = 3 }; | ||
|
||
enum ModuleType { PS, TwoS, PixelModule }; | ||
|
||
enum ModuleLayerType { Pixel, Strip, InnerPixelLayer }; | ||
|
||
GENERATE_SOA_LAYOUT(ModulesSoALayout, | ||
SOA_COLUMN(unsigned int, detIds), | ||
SOA_COLUMN(Params_Modules::ArrayU16xMaxConnected, moduleMap), | ||
SOA_COLUMN(unsigned int, mapdetId), | ||
SOA_COLUMN(uint16_t, mapIdx), | ||
SOA_COLUMN(uint16_t, nConnectedModules), | ||
SOA_COLUMN(float, drdzs), | ||
SOA_COLUMN(float, dxdys), | ||
SOA_SCALAR(uint16_t, nModules), | ||
SOA_SCALAR(uint16_t, nLowerModules), | ||
SOA_COLUMN(uint16_t, partnerModuleIndices), | ||
SOA_COLUMN(short, layers), | ||
SOA_COLUMN(short, rings), | ||
SOA_COLUMN(short, modules), | ||
SOA_COLUMN(short, rods), | ||
SOA_COLUMN(short, subdets), | ||
SOA_COLUMN(short, sides), | ||
SOA_COLUMN(float, eta), | ||
SOA_COLUMN(float, r), | ||
SOA_COLUMN(bool, isInverted), | ||
SOA_COLUMN(bool, isLower), | ||
SOA_COLUMN(bool, isAnchor), | ||
SOA_COLUMN(ModuleType, moduleType), | ||
SOA_COLUMN(ModuleLayerType, moduleLayerType), | ||
SOA_COLUMN(int, lstLayers)) | ||
|
||
GENERATE_SOA_LAYOUT(ModulesPixelSoALayout, SOA_COLUMN(unsigned int, connectedPixels)) | ||
|
||
using ModulesSoA = ModulesSoALayout<>; | ||
using ModulesPixelSoA = ModulesPixelSoALayout<>; | ||
|
||
using Modules = ModulesSoA::View; | ||
using ModulesConst = ModulesSoA::ConstView; | ||
using ModulesPixel = ModulesPixelSoA::View; | ||
using ModulesPixelConst = ModulesPixelSoA::ConstView; | ||
|
||
using ModulesHostCollection = PortableHostMultiCollection<ModulesSoA, ModulesPixelSoA>; | ||
|
||
} // namespace lst | ||
|
||
#endif |
12 changes: 12 additions & 0 deletions
12
RecoTracker/LSTCore/interface/alpaka/ModulesDeviceCollection.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_ModulesDeviceCollection_h | ||
#define RecoTracker_LSTCore_interface_alpaka_ModulesDeviceCollection_h | ||
|
||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
|
||
#include "RecoTracker/LSTCore/interface/ModulesSoA.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE::lst { | ||
using ModulesDeviceCollection = PortableCollection2<ModulesSoA, ModulesPixelSoA>; | ||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE::lst | ||
|
||
#endif |
Oops, something went wrong.