ATLAS Offline Software
Loading...
Searching...
No Matches
PGraph.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef _TrkVKalVrtCore_PGRAPH_H
5#define _TrkVKalVrtCore_PGRAPH_H
6
7namespace Trk {
8 class PGraph{
9
10// 1. HOT SCALAR CONTROL VARIABLES (Grouped together to fit into 1-2 cache lines)
11 long int m_tabnr;
12 long int m_lweit;
13 long int m_lvset;
14 long int m_lwset;
15 long int m_choice{}; //initialized because improper use could corrupt memory
16
17 // 2. FREQUENTLY ACCESSED SMALL ARRAYS (Accessed heavily during graph traversal steps)
18 long int m_vset[1000];
19 long int m_wset[1000];
20 long int m_lteit[1000];
21 long int m_lsett[1000];
22
23 // 3. COLD / MASSIVE BUFFERS (Pushed to the end since they are accessed via bulk indexing)
24 short int m_teit[999000];
25 short int m_sett[499500];
26
27public:
28 //coverity[UNINIT_CTOR]
29 PGraph() { } // cppcheck-suppress uninitMemberVar; prevent zeroing of large arrays.
30
31 int pgraphm_(long int *weit, long int edges, long int nodes, long int *set, long int *nptr, long int nth) noexcept;
32 static void trevni_(long int *from, long int length, long int *to, long int maxv, long int *newlng, long int *work) noexcept;
33
34 };
35}
36
37#endif
double length(const pvec &v)
short int m_sett[499500]
Definition PGraph.h:25
long int m_lvset
Definition PGraph.h:13
long int m_wset[1000]
Definition PGraph.h:19
long int m_choice
Definition PGraph.h:15
long int m_lweit
Definition PGraph.h:12
int pgraphm_(long int *weit, long int edges, long int nodes, long int *set, long int *nptr, long int nth) noexcept
Definition PGraph.cxx:9
long int m_lteit[1000]
Definition PGraph.h:20
long int m_lwset
Definition PGraph.h:14
static void trevni_(long int *from, long int length, long int *to, long int maxv, long int *newlng, long int *work) noexcept
Definition PGraph.cxx:349
long int m_lsett[1000]
Definition PGraph.h:21
long int m_tabnr
Definition PGraph.h:11
long int m_vset[1000]
Definition PGraph.h:18
short int m_teit[999000]
Definition PGraph.h:24
STL class.
Ensure that the ATLAS eigen extensions are properly loaded.