Project
Loading...
Searching...
No Matches
GPUTPCClusterFilter.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 GPUTPCCLUSTERFILTER_H
16
#define GPUTPCCLUSTERFILTER_H
17
18
#include <memory>
19
#include <cstdint>
20
#include <vector>
21
#include "
GPUTPCGeometry.h
"
22
23
namespace
o2::tpc
24
{
25
struct
ClusterNativeAccess;
26
struct
ClusterNative;
27
}
// namespace o2::tpc
28
29
namespace
o2::gpu
30
{
31
class
GPUTPCClusterFilter
32
{
33
public
:
34
GPUTPCClusterFilter
(
const
o2::tpc::ClusterNativeAccess
&
clusters
,
uint8_t
filterType);
35
bool
filter
(
uint32_t
sector
,
uint32_t
row
,
o2::tpc::ClusterNative
& cl);
36
37
private
:
38
static
constexpr
uint32_t
MaxTimeBin = 14256;
39
static
constexpr
uint32_t
MaxStacks = GPUTPCGeometry::NSECTORS * 4;
40
uint8_t
mFilterType = 0;
//< 0: off, 1: custom, 2: PbPb23
41
42
std::unique_ptr<std::vector<int>[]> mClusterStats;
//< Number of clusters per stack and time bin
43
44
uint32_t
getGlobalStack(
uint32_t
sector
,
uint32_t
row
)
const
45
{
46
int
stack
= 3;
47
if
(
row
< 63) {
48
stack
= 0;
49
}
else
if
(
row
< 97) {
50
stack
= 1;
51
}
else
if
(
row
< 127) {
52
stack
= 2;
53
}
54
55
return
sector
* 4 +
stack
;
56
};
57
};
58
}
// namespace o2::gpu
59
60
#endif
sector
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual sector
Definition
GPUSettingsListDisplay.h:44
GPUTPCGeometry.h
stack
uint32_t stack
Definition
RawData.h:1
o2::gpu::GPUTPCClusterFilter
Definition
GPUTPCClusterFilter.h:32
unsigned char
unsigned int
filter
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition
glcorearb.h:1308
o2::gpu
Definition
TrackTRD.h:36
o2::tpc
Global TPC definitions and constants.
Definition
TrackGeometry.h:655
o2::tpc::ClusterNativeAccess
Definition
ClusterNative.h:296
o2::tpc::ClusterNative
Definition
ClusterNative.h:55
clusters
std::vector< Cluster > clusters
Definition
test_ctf_io_cpv.cxx:42
row
std::vector< int > row
Definition
test_ctf_io_itsmft.cxx:48
GPU
GPUTracking
Debug
GPUTPCClusterFilter.h
Generated on Tue Nov 17 2026 08:58:45 for Project by
1.9.8