forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'CMSSW_14_1_0_pre3_LST_X_LSTCore_realfiles_batch7' into …
…mds_soa
- Loading branch information
Showing
14 changed files
with
294 additions
and
338 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
10 changes: 10 additions & 0 deletions
10
RecoTracker/LSTCore/interface/TrackCandidatesHostCollection.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,10 @@ | ||
#ifndef RecoTracker_LSTCore_interface_TrackCandidatesHostCollection_h | ||
#define RecoTracker_LSTCore_interface_TrackCandidatesHostCollection_h | ||
|
||
#include "RecoTracker/LSTCore/interface/TrackCandidatesSoA.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
|
||
namespace lst { | ||
using TrackCandidatesHostCollection = PortableHostCollection<TrackCandidatesSoA>; | ||
} // 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef RecoTracker_LSTCore_interface_TrackCandidatesSoA_h | ||
#define RecoTracker_LSTCore_interface_TrackCandidatesSoA_h | ||
|
||
#include <alpaka/alpaka.hpp> | ||
#include "DataFormats/Common/interface/StdArray.h" | ||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
|
||
#include "RecoTracker/LSTCore/interface/Constants.h" | ||
|
||
namespace lst { | ||
GENERATE_SOA_LAYOUT(TrackCandidatesSoALayout, | ||
SOA_COLUMN(short, trackCandidateType), // 4-T5 5-pT3 7-pT5 8-pLS | ||
SOA_COLUMN(unsigned int, directObjectIndices), // direct indices to each type containers | ||
SOA_COLUMN(ArrayUx2, objectIndices), // tracklet and triplet indices | ||
SOA_COLUMN(Params_pT5::ArrayU8xLayers, logicalLayers), // | ||
SOA_COLUMN(Params_pT5::ArrayUxHits, hitIndices), // | ||
SOA_COLUMN(int, pixelSeedIndex), // | ||
SOA_COLUMN(Params_pT5::ArrayU16xLayers, lowerModuleIndices), // | ||
SOA_COLUMN(FPX, centerX), // | ||
SOA_COLUMN(FPX, centerY), // | ||
SOA_COLUMN(FPX, radius), // | ||
SOA_SCALAR(unsigned int, nTrackCandidates), // | ||
SOA_SCALAR(unsigned int, nTrackCandidatespT3), // | ||
SOA_SCALAR(unsigned int, nTrackCandidatespT5), // | ||
SOA_SCALAR(unsigned int, nTrackCandidatespLS), // | ||
SOA_SCALAR(unsigned int, nTrackCandidatesT5)) // | ||
|
||
using TrackCandidatesSoA = TrackCandidatesSoALayout<>; | ||
using TrackCandidates = TrackCandidatesSoA::View; | ||
using TrackCandidatesConst = TrackCandidatesSoA::ConstView; | ||
} // 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
10 changes: 10 additions & 0 deletions
10
RecoTracker/LSTCore/interface/alpaka/TrackCandidatesDeviceCollection.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,10 @@ | ||
#ifndef RecoTracker_LSTCore_interface_TrackCandidatesDeviceCollection_h | ||
#define RecoTracker_LSTCore_interface_TrackCandidatesDeviceCollection_h | ||
|
||
#include "RecoTracker/LSTCore/interface/TrackCandidatesSoA.h" | ||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE::lst { | ||
using TrackCandidatesDeviceCollection = PortableCollection<TrackCandidatesSoA>; | ||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE::lst | ||
#endif |
Oops, something went wrong.