1
1
/* * TRACCC library, part of the ACTS project (R&D line)
2
2
*
3
- * (c) 2021-2022 CERN for the benefit of the ACTS project
3
+ * (c) 2021-2023 CERN for the benefit of the ACTS project
4
4
*
5
5
* Mozilla Public License Version 2.0
6
6
*/
9
9
10
10
// Project include(s).
11
11
#include " traccc/edm/container.hpp"
12
- #include " traccc/seeding/detail/doublet .hpp"
12
+ #include " traccc/seeding/detail/singlet .hpp"
13
13
14
14
namespace traccc ::device {
15
15
16
- // / Header type for the "triplet counter container"
17
- // /
18
- // / The header stores summary information about the number of triplets found in
19
- // / a given geometric bin.
20
- // /
21
- struct triplet_counter_header {
16
+ // / Number of triplets for one specific middle spacepoint.
17
+ struct triplet_counter_spM {
22
18
23
- // / The total number of Triplets in a given geometric bin
19
+ // / Middle spacepoint location in internal spacepoint container
20
+ sp_location spM;
21
+
22
+ // / The number of triplets for this middle spacepoint
24
23
unsigned int m_nTriplets = 0 ;
25
24
26
- }; // struct triplet_counter_header
25
+ // / The position in which these triplets will be added
26
+ unsigned int posTriplets = 0 ;
27
+
28
+ }; // struct triplet_counter_spM
27
29
28
- // / Item type for the "triplet counter container"
29
- // /
30
- // / It stores the number of triplets for one specific Mid Bottom Doublet.
31
- // /
30
+ // / Declare all triplet counter spM collection types
31
+ using triplet_counter_spM_collection_types =
32
+ collection_types<triplet_counter_spM>;
33
+
34
+ // / Number of triplets for one specific Mid-Bottom Doublet.
32
35
struct triplet_counter {
33
36
34
- // / indices of two spacepoints of midbot doublet
35
- doublet m_midBotDoublet ;
37
+ // / Bottom spacepoint location in internal spacepoint container
38
+ sp_location spB ;
36
39
37
- // / The number of compatible triplets for a the midbot doublet
38
- unsigned int m_nTriplets = 0 ;
40
+ using link_type = triplet_counter_spM_collection_types::host::size_type;
41
+ // / Link to the triplet counter per middle spacepoint
42
+ link_type spM_counter_link;
39
43
40
- // / The position of the middle top doublets with this spM
41
- unsigned int m_mt_start_idx = 0 ;
42
- unsigned int m_mt_end_idx;
44
+ // / The number of compatible triplets for this midbot doublet
45
+ unsigned int m_nTriplets = 0 ;
43
46
44
47
// / The position in which these triplets will be added
45
48
unsigned int posTriplets = 0 ;
@@ -48,8 +51,5 @@ struct triplet_counter {
48
51
49
52
// / Declare all triplet counter collection types
50
53
using triplet_counter_collection_types = collection_types<triplet_counter>;
51
- // / Declare all triplet counter container types
52
- using triplet_counter_container_types =
53
- container_types<triplet_counter_header, triplet_counter>;
54
54
55
55
} // namespace traccc::device
0 commit comments