1 #ifndef RecoTracker_LSTCore_src_alpaka_LSTEvent_h 2 #define RecoTracker_LSTCore_src_alpaka_LSTEvent_h 51 std::optional<ObjectRangesDeviceCollection>
rangesDC_;
52 std::optional<HitsDeviceCollection>
hitsDC_;
62 std::optional<ObjectRangesHostCollection>
rangesHC_;
63 std::optional<HitsHostCollection>
hitsHC_;
100 std::vector<float>
const& y,
101 std::vector<float>
const& z,
102 std::vector<unsigned int>
const&
detId,
103 std::vector<unsigned int>
const& idxInNtuple);
105 std::vector<unsigned int>
const& hitIndices1,
106 std::vector<unsigned int>
const& hitIndices2,
107 std::vector<unsigned int>
const& hitIndices3,
108 std::vector<float>
const& dPhiChange,
109 std::vector<float>
const& ptIn,
110 std::vector<float>
const&
ptErr,
111 std::vector<float>
const&
px,
112 std::vector<float>
const&
py,
113 std::vector<float>
const& pz,
114 std::vector<float>
const&
eta,
115 std::vector<float>
const& etaErr,
116 std::vector<float>
const&
phi,
117 std::vector<int>
const&
charge,
118 std::vector<unsigned int>
const& seedIdx,
119 std::vector<int>
const& superbin,
120 std::vector<PixelType>
const& pixelType,
121 std::vector<char>
const& isQuad);
173 template <
typename TSoA,
typename TDev = Device>
174 typename TSoA::ConstView
getHits(
bool inCMSSW =
false,
bool sync =
true);
175 template <
typename TDev = Device>
177 template <
typename TSoA,
typename TDev = Device>
179 template <
typename TSoA,
typename TDev = Device>
180 typename TSoA::ConstView
getSegments(
bool sync =
true);
181 template <
typename TSoA,
typename TDev = Device>
182 typename TSoA::ConstView
getTriplets(
bool sync =
true);
183 template <
typename TSoA,
typename TDev = Device>
185 template <
typename TDev = Device>
187 template <
typename TDev = Device>
190 template <
typename TSoA,
typename TDev = Device>
191 typename TSoA::ConstView
getModules(
bool sync =
true);
unsigned int getNumberOfMiniDoubletsByLayerBarrel(unsigned int layer)
void createPixelTriplets()
unsigned int getNumberOfMiniDoublets()
PixelQuintupletsConst getPixelQuintuplets(bool sync=true)
const TrackCandidatesConst & getTrackCandidates(bool inCMSSW=false, bool sync=true)
void createSegmentsWithModuleMap()
std::optional< TripletsHostCollection > tripletsHC_
unsigned int getNumberOfTripletsByLayerEndcap(unsigned int layer)
void addMiniDoubletsToEventExplicit()
TSoA::ConstView getQuintuplets(bool sync=true)
std::array< unsigned int, 6 > n_triplets_by_layer_barrel_
int getNumberOfT5TrackCandidates()
const unsigned int nEndCapMap_
TSoA::ConstView getTriplets(bool sync=true)
ModulesDeviceCollection const & modules_
std::optional< PixelQuintupletsDeviceCollection > pixelQuintupletsDC_
void addQuintupletsToEventExplicit()
std::optional< PixelTripletsHostCollection > pixelTripletsHC_
const uint16_t nLowerModules_
std::optional< TrackCandidatesDeviceCollection > trackCandidatesDC_
PixelTripletsSoA::ConstView PixelTripletsConst
void addPixelSegmentToEvent(std::vector< unsigned int > const &hitIndices0, std::vector< unsigned int > const &hitIndices1, std::vector< unsigned int > const &hitIndices2, std::vector< unsigned int > const &hitIndices3, std::vector< float > const &dPhiChange, std::vector< float > const &ptIn, std::vector< float > const &ptErr, std::vector< float > const &px, std::vector< float > const &py, std::vector< float > const &pz, std::vector< float > const &eta, std::vector< float > const &etaErr, std::vector< float > const &phi, std::vector< int > const &charge, std::vector< unsigned int > const &seedIdx, std::vector< int > const &superbin, std::vector< PixelType > const &pixelType, std::vector< char > const &isQuad)
void resetObjectsInModule()
std::array< unsigned int, 5 > n_triplets_by_layer_endcap_
std::array< unsigned int, 6 > n_segments_by_layer_barrel_
std::optional< QuintupletsDeviceCollection > quintupletsDC_
std::optional< ModulesHostCollection > modulesHC_
std::array< unsigned int, 5 > n_quintuplets_by_layer_endcap_
std::array< unsigned int, 5 > n_segments_by_layer_endcap_
void pixelLineSegmentCleaning(bool no_pls_dupclean)
int getNumberOfPixelTriplets()
unsigned int getNumberOfQuintuplets()
ObjectRangesConst getRanges(bool sync=true)
unsigned int getNumberOfQuintupletsByLayer(unsigned int layer)
unsigned int getNumberOfMiniDoubletsByLayerEndcap(unsigned int layer)
int getNumberOfPixelQuintuplets()
void addHitToEvent(std::vector< float > const &x, std::vector< float > const &y, std::vector< float > const &z, std::vector< unsigned int > const &detId, std::vector< unsigned int > const &idxInNtuple)
ALPAKA_ACCELERATOR_NAMESPACE::Queue Queue
std::optional< PixelTripletsDeviceCollection > pixelTripletsDC_
TSoA::ConstView getModules(bool sync=true)
PixelMap const & pixelMapping_
unsigned int getNumberOfMiniDoubletsByLayer(unsigned int layer)
unsigned int getNumberOfTripletsByLayer(unsigned int layer)
int getNumberOfPixelTrackCandidates()
PortableCollection< EndcapGeometryDevSoA > EndcapGeometryDevDeviceCollection
TrackCandidatesSoA::ConstView TrackCandidatesConst
void createMiniDoublets()
TSoA::ConstView getMiniDoublets(bool sync=true)
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE float phi(TAcc const &acc, float x, float y)
int getNumberOfPT3TrackCandidates()
const unsigned int nPixels_
TSoA::ConstView getSegments(bool sync=true)
unsigned int getNumberOfSegmentsByLayerEndcap(unsigned int layer)
unsigned int getNumberOfSegmentsByLayerBarrel(unsigned int layer)
EndcapGeometryDevDeviceCollection const & endcapGeometry_
int getNumberOfPT5TrackCandidates()
void createPixelQuintuplets()
std::array< unsigned int, 6 > n_quintuplets_by_layer_barrel_
std::optional< ObjectRangesHostCollection > rangesHC_
unsigned int nTotalSegments_
std::optional< SegmentsHostCollection > segmentsHC_
PixelTripletsConst getPixelTriplets(bool sync=true)
TSoA::ConstView getHits(bool inCMSSW=false, bool sync=true)
LSTEvent(bool verbose, Queue &q, const LSTESData< Device > *deviceESData)
PixelQuintupletsSoA::ConstView PixelQuintupletsConst
std::optional< ObjectRangesDeviceCollection > rangesDC_
std::optional< TripletsDeviceCollection > tripletsDC_
std::optional< HitsDeviceCollection > hitsDC_
void createTrackCandidates(bool no_pls_dupclean, bool tc_pls_triplets)
std::array< unsigned int, 6 > n_minidoublets_by_layer_barrel_
unsigned int getNumberOfSegmentsByLayer(unsigned int layer)
ObjectRangesSoA::ConstView ObjectRangesConst
std::optional< PixelQuintupletsHostCollection > pixelQuintupletsHC_
std::optional< QuintupletsHostCollection > quintupletsHC_
unsigned int getNumberOfSegments()
std::optional< SegmentsDeviceCollection > segmentsDC_
std::optional< MiniDoubletsHostCollection > miniDoubletsHC_
void addTripletsToEventExplicit()
std::array< unsigned int, 5 > n_minidoublets_by_layer_endcap_
int getNumberOfTrackCandidates()
std::optional< HitsHostCollection > hitsHC_
std::optional< TrackCandidatesHostCollection > trackCandidatesHC_
unsigned int getNumberOfQuintupletsByLayerBarrel(unsigned int layer)
unsigned int getNumberOfTriplets()
PortableCollection2< ModulesSoA, ModulesPixelSoA > ModulesDeviceCollection
unsigned int getNumberOfTripletsByLayerBarrel(unsigned int layer)
void addSegmentsToEventExplicit()
int getNumberOfPLSTrackCandidates()
std::optional< MiniDoubletsDeviceCollection > miniDoubletsDC_
unsigned int getNumberOfQuintupletsByLayerEndcap(unsigned int layer)
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE float eta(TAcc const &acc, float x, float y, float z)