Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas committed Oct 28, 2024
1 parent d08032a commit 48d01f3
Show file tree
Hide file tree
Showing 20 changed files with 208 additions and 249 deletions.
2 changes: 1 addition & 1 deletion RecoTracker/LSTCore/interface/HitsHostCollection.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#include "DataFormats/Portable/interface/PortableHostCollection.h"

namespace lst {
using HitsHostCollection = PortableHostMultiCollection<HitsSoA, HitsOccupancySoA>;
using HitsHostCollection = PortableHostMultiCollection<HitsSoA, HitsRangesSoA>;
} // namespace lst
#endif
8 changes: 4 additions & 4 deletions RecoTracker/LSTCore/interface/HitsSoA.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ namespace lst {
SOA_COLUMN(float, lowEdgeXs),
SOA_COLUMN(float, lowEdgeYs))

GENERATE_SOA_LAYOUT(HitsOccupancySoALayout,
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 HitsOccupancySoA = HitsOccupancySoALayout<>;
using HitsRangesSoA = HitsRangesSoALayout<>;

using Hits = HitsSoA::View;
using HitsConst = HitsSoA::ConstView;
using HitsOccupancy = HitsOccupancySoA::View;
using HitsOccupancyConst = HitsOccupancySoA::ConstView;
using HitsRanges = HitsRangesSoA::View;
using HitsRangesConst = HitsRangesSoA::ConstView;

} // namespace lst

Expand Down
6 changes: 3 additions & 3 deletions RecoTracker/LSTCore/interface/ModulesSoA.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ namespace lst {
SOA_COLUMN(uint16_t, nConnectedModules),
SOA_COLUMN(float, drdzs),
SOA_COLUMN(float, dxdys),
SOA_SCALAR(uint16_t, nModules),
SOA_SCALAR(uint16_t, nLowerModules),
SOA_COLUMN(uint16_t, partnerModuleIndices),
SOA_COLUMN(short, layers),
SOA_COLUMN(short, rings),
Expand All @@ -40,7 +38,9 @@ namespace lst {
SOA_COLUMN(bool, isAnchor),
SOA_COLUMN(ModuleType, moduleType),
SOA_COLUMN(ModuleLayerType, moduleLayerType),
SOA_COLUMN(int, lstLayers))
SOA_COLUMN(int, lstLayers),
SOA_SCALAR(uint16_t, nModules),
SOA_SCALAR(uint16_t, nLowerModules))

GENERATE_SOA_LAYOUT(ModulesPixelSoALayout, SOA_COLUMN(unsigned int, connectedPixels))

Expand Down
2 changes: 1 addition & 1 deletion RecoTracker/LSTCore/interface/ObjectRangesHostCollection.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#include "DataFormats/Portable/interface/PortableHostCollection.h"

namespace lst {
using ObjectRangesHostCollection = PortableHostMultiCollection<ObjectRangesSoA, ObjectOccupancySoA>;
using ObjectRangesHostCollection = PortableHostCollection<ObjectRangesSoA>;
} // namespace lst
#endif
14 changes: 1 addition & 13 deletions RecoTracker/LSTCore/interface/ObjectRangesSoA.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,10 @@
namespace lst {

GENERATE_SOA_LAYOUT(ObjectRangesSoALayout,
SOA_COLUMN(ArrayIx2, hitRanges),
SOA_COLUMN(int, hitRangesLower),
SOA_COLUMN(int, hitRangesUpper),
SOA_COLUMN(int8_t, hitRangesnLower),
SOA_COLUMN(int8_t, hitRangesnUpper),
SOA_COLUMN(ArrayIx2, mdRanges),
SOA_COLUMN(ArrayIx2, segmentRanges),
SOA_COLUMN(ArrayIx2, trackletRanges),
SOA_COLUMN(ArrayIx2, tripletRanges),
SOA_COLUMN(ArrayIx2, quintupletRanges))

// triplets and quintuplets end up with an ununsed pixel entry at the end
GENERATE_SOA_LAYOUT(ObjectOccupancySoALayout,
SOA_COLUMN(ArrayIx2, quintupletRanges),
SOA_COLUMN(int, miniDoubletModuleIndices),
SOA_COLUMN(int, miniDoubletModuleOccupancy),
SOA_COLUMN(int, segmentModuleIndices),
Expand All @@ -38,12 +29,9 @@ namespace lst {
SOA_SCALAR(uint16_t, nEligibleT5Modules))

using ObjectRangesSoA = ObjectRangesSoALayout<>;
using ObjectOccupancySoA = ObjectOccupancySoALayout<>;

using ObjectRanges = ObjectRangesSoA::View;
using ObjectRangesConst = ObjectRangesSoA::ConstView;
using ObjectOccupancy = ObjectOccupancySoA::View;
using ObjectOccupancyConst = ObjectOccupancySoA::ConstView;

} // namespace lst

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "RecoTracker/LSTCore/interface/HitsSoA.h"

namespace ALPAKA_ACCELERATOR_NAMESPACE::lst {
using HitsDeviceCollection = PortableCollection2<HitsSoA, HitsOccupancySoA>;
using HitsDeviceCollection = PortableCollection2<HitsSoA, HitsRangesSoA>;
} // namespace ALPAKA_ACCELERATOR_NAMESPACE::lst

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "RecoTracker/LSTCore/interface/ObjectRangesSoA.h"

namespace ALPAKA_ACCELERATOR_NAMESPACE::lst {
using ObjectRangesDeviceCollection = PortableCollection2<ObjectRangesSoA, ObjectOccupancySoA>;
using ObjectRangesDeviceCollection = PortableCollection<ObjectRangesSoA>;
} // namespace ALPAKA_ACCELERATOR_NAMESPACE::lst

#endif
Loading

0 comments on commit 48d01f3

Please sign in to comment.