Project
Loading...
Searching...
No Matches
CfConsts.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_CF_CONSTS_H
16#define O2_GPU_CF_CONSTS_H
17
18#include "clusterFinderDefs.h"
19
21{
22
23GPUconstexpr() tpccf::Delta2 InnerNeighbors[8] =
24 {
25 {-1, -1},
26
27 {-1, 0},
28
29 {-1, 1},
30
31 {0, -1},
32
33 {0, 1},
34 {1, -1},
35 {1, 0},
36 {1, 1}};
37
38GPUconstexpr() bool InnerTestEq[8] =
39 {
40 true, true, true, true,
41 false, false, false, false};
42
43GPUconstexpr() tpccf::Delta2 OuterNeighbors[16] =
44 {
45 {-2, -1},
46 {-2, -2},
47 {-1, -2},
48
49 {-2, 0},
50
51 {-2, 1},
52 {-2, 2},
53 {-1, 2},
54
55 {0, -2},
56
57 {0, 2},
58
59 {2, -1},
60 {2, -2},
61 {1, -2},
62
63 {2, 0},
64
65 {2, 1},
66 {2, 2},
67 {1, 2}};
68
69GPUconstexpr() uint8_t OuterToInner[16] =
70 {
71 0, 0, 0,
72
73 1,
74
75 2, 2, 2,
76
77 3,
78
79 4,
80
81 5, 5, 5,
82
83 6,
84
85 7, 7, 7};
86
87// outer to inner mapping change for the peak counting step,
88// as the other position is the position of the peak
89GPUconstexpr() uint8_t OuterToInnerInv[16] =
90 {
91 1,
92 0,
93 3,
94 1,
95 1,
96 2,
97 4,
98 3,
99 4,
100 6,
101 5,
102 3,
103 6,
104 6,
105 7,
106 4};
107
108#define NOISE_SUPPRESSION_NEIGHBOR_NUM 34
109
110GPUconstexpr() tpccf::Delta2 NoiseSuppressionNeighbors[NOISE_SUPPRESSION_NEIGHBOR_NUM] =
111 {
112 {-2, -3},
113 {-2, -2},
114 {-2, -1},
115 {-2, 0},
116 {-2, 1},
117 {-2, 2},
118 {-2, 3},
119
120 {-1, -3},
121 {-1, -2},
122 {-1, -1},
123 {-1, 0},
124 {-1, 1},
125 {-1, 2},
126 {-1, 3},
127
128 {0, -3},
129 {0, -2},
130 {0, -1},
131
132 {0, 1},
133 {0, 2},
134 {0, 3},
135
136 {1, -3},
137 {1, -2},
138 {1, -1},
139 {1, 0},
140 {1, 1},
141 {1, 2},
142 {1, 3},
143
144 {2, -3},
145 {2, -2},
146 {2, -1},
147 {2, 0},
148 {2, 1},
149 {2, 2},
150 {2, 3}};
151
152GPUconstexpr() uint32_t NoiseSuppressionMinima[NOISE_SUPPRESSION_NEIGHBOR_NUM] =
153 {
154 (1 << 8) | (1 << 9),
155 (1 << 9),
156 (1 << 9),
157 (1 << 10),
158 (1 << 11),
159 (1 << 11),
160 (1 << 11) | (1 << 12),
161 (1 << 8) | (1 << 9),
162 (1 << 9),
163 0,
164 0,
165 0,
166 (1 << 11),
167 (1 << 11) | (1 << 12),
168 (1 << 15) | (1 << 16),
169 (1 << 16),
170 0,
171 0,
172 (1 << 17),
173 (1 << 17) | (1 << 18),
174 (1 << 21) | (1 << 22),
175 (1 << 22),
176 0,
177 0,
178 0,
179 (1 << 24),
180 (1 << 24) | (1 << 25),
181 (1 << 21) | (1 << 22),
182 (1 << 22),
183 (1 << 22),
184 (1 << 23),
185 (1 << 24),
186 (1 << 24),
187 (1 << 24) | (1 << 25)};
188
189} // namespace o2::gpu::cfconsts
190
191#endif
#define NOISE_SUPPRESSION_NEIGHBOR_NUM
Definition CfConsts.h:108
GPUconstexpr() tpccf
Definition CfConsts.h:23