forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamic Memory Allocation for LST Objects
- Loading branch information
Showing
21 changed files
with
505 additions
and
431 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
RecoTracker/LSTCore/interface/PixelSegmentsHostCollection.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_PixelSegmentsHostCollection_h | ||
#define RecoTracker_LSTCore_interface_PixelSegmentsHostCollection_h | ||
|
||
#include "RecoTracker/LSTCore/interface/PixelSegmentsSoA.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
|
||
namespace lst { | ||
using PixelSegmentsHostCollection = PortableHostCollection<PixelSegmentsSoA>; | ||
} // 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,40 @@ | ||
#ifndef RecoTracker_LSTCore_interface_PixelSegmentsSoA_h | ||
#define RecoTracker_LSTCore_interface_PixelSegmentsSoA_h | ||
|
||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
#include "DataFormats/Portable/interface/PortableCollection.h" | ||
|
||
#include "RecoTracker/LSTCore/interface/Common.h" | ||
|
||
namespace lst { | ||
|
||
GENERATE_SOA_LAYOUT(PixelSegmentsSoALayout, | ||
SOA_COLUMN(unsigned int, seedIdx), | ||
SOA_COLUMN(int, charge), | ||
SOA_COLUMN(int, superbin), | ||
SOA_COLUMN(uint4, pLSHitsIdxs), | ||
SOA_COLUMN(PixelType, pixelType), | ||
SOA_COLUMN(char, isQuad), | ||
SOA_COLUMN(char, isDup), | ||
SOA_COLUMN(bool, partOfPT5), | ||
SOA_COLUMN(float, ptIn), | ||
SOA_COLUMN(float, ptErr), | ||
SOA_COLUMN(float, px), | ||
SOA_COLUMN(float, py), | ||
SOA_COLUMN(float, pz), | ||
SOA_COLUMN(float, etaErr), | ||
SOA_COLUMN(float, eta), | ||
SOA_COLUMN(float, phi), | ||
SOA_COLUMN(float, score), | ||
SOA_COLUMN(float, circleCenterX), | ||
SOA_COLUMN(float, circleCenterY), | ||
SOA_COLUMN(float, circleRadius)) | ||
|
||
using PixelSegmentsSoA = PixelSegmentsSoALayout<>; | ||
|
||
using PixelSegments = PixelSegmentsSoA::View; | ||
using PixelSegmentsConst = PixelSegmentsSoA::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
13 changes: 13 additions & 0 deletions
13
RecoTracker/LSTCore/interface/alpaka/PixelSegmentsDeviceCollection.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,13 @@ | ||
#ifndef RecoTracker_LSTCore_interface_alpaka_PixelSegmentsDeviceCollection_h | ||
#define RecoTracker_LSTCore_interface_alpaka_PixelSegmentsDeviceCollection_h | ||
|
||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
|
||
#include "RecoTracker/LSTCore/interface/alpaka/Common.h" | ||
#include "RecoTracker/LSTCore/interface/PixelSegmentsSoA.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE::lst { | ||
using PixelSegmentsDeviceCollection = PortableCollection<PixelSegmentsSoA>; | ||
} // 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.