-
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.
Merge pull request #106 from SegmentLinking/more_soa_migrations
continuing migration to SoA: update LS, migrate ranges, hits, endcap, modules
- Loading branch information
Showing
39 changed files
with
1,560 additions
and
1,656 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 was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
RecoTracker/LSTCore/interface/EndcapGeometryDevHostCollection.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_EndcapGeometryDevHostCollection_h | ||
#define RecoTracker_LSTCore_interface_EndcapGeometryDevHostCollection_h | ||
|
||
#include "RecoTracker/LSTCore/interface/EndcapGeometryDevSoA.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
|
||
namespace lst { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#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; | ||
|
||
} // 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,10 @@ | ||
#ifndef RecoTracker_LSTCore_interface_HitsHostCollection_h | ||
#define RecoTracker_LSTCore_interface_HitsHostCollection_h | ||
|
||
#include "RecoTracker/LSTCore/interface/HitsSoA.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
|
||
namespace lst { | ||
using HitsHostCollection = PortableHostMultiCollection<HitsSoA, HitsRangesSoA>; | ||
} // 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,43 @@ | ||
#ifndef RecoTracker_LSTCore_interface_HitsSoA_h | ||
#define RecoTracker_LSTCore_interface_HitsSoA_h | ||
|
||
#include "DataFormats/SoATemplate/interface/SoALayout.h" | ||
#include "DataFormats/Portable/interface/PortableCollection.h" | ||
|
||
#include "RecoTracker/LSTCore/interface/Constants.h" | ||
|
||
namespace lst { | ||
|
||
GENERATE_SOA_LAYOUT(HitsSoALayout, | ||
SOA_COLUMN(float, xs), | ||
SOA_COLUMN(float, ys), | ||
SOA_COLUMN(float, zs), | ||
SOA_COLUMN(uint16_t, moduleIndices), | ||
SOA_COLUMN(unsigned int, idxs), | ||
SOA_COLUMN(unsigned int, detid), | ||
SOA_COLUMN(float, rts), | ||
SOA_COLUMN(float, phis), | ||
SOA_COLUMN(float, etas), | ||
SOA_COLUMN(float, highEdgeXs), | ||
SOA_COLUMN(float, highEdgeYs), | ||
SOA_COLUMN(float, lowEdgeXs), | ||
SOA_COLUMN(float, lowEdgeYs)) | ||
|
||
GENERATE_SOA_LAYOUT(HitsRangesSoALayout, | ||
SOA_COLUMN(ArrayIx2, hitRanges), | ||
SOA_COLUMN(int, hitRangesLower), | ||
SOA_COLUMN(int, hitRangesUpper), | ||
SOA_COLUMN(int8_t, hitRangesnLower), | ||
SOA_COLUMN(int8_t, hitRangesnUpper)) | ||
|
||
using HitsSoA = HitsSoALayout<>; | ||
using HitsRangesSoA = HitsRangesSoALayout<>; | ||
|
||
using Hits = HitsSoA::View; | ||
using HitsConst = HitsSoA::ConstView; | ||
using HitsRanges = HitsRangesSoA::View; | ||
using HitsRangesConst = HitsRangesSoA::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
10 changes: 10 additions & 0 deletions
10
RecoTracker/LSTCore/interface/MiniDoubletsHostCollection.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_MiniDoubletsHostCollection_h | ||
#define RecoTracker_LSTCore_interface_MiniDoubletsHostCollection_h | ||
|
||
#include "RecoTracker/LSTCore/interface/MiniDoubletsSoA.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
|
||
namespace lst { | ||
using MiniDoubletsHostCollection = PortableHostMultiCollection<MiniDoubletsSoA, MiniDoubletsOccupancySoA>; | ||
} // 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
Oops, something went wrong.