-
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.
migrate EndcapGeometry to SoATemplate
- Loading branch information
Showing
8 changed files
with
68 additions
and
81 deletions.
There are no files selected for viewing
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,20 @@ | ||
#ifndef RecoTracker_LSTCore_interface_EndcapGeometryDevSoA_h | ||
#define RecoTracker_LSTCore_interface_EndcapGeometryDevSoA_h | ||
|
||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
#include "DataFormats/Portable/interface/PortableCollection.h" | ||
|
||
namespace lst { | ||
|
||
GENERATE_SOA_LAYOUT(EndcapGeometryDevSoALayout, SOA_COLUMN(unsigned int, geoMapDetId), SOA_COLUMN(float, geoMapPhi)) | ||
|
||
using EndcapGeometryDevSoA = EndcapGeometryDevSoALayout<>; | ||
|
||
using EndcapGeometryDev = EndcapGeometryDevSoA::View; | ||
using EndcapGeometryDevConst = EndcapGeometryDevSoA::ConstView; | ||
|
||
using EndcapGeometryDevHostCollection = PortableHostCollection<EndcapGeometryDevSoA>; | ||
|
||
} // 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
12 changes: 12 additions & 0 deletions
12
RecoTracker/LSTCore/interface/alpaka/EndcapGeometryDevDeviceCollection.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_EndcapGeometryDevDeviceCollection_h | ||
#define RecoTracker_LSTCore_interface_alpaka_EndcapGeometryDevDeviceCollection_h | ||
|
||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
|
||
#include "RecoTracker/LSTCore/interface/EndcapGeometryDevSoA.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE::lst { | ||
using EndcapGeometryDevDeviceCollection = PortableCollection<EndcapGeometryDevSoA>; | ||
} // 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
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