Project
Loading...
Searching...
No Matches
GPUTPCCFDeconvolution.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_DECONVOLUTION_H
16#define O2_GPU_DECONVOLUTION_H
17
18#include "clusterFinderDefs.h"
19#include "CfUtils.h"
20#include "GPUGeneralKernels.h"
21#include "GPUConstantMem.h"
22#include "GPUTPCClusterFinder.h"
23#include "Array2D.h"
24#include "PackedCharge.h"
25
26namespace o2::gpu
27{
28
30{
31 public:
32 static constexpr size_t SCRATCH_PAD_WORK_GROUP_SIZE = GPUCA_GET_THREAD_COUNT(GPUCA_LB_GPUTPCCFDeconvolution);
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 deconvolutionImpl(int32_t, int32_t, int32_t, int32_t, GPUSharedMemory&, const Array2D<uint8_t>&, Array2D<PackedCharge>&, const ChargePos*, const uint32_t);
55
56 static GPUdi() uint8_t countPeaksInner(uint16_t, const uint8_t*, uint8_t*);
57 static GPUdi() uint8_t countPeaksOuter(uint16_t, uint8_t, const uint8_t*);
58};
59
60} // namespace o2::gpu
61
62#endif
#define GPUCA_GET_THREAD_COUNT(...)
int32_t int32_t int32_t processorType & processors
int32_t int32_t int32_t GPUSharedMemory processorType Args args
GPUd() static void Thread(int32_t nBlocks
GPUhdi() const expr static GPUDataTypes
int32_t int32_t int32_t GPUSharedMemory processorType & clusterer
static constexpr size_t SCRATCH_PAD_WORK_GROUP_SIZE
int32_t int32_t int32_t GPUSharedMemory & smem
GPUhdi() static processorType *Processor(GPUConstantMem &processors)
#define SCRATCH_PAD_COUNT_N
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition glcorearb.h:2514
ChargePos posBcast1[SCRATCH_PAD_WORK_GROUP_SIZE]
uint8_t aboveThresholdBcast[SCRATCH_PAD_WORK_GROUP_SIZE]