-
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
1 parent
6f1ea3f
commit 1bbe663
Showing
14 changed files
with
286 additions
and
378 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef RecoTracker_LSTCore_interface_TripletsHostCollection_h | ||
#define RecoTracker_LSTCore_interface_TripletsHostCollection_h | ||
|
||
#include "RecoTracker/LSTCore/interface/TripletsSoA.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
|
||
namespace lst { | ||
using TripletsHostCollection = PortableHostMultiCollection<TripletsSoA, TripletsOccupancySoA>; | ||
} // 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,42 @@ | ||
#ifndef RecoTracker_LSTCore_interface_TripletsSoA_h | ||
#define RecoTracker_LSTCore_interface_TripletsSoA_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(TripletsSoALayout, | ||
SOA_COLUMN(ArrayUx2, segmentIndices), // inner and outer segment indices | ||
SOA_COLUMN(Params_T3::ArrayU16xLayers, lowerModuleIndices), // lower module index in each layer | ||
SOA_COLUMN(Params_T3::ArrayU8xLayers, logicalLayers), // layer ID | ||
SOA_COLUMN(Params_T3::ArrayUxHits, hitIndices), // hit indices | ||
SOA_COLUMN(FPX, betaIn), // beta/chord angle of the inner segment | ||
SOA_COLUMN(float, centerX), // lower/anchor-hit based circle center x | ||
SOA_COLUMN(float, centerY), // lower/anchor-hit based circle center y | ||
SOA_COLUMN(float, radius), // lower/anchor-hit based circle radius | ||
#ifdef CUT_VALUE_DEBUG | ||
SOA_COLUMN(float, zOut), | ||
SOA_COLUMN(float, rtOut), | ||
SOA_COLUMN(float, betaInCut), | ||
#endif | ||
SOA_COLUMN(bool, partOfPT5), // is it used in a pT5 | ||
SOA_COLUMN(bool, partOfT5), // is it used in a T5 | ||
SOA_COLUMN(bool, partOfPT3)); // is it used in a pT3 | ||
|
||
using TripletsSoA = TripletsSoALayout<>; | ||
using Triplets = TripletsSoA::View; | ||
using TripletsConst = TripletsSoA::ConstView; | ||
|
||
GENERATE_SOA_LAYOUT(TripletsOccupancySoALayout, | ||
SOA_COLUMN(unsigned int, nTriplets), | ||
SOA_COLUMN(unsigned int, totOccupancyTriplets)); | ||
|
||
using TripletsOccupancySoA = TripletsOccupancySoALayout<>; | ||
using TripletsOccupancy = TripletsOccupancySoA::View; | ||
using TripletsOccupancyConst = TripletsOccupancySoA::ConstView; | ||
|
||
} // namespace lst | ||
#endif |
10 changes: 10 additions & 0 deletions
10
RecoTracker/LSTCore/interface/alpaka/TripletsDeviceCollection.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_TripletsDeviceCollection_h | ||
#define RecoTracker_LSTCore_interface_TripletsDeviceCollection_h | ||
|
||
#include "RecoTracker/LSTCore/interface/TripletsSoA.h" | ||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE::lst { | ||
using TripletsDeviceCollection = PortableCollection2<TripletsSoA, TripletsOccupancySoA>; | ||
} // 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
Oops, something went wrong.