Project
Loading...
Searching...
No Matches
GPUTPCCFPeakFinder.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
15#ifndef O2_GPU_PEAK_FINDER_H
16#define O2_GPU_PEAK_FINDER_H
17
18#include "GPUGeneralKernels.h"
19#include "GPUConstantMem.h"
20
21#include "clusterFinderDefs.h"
22#include "Array2D.h"
23#include "PackedCharge.h"
24
25namespace o2::gpu
26{
27
28struct ChargePos;
29
31{
32 public:
33 static constexpr size_t SCRATCH_PAD_WORK_GROUP_SIZE = GPUCA_GET_THREAD_COUNT(GPUCA_LB_GPUTPCCFPeakFinder);
38
41 {
42 return processors.tpcClusterer;
43 }
44
45 GPUhdi() constexpr static GPUDataTypes::RecoStep GetRecoStep()
46 {
47 return GPUDataTypes::RecoStep::TPCClusterFinding;
48 }
49
50 template <int32_t iKernel = defaultKernel, typename... Args>
51 GPUd() static void Thread(int32_t nBlocks, int32_t nThreads, int32_t iBlock, int32_t iThread, GPUSharedMemory& smem, processorType& clusterer, Args... args);
52
53 private:
54 static GPUd() void findPeaksImpl(int32_t, int32_t, int32_t, int32_t, GPUSharedMemory&, const Array2D<PackedCharge>&, const uint8_t*, const ChargePos*, tpccf::SizeT, const GPUSettingsRec&, const TPCPadGainCalib&, uint8_t*, Array2D<uint8_t>&);
55
56 static GPUd() bool isPeak(GPUSharedMemory&, tpccf::Charge, const ChargePos&, uint16_t, const Array2D<PackedCharge>&, const GPUSettingsRec&, ChargePos*, PackedCharge*);
57};
58
59} // namespace o2::gpu
60
61#endif
#define GPUCA_GET_THREAD_COUNT(...)
int32_t int32_t int32_t processorType & processors
GPUTPCClusterFinder processorType
int32_t int32_t int32_t iThread
GPUhdi() static processorType *Processor(GPUConstantMem &processors)
int32_t int32_t int32_t GPUSharedMemory processorType Args args
GPUd() static void Thread(int32_t nBlocks
GPUhdi() const expr static GPUDataTypes
static constexpr size_t SCRATCH_PAD_WORK_GROUP_SIZE
int32_t int32_t int32_t GPUSharedMemory processorType & clusterer
int32_t int32_t int32_t GPUSharedMemory & smem
#define SCRATCH_PAD_SEARCH_N
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition glcorearb.h:2514
ChargePos posBcast[SCRATCH_PAD_WORK_GROUP_SIZE]