forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 8
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
1bbe663
commit 9b8d26d
Showing
12 changed files
with
351 additions
and
406 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_QuintupletsHostCollection_h | ||
#define RecoTracker_LSTCore_interface_QuintupletsHostCollection_h | ||
|
||
#include "RecoTracker/LSTCore/interface/QuintupletsSoA.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
|
||
namespace lst { | ||
using QuintupletsHostCollection = PortableHostMultiCollection<QuintupletsSoA, QuintupletsOccupancySoA>; | ||
} // 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,46 @@ | ||
#ifndef RecoTracker_LSTCore_interface_QuintupletsSoA_h | ||
#define RecoTracker_LSTCore_interface_QuintupletsSoA_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(QuintupletsSoALayout, | ||
SOA_COLUMN(ArrayUx2, tripletIndices), // inner and outer triplet indices | ||
SOA_COLUMN(Params_T5::ArrayU16xLayers, lowerModuleIndices), // lower module index in each layer | ||
SOA_COLUMN(Params_T5::ArrayU8xLayers, logicalLayers), // layer ID | ||
SOA_COLUMN(Params_T5::ArrayUxHits, hitIndices), // hit indices | ||
SOA_COLUMN(FPX, innerRadius), // inner triplet circle radius | ||
SOA_COLUMN(FPX, bridgeRadius), // "middle"/bridge triplet radius | ||
SOA_COLUMN(FPX, outerRadius), // outer triplet radius | ||
SOA_COLUMN(FPX, pt), | ||
SOA_COLUMN(FPX, eta), | ||
SOA_COLUMN(FPX, phi), | ||
SOA_COLUMN(FPX, score_rphisum), // r-phi based score | ||
SOA_COLUMN(char, isDup), // duplicate flag | ||
SOA_COLUMN(bool, tightCutFlag), // tight pass to be a TC | ||
SOA_COLUMN(bool, partOfPT5), | ||
SOA_COLUMN(float, regressionRadius), | ||
SOA_COLUMN(float, regressionG), | ||
SOA_COLUMN(float, regressionF), | ||
SOA_COLUMN(float, rzChiSquared), // r-z only chi2 | ||
SOA_COLUMN(float, chiSquared), | ||
SOA_COLUMN(float, nonAnchorChiSquared)); | ||
|
||
using QuintupletsSoA = QuintupletsSoALayout<>; | ||
using Quintuplets = QuintupletsSoA::View; | ||
using QuintupletsConst = QuintupletsSoA::ConstView; | ||
|
||
GENERATE_SOA_LAYOUT(QuintupletsOccupancySoALayout, | ||
SOA_COLUMN(unsigned int, nQuintuplets), | ||
SOA_COLUMN(unsigned int, totOccupancyQuintuplets)); | ||
|
||
using QuintupletsOccupancySoA = QuintupletsOccupancySoALayout<>; | ||
using QuintupletsOccupancy = QuintupletsOccupancySoA::View; | ||
using QuintupletsOccupancyConst = QuintupletsOccupancySoA::ConstView; | ||
|
||
} // namespace lst | ||
#endif |
10 changes: 10 additions & 0 deletions
10
RecoTracker/LSTCore/interface/alpaka/QuintupletsDeviceCollection.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_QuintupletsDeviceCollection_h | ||
#define RecoTracker_LSTCore_interface_QuintupletsDeviceCollection_h | ||
|
||
#include "RecoTracker/LSTCore/interface/QuintupletsSoA.h" | ||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE::lst { | ||
using QuintupletsDeviceCollection = PortableCollection2<QuintupletsSoA, QuintupletsOccupancySoA>; | ||
} // 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
Oops, something went wrong.